Comments (3)
So why is Sizzle still making the change even for selectors that don't need that?
What I'm asking is to avoid doing this unless strictly necessary, which feels like it's not for the vast majority of selections.
from sizzle.
Other selectors shouldn’t be doing that. If you have an example where that’s not the case, please submit a test case on a service like JS Bin using jQuery or Sizzle and we’ll reopen the issue.
from sizzle.
:scope
can only be used if the context to run querySelectorAll
is maintained. This is not the case for selectors starting with the sibling combinator - we need to query on the parent so we can’t rely on :scope
there.
from sizzle.
Related Issues (20)
- Any chance to get jQuery functions .find(), .filter(), .add(), .not() aswell? HOT 3
- Mutation handling breaks querySelectorAll initialization HOT 4
- home page of sizle: documentation link is broken HOT 22
- TypeError: rbuggyQSA.test is not a function HOT 3
- The "Identifier with bad escape" test fails in Firefox 3.6 HOT 1
- Throw a better error when documentElement is missing HOT 1
- cannot find elements with ids that have special characters like /, . HOT 1
- Pushstate to a Hash doesn't update :target HOT 2
- Duplicate __Proto__ property HOT 1
- Why is sizzle loading a script from massehight.com ? HOT 2
- Sizzle Breaks when using the text "(Deprecated)" in a selector name HOT 7
- Is this project Dead ? HOT 5
- Pseudo-selectors named `is` no longer works on Chrome 88 HOT 8
- Unsupported pseudo: visible HOT 2
- upload script adds unwanted new lines HOT 2
- Support Trusted Types HOT 1
- Sibling query with context doesn't work correctly if there is multiple elements with same ID on page HOT 2
- is it stable ? HOT 1
- Deprecated `unload` event handler used in `Sizzle.setDocument` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sizzle.