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

Unified Diff: sky/specs/parsing.md

Issue 685483002: Specs: Actually maintain the stack of open nodes. (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 eba32a08b759af4ab53ed66f293e1b1194d8a396..c3535835f17beab92d7ec1a534d63ced092444fa 100644
--- a/sky/specs/parsing.md
+++ b/sky/specs/parsing.md
@@ -779,6 +779,11 @@ _document_:
1. Create an element _node_ with tag name and attributes given by
the token.
2. Append _node_ to the top node in the _stack of open nodes_.
+ 3. Push _node_ onto the top of the _stack of open nodes_.
+ 4. If _node_ is a ``template`` element, then:
+ 1. Let _fragment_ be the ``DocumentFragment`` object that the
+ ``template`` element uses as its template contents container.
+ 2. Push _fragment_ onto the top of the _stack of open nodes_.
- If _token_ is an end tag token:
1. Let _node_ be the topmost node in the _stack of open nodes_
whose tag name is the same as the token's tag name, if any. If
« 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