@@ -21,15 +21,22 @@ final newline (on the last line) removed.
21
21
Then there must be a line that says "\# errors". It must be followed by
22
22
one line per parse error that a conformant checker would return. It
23
23
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.
26
27
27
28
Then there \* may\* be a line that says "\# document-fragment", which must
28
29
be followed by a newline (LF), followed by a string of characters that
29
30
indicates the context element, followed by a newline (LF). If this line
30
31
is present the "\# data" must be parsed using the HTML fragment parsing
31
32
algorithm with the context element as context.
32
33
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
+
33
40
Then there must be a line that says "\# document", which must be followed
34
41
by a dump of the tree of the parsed DOM. Each node must be represented
35
42
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.
53
60
space, then the data and then "` > ` ". (The HTML parser cannot emit
54
61
processing instructions, but scripts can, and the WebVTT to DOM
55
62
rules can emit them.)
63
+ - Template contents are represented by the string "content" with the
64
+ children below it.
56
65
57
66
The * tag name string* is the local name prefixed by a namespace
58
67
designator. For the HTML namespace, the namespace designator is the
0 commit comments