Skip to main content

Bug Tracker

Side navigation

#13434 closed bug (fixed)

Opened February 11, 2013 05:34PM UTC

Closed February 28, 2013 03:46AM UTC

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.

Attachments (0)
Change History (3)

Changed February 11, 2013 05:35PM UTC by dmethvin comment:1

component: unfiledselector
milestone: None2.0
priority: undecidedblocker
status: newopen

Changed February 18, 2013 03:55PM UTC by gibson042 comment:2

owner: → gibson042
status: openassigned

Changed February 28, 2013 03:46AM UTC by Richard Gibson comment:3

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