Skip to content

Commit 093674a

Browse files
HixieMs2ger
authored andcommitted
Update README file to include new and recent changes to the format
1 parent 009dbdb commit 093674a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tree-construction/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,22 @@ final newline (on the last line) removed.
2121
Then there must be a line that says "\#errors". It must be followed by
2222
one line per parse error that a conformant checker would return. It
2323
doesn't matter what those lines are, although they can't be
24-
"\#document-fragment", "\#document", or empty, the only thing that
25-
matters is that there be the right number of parse errors.
24+
"\#document-fragment", "\#document", "\#script-off", "\#script-on", or
25+
empty, the only thing that matters is that there be the right number
26+
of parse errors.
2627

2728
Then there \*may\* be a line that says "\#document-fragment", which must
2829
be followed by a newline (LF), followed by a string of characters that
2930
indicates the context element, followed by a newline (LF). If this line
3031
is present the "\#data" must be parsed using the HTML fragment parsing
3132
algorithm with the context element as context.
3233

34+
Then there \*may\* be a line that says "\#script-off" or
35+
"\#script-in". If a line that says "\#script-off" is present, the
36+
parser must set the scripting flag to disabled. If a line that says
37+
"\#script-on" is present, it must set it to enabled. Otherwise, the
38+
test should be run in both modes.
39+
3340
Then there must be a line that says "\#document", which must be followed
3441
by a dump of the tree of the parsed DOM. Each node must be represented
3542
by a single line. Each line must start with "| ", followed by two spaces
@@ -53,6 +60,8 @@ per parent node that the node has before the root document node.
5360
space, then the data and then "`>`". (The HTML parser cannot emit
5461
processing instructions, but scripts can, and the WebVTT to DOM
5562
rules can emit them.)
63+
- Template contents are represented by the string "content" with the
64+
children below it.
5665

5766
The *tag name string* is the local name prefixed by a namespace
5867
designator. For the HTML namespace, the namespace designator is the

0 commit comments

Comments
 (0)