Bug Tracker

Opened 5 years ago

Closed 4 years ago

#13577 closed bug (fixed)

New minimal selector engine fails on textNode objects

Reported by: albertcasademont@… Owned by: timmywil
Priority: low Milestone: 2.0.1
Component: selector Version: 2.0b2
Keywords: Cc:
Blocked by: Blocking:

Description

textNode objects don't have the querySelectorAll function available. Maybe we could prevent querying on those types of nodes an avoid a js error?

http://jsfiddle.net/ueGbS/1/

Change History (4)

comment:1 Changed 5 years ago by timmywil

Component: unfiledselector
Owner: set to timmywil
Priority: undecidedlow
Status: newassigned

We'll just fail silently for text nodes.

comment:2 Changed 4 years ago by dmethvin

Milestone: None2.0

comment:3 Changed 4 years ago by dmethvin

Milestone: 2.02.0.1

comment:4 Changed 4 years ago by Timmy Willison

Resolution: fixed
Status: assignedclosed

Check nodeType of elements passed to selector-native's find. Fixes #13577.

Changeset: 8d3c0506c860e887d0005fd12da53f1d11ce2883

Note: See TracTickets for help on using tickets.