File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1501,12 +1501,21 @@ <h4 id=consume-a-token><span class=secno>4.3.1. </span> <dfn
15011501 character</ i > </ a > or the < a href ="#next-input-character "> < i
15021502 title ="next input character "> next two input characters</ i > </ a > < a
15031503 href ="#check-if-two-characters-are-a-valid-esca0 "> < i > are a valid
1504- escape</ i > </ a > , < a href ="#consume-a-name0 "> < i > consume a name</ i > </ a > .
1505- Create a 〈hash〉 with its value set to the returned string. If the
1506- first three characters of the 〈hash〉’s value < a
1507- href ="#check-if-three-characters-would-start-an0 "> < i > would start an
1508- identifier</ i > </ a > , set the 〈hash〉’s type flag to "id". Return the
1509- 〈hash〉.
1504+ escape</ i > </ a > , then:
1505+ < ol >
1506+ < li > Create a 〈hash〉.
1507+
1508+ < li > If the < a href ="#next-input-character "> < i
1509+ title ="next input character "> next 3 input characters</ i > </ a > < a
1510+ href ="#check-if-three-characters-would-start-an0 "> < i > would start an
1511+ identifier</ i > </ a > , set the 〈hash〉’s type flag to "id".
1512+
1513+ < li > < a href ="#consume-a-name0 "> < i > Consume a name</ i > </ a > , and set the
1514+ 〈hash〉’s value to the returned string.
1515+
1516+ < li > Return the 〈hash〉.
1517+ </ ol >
1518+
15101519 < p > Otherwise, return a 〈delim〉 with its value set to the < a
15111520 href ="#current-input-character "> < i > current input character</ i > </ a > .
15121521
Original file line number Diff line number Diff line change @@ -712,11 +712,23 @@ <h4>
712712 If the < i > next input character</ i > is a < i > name character</ i >
713713 or the < i title ="next input character "> next two input characters</ i >
714714 < i > are a valid escape</ i > ,
715- < i > consume a name</ i > .
716- Create a 〈hash〉 with its value set to the returned string.
717- If the first three characters of the 〈hash〉’s value < i > would start an identifier</ i > ,
718- set the 〈hash〉’s type flag to "id".
719- Return the 〈hash〉.
715+ then:
716+
717+ < ol >
718+ < li >
719+ Create a 〈hash〉.
720+
721+ < li >
722+ If the < i title ="next input character "> next 3 input characters</ i > < i > would start an identifier</ i > ,
723+ set the 〈hash〉’s type flag to "id".
724+
725+ < li >
726+ < i > Consume a name</ i > ,
727+ and set the 〈hash〉’s value to the returned string.
728+
729+ < li >
730+ Return the 〈hash〉.
731+ </ ol >
720732
721733 < p >
722734 Otherwise,
You can’t perform that action at this time.
0 commit comments