Commit 62d8c80
committed
Don’t do surrogate replacement when preprocessing input stream
Fixes #383
This change drops the code for replacing surrogate code points from our
implementation of “filter code points” from “Preprocessing the input
stream” at https://drafts.csswg.org/css-syntax/#css-filter-code-points
w3c/csswg-drafts#3307 (comment)
notes that the only way to produce a surrogate code point in CSS content
is by directly assigning a DOMString with one in it via an OM operation;
in other words, by manipulating a document using JavaScript to insert
a surrogate code point into the document.
But because the CSS validator doesn’t execute any JavaScript from a
document, there’s no way for a document being checked by the CSS
validator to contain any surrogate code points. Therefore, it’s
unnecessary for our implementation to handle replacement of surrogate
code points. In other words, our implementation can still conform to the
spec requirements even if we don’t perform surrogate replacement.1 parent ebabe74 commit 62d8c80
1 file changed
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
| |||
108 | 105 | | |
109 | 106 | | |
110 | 107 | | |
111 | | - | |
112 | | - | |
113 | 108 | | |
114 | 109 | | |
115 | 110 | | |
| |||
0 commit comments