Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13434 closed bug (fixed)

Create querySelectorAll/matchesSelector selector option

Reported by: dmethvin Owned by: gibson042
Priority: blocker Milestone: 2.0
Component: selector Version: 2.0b1
Keywords: Cc:
Blocked by: Blocking:

Description

As a lightweight option for a selector engine, provide a simple implementation that only uses the browser's native selector methods.

This would only be for 2.0 right now since IE6/7 absolutely needs Sizzle. Perhaps it could be added for 1.10 with the caveat that it only works back to IE8.

Any native qSA/mS bugs presently hidden by Sizzle will be re-exposed by this, which ain't our problem. There's a reason Sizzle is bigger.

Change History (3)

comment:1 Changed 10 years ago by dmethvin

Component: unfiledselector
Milestone: None2.0
Priority: undecidedblocker
Status: newopen

comment:2 Changed 10 years ago by gibson042

Owner: set to gibson042
Status: openassigned

comment:3 Changed 10 years ago by Richard Gibson

Resolution: fixed
Status: assignedclosed

Fix #13434: native-API selector module What's out:

  • 6 KB
  • attribute not equal selector
  • positional selectors (:first; :eq(n); :odd; etc.)
  • type selectors (:input; :checkbox; :button; etc.)
  • state-based selectors (:animated; :visible; :hidden; etc.)
  • :has(selector)
  • custom selectors
  • leading combinators (e.g., $collection.find("> *"))
  • reliable functionality on XML fragments
  • requiring all parts of a selector to match elements under context (e.g., $div.find("div > *") now matches children of $div)
  • matching against non-elements
  • reliable sorting of disconnected nodes Changeset: 1083f82d1ee0c8f15a66be15e6184294a69d4420
Note: See TracTickets for help on using tickets.