querySelectorAll should return an array of Elements, not Nodes #441
Labels
bug
Something isn't working as expected
enhancement
Improvement to existing functionality
good first issue
Good for newcomers
I'm not sure if this is accurate on MDN, but currently
foreach($element->querySelectorAll("whatever") as $item)
shows$item
as aNode
rather than anElement
, so a lot of functionality is not being suggested by the IDE.Maybe this can be solved by just type-hinting more accurately?
The text was updated successfully, but these errors were encountered: