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

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

Issue 925923004: Specs: rename sky:core to dart:sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « sky/specs/modules.md ('k') | sky/specs/script.md » ('j') | 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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 characters, and there is no ``t`` element on the _stack of 796 characters, and there is no ``t`` element on the _stack of
797 open nodes_, then skip the token. 797 open nodes_, then skip the token.
798 2. Create a text node _node_ whose character data is the value of 798 2. Create a text node _node_ whose character data is the value of
799 the token. 799 the token.
800 3. Append _node_ to the top node in the _stack of open nodes_. 800 3. Append _node_ to the top node in the _stack of open nodes_.
801 - If _token_ is a start tag token, 801 - If _token_ is a start tag token,
802 1. If the tag name isn't a registered tag name, then yield until 802 1. If the tag name isn't a registered tag name, then yield until
803 _imported modules_ contains no entries with unresolved 803 _imported modules_ contains no entries with unresolved
804 promises. 804 promises.
805 2. If the tag name is not registered, then let the ErrorElement 805 2. If the tag name is not registered, then let the ErrorElement
806 constructor from sky:core be the element constructor. 806 constructor from dart:sky be the element constructor.
807 Otherwise, let the element constructor be the registered 807 Otherwise, let the element constructor be the registered
808 element's constructor for that tag name in this module. 808 element's constructor for that tag name in this module.
809 3. Create an element _node_ with the attributes given by the 809 3. Create an element _node_ with the attributes given by the
810 token by calling the constructor. 810 token by calling the constructor.
811 4. If _node_ is not an Element object, then let the constructor 811 4. If _node_ is not an Element object, then let the constructor
812 be the ErrorElement constructor and return to the previous 812 be the ErrorElement constructor and return to the previous
813 step. 813 step.
814 5. Append _node_ to the top node in the _stack of open nodes_. 814 5. Append _node_ to the top node in the _stack of open nodes_.
815 6. Push _node_ onto the top of the _stack of open nodes_. 815 6. Push _node_ onto the top of the _stack of open nodes_.
816 7. If _node_ is a ``template`` element, then: 816 7. If _node_ is a ``template`` element, then:
(...skipping 19 matching lines...) Expand all
836 popped. 836 popped.
837 5. If _node_'s tag name is ``script``, then yield until _imported 837 5. If _node_'s tag name is ``script``, then yield until _imported
838 modules_ contains no entries with unresolved promises, then 838 modules_ contains no entries with unresolved promises, then
839 execute the script given by the element's contents, using the 839 execute the script given by the element's contents, using the
840 associated names as appropriate. 840 associated names as appropriate.
841 - If _token_ is an automatic end tag token: 841 - If _token_ is an automatic end tag token:
842 1. Pop the top node from the _stack of open nodes_, unless it is 842 1. Pop the top node from the _stack of open nodes_, unless it is
843 the document. 843 the document.
844 4. Yield until _imported modules_ has no promises. 844 4. Yield until _imported modules_ has no promises.
845 5. Fire a ``load`` event at the _parsing context_ object. 845 5. Fire a ``load`` event at the _parsing context_ object.
OLDNEW
« no previous file with comments | « sky/specs/modules.md ('k') | sky/specs/script.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698