You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
+37-10Lines changed: 37 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -242,24 +242,51 @@ public static function parse_html5_dat_testfile( $filename ) {
242
242
* the tree of the parsed DOM. Each node must be represented by a single line. Each line
243
243
* must start with "| ", followed by two spaces per parent node that the node has before
244
244
* the root document node.
245
+
*
246
+
* - Element nodes must be represented by a "<" then the tag name string ">", and all the attributes must be given, sorted lexicographically by UTF-16 code unit according to their attribute name string, on subsequent lines, as if they were children of the element node.
247
+
* - Attribute nodes must have the attribute name string, then an "=" sign, then the attribute value in double quotes (").
248
+
* - Text nodes must be the string, in double quotes. Newlines aren't escaped.
249
+
* - Comments must be "<" then "!-- " then the data then " -->".
250
+
* - DOCTYPEs must be "<!DOCTYPE " then the name then if either of the system id or public id is non-empty a space, public id in double-quotes, another space an the system id in double-quotes, and then in any case ">".
251
+
* - Processing instructions must be "<?", then the target, then a space, then the data and then ">". (The HTML parser cannot emit processing instructions, but scripts can, and the WebVTT to DOM rules can emit them.)
252
+
* - Template contents are represented by the string "content" with the children below it.
0 commit comments