Re: [csswg-drafts] [selectors-4] [css-syntax-3] Does the U+0000 → U+FFFD rule apply to selector parsing? (#4927)

In Firefox that rule is [built into](https://searchfox.org/mozilla-central/rev/4d2a9d5dc8f0e65807ee66e2b04c64596c643b7a/third_party/rust/cssparser/src/tokenizer.rs#857-861) [the tokenizer](https://searchfox.org/mozilla-central/rev/4d2a9d5dc8f0e65807ee66e2b04c64596c643b7a/third_party/rust/cssparser/src/tokenizer.rs#1383-1394), which is why it applies regardless of where the selector comes from.

I don't know why the rule wouldn't apply for the selectors coming from querySelector / other DOM APIs.

cc @SimonSapin

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4927#issuecomment-610463861 using your GitHub account

Received on Tuesday, 7 April 2020 15:44:48 UTC