Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: sky/specs/parsing.md

Issue 650323005: Specs: Tokeniser should return to return state, not data state; &#x; should not emit U+FFFD. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/parsing.md
diff --git a/sky/specs/parsing.md b/sky/specs/parsing.md
index c3535835f17beab92d7ec1a534d63ced092444fa..e5e9f283e8c60a22a4dbaa21314d5b9b7208c430 100644
--- a/sky/specs/parsing.md
+++ b/sky/specs/parsing.md
@@ -638,7 +638,7 @@ If the current character is...
character.
* Anything else: Run the _emitting operation_ for all but the last
- character in _raw value_, and switch to the **data state** without
+ character in _raw value_, and switch to the _return state_ without
consuming the current character.
@@ -648,8 +648,8 @@ Append the current character to _raw value_.
If the current character is...
-* '``x``', '``X``': Let _value_ be zero, consume the character,
- and switch to the **hexadecimal numeric character reference** state.
+* '``x``', '``X``': Consume the character and switch to the **before
+ hexadecimal numeric character reference** state.
* '``0``'..'``9``': Let _value_ be the numeric value of the
current character interpreted as a decimal digit, consume the
@@ -657,7 +657,23 @@ If the current character is...
state.
* Anything else: Run the _emitting operation_ for all but the last
- character in _raw value_, and switch to the **data state** without
+ character in _raw value_, and switch to the _return state_ without
+ consuming the current character.
+
+
+#### **Before hexadecimal numeric character reference** state ####
+
+Append the current character to _raw value_.
+
+If the current character is...
+
+* '``0``'..'``9``', '``a``'..'``f``', '``A``'..'``F``':
+ Let _value_ be the numeric value of the current character
+ interpreted as a hexadecimal digit, consume the character, and
+ switch to the **hexadecimal numeric character reference** state.
+
+* Anything else: Run the _emitting operation_ for all but the last
+ character in _raw value_, and switch to the _return state_ without
consuming the current character.
@@ -679,7 +695,7 @@ If the current character is...
state_.
* Anything else: Run the _emitting operation_ for all but the last
- character in _raw value_, and switch to the **data state** without
+ character in _raw value_, and switch to the _return state_ without
consuming the current character.
@@ -701,7 +717,7 @@ If the current character is...
state_.
* Anything else: Run the _emitting operation_ for all but the last
- character in _raw value_, and switch to the **data state** without
+ character in _raw value_, and switch to the _return state_ without
consuming the current character.
@@ -735,7 +751,7 @@ If the current character is...
character and stay in this state.
* Anything else: Run the _emitting operation_ for all but the last
- character in _raw value_, and switch to the **data state** without
+ character in _raw value_, and switch to the _return state_ without
consuming the current character.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698