Bug Tracker

Opened 4 years ago

Closed 4 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:


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 4 years ago by dmethvin

  • Component changed from unfiled to selector
  • Milestone changed from None to 2.0
  • Priority changed from undecided to blocker
  • Status changed from new to open

comment:2 Changed 4 years ago by gibson042

  • Owner set to gibson042
  • Status changed from open to assigned

comment:3 Changed 4 years ago by Richard Gibson

  • Resolution set to fixed
  • Status changed from assigned to closed

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.