| OLD | NEW |
| 1 Parsing | 1 Parsing |
| 2 ======= | 2 ======= |
| 3 | 3 |
| 4 Parsing in Sky is a strict pipeline consisting of five stages: | 4 Parsing in Sky is a strict pipeline consisting of five stages: |
| 5 | 5 |
| 6 - decoding, which converts incoming bytes into Unicode characters | 6 - decoding, which converts incoming bytes into Unicode characters |
| 7 using UTF-8. | 7 using UTF-8. |
| 8 | 8 |
| 9 - normalising, which manipulates the sequence of characters. | 9 - normalising, which manipulates the sequence of characters. |
| 10 | 10 |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 run the _emitting operation_ with a unicode character having the | 698 run the _emitting operation_ with a unicode character having the |
| 699 scalar value _value_; otherwise, run the _emitting operation_ with | 699 scalar value _value_; otherwise, run the _emitting operation_ with |
| 700 the character U+FFFD. Then, in either case, switch to the _return | 700 the character U+FFFD. Then, in either case, switch to the _return |
| 701 state_. | 701 state_. |
| 702 | 702 |
| 703 * Anything else: Run the _emitting operation_ for all but the last | 703 * Anything else: Run the _emitting operation_ for all but the last |
| 704 character in _raw value_, and switch to the **data state** without | 704 character in _raw value_, and switch to the **data state** without |
| 705 consuming the current character. | 705 consuming the current character. |
| 706 | 706 |
| 707 | 707 |
| 708 #### **Named character reference L** state #### | 708 #### **Named character reference** state #### |
| 709 | 709 |
| 710 Append the current character to _raw value_. | 710 Append the current character to _raw value_. |
| 711 | 711 |
| 712 If the current character is... | 712 If the current character is... |
| 713 | 713 |
| 714 * '``;``': Consume the character. | 714 * '``;``': Consume the character. |
| 715 If the _raw value_ is... | 715 If the _raw value_ is... |
| 716 | 716 |
| 717 - '``&``: Emit Run the _emitting operation_ for the character | 717 - '``&``: Emit Run the _emitting operation_ for the character |
| 718 '``&``'. | 718 '``&``'. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 there isn't one, skip this token. | 785 there isn't one, skip this token. |
| 786 2. If there's a ``template`` element in the _stack of open | 786 2. If there's a ``template`` element in the _stack of open |
| 787 nodes_ above _node_, then skip this token. | 787 nodes_ above _node_, then skip this token. |
| 788 3. Pop nodes from the _stack of open nodes_ until _node_ has been | 788 3. Pop nodes from the _stack of open nodes_ until _node_ has been |
| 789 popped. | 789 popped. |
| 790 4. If _node_'s tag name is ``script``, then yield until there | 790 4. If _node_'s tag name is ``script``, then yield until there |
| 791 are no pending import loads, then execute the script given by | 791 are no pending import loads, then execute the script given by |
| 792 the element's contents. | 792 the element's contents. |
| 793 3. Yield until there are no pending import loads. | 793 3. Yield until there are no pending import loads. |
| 794 3. Fire a ``load`` event at the _parsing context_ object. | 794 3. Fire a ``load`` event at the _parsing context_ object. |
| OLD | NEW |