@@ -21,15 +21,22 @@ final newline (on the last line) removed.
2121Then there must be a line that says "\# errors". It must be followed by
2222one line per parse error that a conformant checker would return. It
2323doesn'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
2728Then there \* may\* be a line that says "\# document-fragment", which must
2829be followed by a newline (LF), followed by a string of characters that
2930indicates the context element, followed by a newline (LF). If this line
3031is present the "\# data" must be parsed using the HTML fragment parsing
3132algorithm 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+
3340Then there must be a line that says "\# document", which must be followed
3441by a dump of the tree of the parsed DOM. Each node must be represented
3542by 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
5766The * tag name string* is the local name prefixed by a namespace
5867designator. For the HTML namespace, the namespace designator is the
0 commit comments