| OLD | NEW |
| 1 /* | 1 /* |
| 2 Distributed under both the W3C Test Suite License [1] and the W3C | 2 Distributed under both the W3C Test Suite License [1] and the W3C |
| 3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
| 4 policies and contribution forms [3]. | 4 policies and contribution forms [3]. |
| 5 | 5 |
| 6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
| 7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
| 8 [3] http://www.w3.org/2004/10/27-testcases | 8 [3] http://www.w3.org/2004/10/27-testcases |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 'span', 'strong', 'style', 'sub', 'table', 'tbody', 'td', 'textarea', | 24 'span', 'strong', 'style', 'sub', 'table', 'tbody', 'td', 'textarea', |
| 25 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', | 25 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', |
| 26 'var', 'video', 'wbr' ]; | 26 'var', 'video', 'wbr' ]; |
| 27 | 27 |
| 28 // only void (without end tag) HTML5 elements | 28 // only void (without end tag) HTML5 elements |
| 29 var HTML5_VOID_ELEMENTS = [ 'area', 'base', 'br', 'col', 'command', 'embed', | 29 var HTML5_VOID_ELEMENTS = [ 'area', 'base', 'br', 'col', 'command', 'embed', |
| 30 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', | 30 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', |
| 31 'track', 'wbr' ]; | 31 'track', 'wbr' ]; |
| 32 | 32 |
| 33 // https://html.spec.whatwg.org/multipage/multipage/forms.html#form-associated-e
lement | 33 // https://html.spec.whatwg.org/multipage/multipage/forms.html#form-associated-e
lement |
| 34 var HTML5_FORM_ASSOCIATED_ELEMENTS = [ 'button', 'fieldset', 'input', 'keygen', | 34 var HTML5_FORM_ASSOCIATED_ELEMENTS = [ 'button', 'fieldset', 'input', |
| 35 'object', 'output', 'select', 'textarea' ]; | 35 'object', 'output', 'select', 'textarea' ]; |
| 36 | 36 |
| 37 function newDocument() { | 37 function newDocument() { |
| 38 var d = document.implementation.createDocument(); | 38 var d = document.implementation.createDocument(); |
| 39 return d; | 39 return d; |
| 40 } | 40 } |
| 41 | 41 |
| 42 function newHTMLDocument() { | 42 function newHTMLDocument() { |
| 43 var d = document.implementation.createHTMLDocument('Test Document'); | 43 var d = document.implementation.createHTMLDocument('Test Document'); |
| 44 return d; | 44 return d; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 | 180 |
| 181 function checkBodyTemplateContent(d, html, id, nodeName) { | 181 function checkBodyTemplateContent(d, html, id, nodeName) { |
| 182 checkTemplateContent(d, d.body, html, id, nodeName); | 182 checkTemplateContent(d, d.body, html, id, nodeName); |
| 183 } | 183 } |
| 184 | 184 |
| 185 function checkHeadTemplateContent(d, html, id, nodeName) { | 185 function checkHeadTemplateContent(d, html, id, nodeName) { |
| 186 checkTemplateContent(d, d.head, html, id, nodeName); | 186 checkTemplateContent(d, d.head, html, id, nodeName); |
| 187 } | 187 } |
| OLD | NEW |