Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 3 months ago by dmethvin
- Priority changed from undecided to blocker
- Status changed from new to open
- Component changed from unfiled to selector
- Milestone changed from None to 2.0
comment:2 Changed 3 months ago by gibson042
- Owner set to gibson042
- Status changed from open to assigned
comment:3 Changed 3 months ago by Richard Gibson
- Status changed from assigned to closed
- Resolution set to fixed
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
