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

Side by Side Diff: sky/specs/parsing.md

Issue 723223003: Specs: Make </> not pop the document itself off the stack, that would be crazy town (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 this token. 827 this token.
828 3. If there's a ``template`` element in the _stack of open 828 3. If there's a ``template`` element in the _stack of open
829 nodes_ above _node_, then skip this token. 829 nodes_ above _node_, then skip this token.
830 4. Pop nodes from the _stack of open nodes_ until _node_ has been 830 4. Pop nodes from the _stack of open nodes_ until _node_ has been
831 popped. 831 popped.
832 5. If _node_'s tag name is ``script``, then yield until _imported 832 5. If _node_'s tag name is ``script``, then yield until _imported
833 modules_ contains no entries with unresolved promises, then 833 modules_ contains no entries with unresolved promises, then
834 execute the script given by the element's contents, using the 834 execute the script given by the element's contents, using the
835 associated names as appropriate. 835 associated names as appropriate.
836 - If _token_ is an automatic end tag token: 836 - If _token_ is an automatic end tag token:
837 1. Pop the top node from the _stack of open nodes_, if any. 837 1. Pop the top node from the _stack of open nodes_, unless it is
838 the document.
838 4. Yield until _imported modules_ has no promises. 839 4. Yield until _imported modules_ has no promises.
839 5. Fire a ``load`` event at the _parsing context_ object. 840 5. Fire a ``load`` event at the _parsing context_ object.
OLDNEW
« 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