Comments (4)
http://www.w3.org/TR/selectors/#attribute-representation
Attribute values must be CSS identifiers or strings. [CSS21]
http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_)
from sizzle.
Couldn't you then escape it? "[href^=https:]"
Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B&W?" or "B\26 W\3F".
from sizzle.
Why not quote it?
from sizzle.
Agreed.
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
- Don't set attributes while querying HOT 3
- 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.