Skip to content

Commit dde2f44

Browse files
committed
[css-syntax] Need to check for EOF when testing to see if it's a valid escape.
--HG-- extra : rebase_source : 9ce605f0100222ba60f4c09d9b1b742c8f548268
1 parent 0d74a81 commit dde2f44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

css-syntax/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ Check if two code points are a valid escape</h4>
14921492
return false.
14931493

14941494
Otherwise,
1495-
if the second <a>code point</a> is a <a>newline</a>,
1495+
if the second <a>code point</a> is a <a>newline</a> or <a>EOF code point</a>,
14961496
return false.
14971497

14981498
Otherwise, return true.

css-syntax/Overview.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@ <h4 class="heading settled heading" data-level=4.3.9 id=starts-with-a-valid-esca
25912591
return false.</p>
25922592

25932593
<p>Otherwise,
2594-
if the second <a data-link-type=dfn href=#code-point title="code point">code point</a> is a <a data-link-type=dfn href=#newline title=newline>newline</a>,
2594+
if the second <a data-link-type=dfn href=#code-point title="code point">code point</a> is a <a data-link-type=dfn href=#newline title=newline>newline</a> or <a data-link-type=dfn href=#eof-code-point title="eof code point">EOF code point</a>,
25952595
return false.</p>
25962596

25972597
<p>Otherwise, return true.</p>

0 commit comments

Comments
 (0)