Finish hooking up XML parser

added script integration with xml5ever

Updated test expectations

Removed timeout test expectation

Refactors

application/xhtml+xml is treated as HTML

Updated xml5ever

Updated Text Expectations
This commit is contained in:
Connor Brewster 2016-04-14 14:56:38 -06:00
parent 2729864af7
commit 3389c497c0
29 changed files with 393 additions and 96 deletions

View file

@ -1,5 +0,0 @@
[contenttype_xml.html]
type: testharness
[XML document.contentType === 'application/xml']
expected: FAIL

View file

@ -1,3 +0,0 @@
[Document-createProcessingInstruction-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +1,17 @@
[Document-getElementsByTagName-xhtml.xhtml]
type: testharness
disabled: xml
[HTML element with uppercase tag name matches in XHTML documents]
expected: FAIL
[Element in non-HTML namespace, prefix, lowercase name]
expected: FAIL
[Element in non-HTML namespace, prefix, uppercase name]
expected: FAIL
[Element in HTML namespace, no prefix, non-ascii characters in name]
expected: FAIL
[Element in HTML namespace, prefix, non-ascii characters in name]
expected: FAIL

View file

@ -1,3 +0,0 @@
[Element-childElementCount-dynamic-add-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-childElementCount-dynamic-remove-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-childElementCount-nochild-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-childElementCount-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +1,5 @@
[Element-firstElementChild-entity-xhtml.xhtml]
type: testharness
disabled: xml
[Entity References]
expected: FAIL

View file

@ -1,3 +0,0 @@
[Element-firstElementChild-namespace-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-firstElementChild-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-lastElementChild-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-nextElementSibling-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-previousElementSibling-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,3 +0,0 @@
[Element-siblingElement-null-xhtml.xhtml]
type: testharness
disabled: xml

View file

@ -1,6 +1,5 @@
[Node-isEqualNode-xhtml.xhtml]
type: testharness
expected: TIMEOUT
[isEqualNode should return true when only the internal subsets of DocumentTypes differ.]
expected: NOTRUN
expected: FAIL

View file

@ -1,3 +1,248 @@
[ParentNode-querySelector-All-xht.xht]
type: testharness
expected: TIMEOUT
[Detached Element.querySelectorAll tree order]
expected: FAIL
[In-document Element.querySelectorAll tree order]
expected: FAIL
[Document.querySelectorAll: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[Document.querySelector: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[Document.querySelectorAll: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[Document.querySelector: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[Document.querySelectorAll: :lang pseudo-class selector, matching inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[Document.querySelector: :lang pseudo-class selector, matching inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[Document.querySelectorAll: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[Document.querySelector: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[Document.querySelectorAll: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[Document.querySelector: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[Document.querySelectorAll: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[Document.querySelector: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[Document.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Document.querySelector: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Document.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Document.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Document.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[Document.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[Detached Element.querySelectorAll: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[Detached Element.querySelector: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[Detached Element.querySelectorAll: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[Detached Element.querySelector: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[Detached Element.querySelectorAll: :lang pseudo-class selector, not matching element with no inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[Detached Element.querySelector: :lang pseudo-class selector, not matching element with no inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[Detached Element.querySelectorAll: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[Detached Element.querySelector: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[Detached Element.querySelectorAll: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[Detached Element.querySelector: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[Detached Element.querySelectorAll: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[Detached Element.querySelector: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[Detached Element.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Detached Element.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Detached Element.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Detached Element.querySelector: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Detached Element.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Detached Element.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Detached Element.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[Detached Element.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[Fragment.querySelectorAll: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[Fragment.querySelector: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[Fragment.querySelectorAll: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[Fragment.querySelector: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[Fragment.querySelectorAll: :lang pseudo-class selector, not matching element with no inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[Fragment.querySelector: :lang pseudo-class selector, not matching element with no inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[Fragment.querySelectorAll: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[Fragment.querySelector: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[Fragment.querySelectorAll: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[Fragment.querySelector: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[Fragment.querySelectorAll: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[Fragment.querySelector: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[Fragment.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Fragment.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Fragment.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Fragment.querySelector: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Fragment.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Fragment.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Fragment.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[Fragment.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelectorAll: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[In-document Element.querySelector: Attribute whitespace-separated list selector, not matching class attribute with empty value: #attr-whitespace [class~=""\]]
expected: FAIL
[In-document Element.querySelectorAll: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[In-document Element.querySelector: :target pseudo-class selector, matching the element referenced by the URL fragment identifier: :target]
expected: FAIL
[In-document Element.querySelectorAll: :lang pseudo-class selector, matching inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[In-document Element.querySelector: :lang pseudo-class selector, matching inherited language: #pseudo-lang-div1:lang(en)]
expected: FAIL
[In-document Element.querySelectorAll: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[In-document Element.querySelector: :lang pseudo-class selector, matching specified language with exact value: #pseudo-lang-div2:lang(fr)]
expected: FAIL
[In-document Element.querySelectorAll: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[In-document Element.querySelector: :lang pseudo-class selector, matching specified language with partial value: #pseudo-lang-div3:lang(en)]
expected: FAIL
[In-document Element.querySelectorAll: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[In-document Element.querySelector: :lang pseudo-class selector, not matching incorrect language: #pseudo-lang-div4:lang(es-AR)]
expected: FAIL
[In-document Element.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[In-document Element.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[In-document Element.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[In-document Element.querySelector: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[In-document Element.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[In-document Element.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[In-document Element.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL

View file

@ -1,5 +0,0 @@
[ProcessingInstruction-literal-2.xhtml]
type: testharness
[ProcessingInstruction literals]
expected: FAIL

View file

@ -1,3 +1,14 @@
[browsing-context-first-created.xhtml]
type: testharness
expected: TIMEOUT
[Check the history.length of the first created browsing context]
expected: FAIL
[Check the document's meta data]
expected: FAIL
[Check the document's status]
expected: FAIL
[Check the document's content]
expected: FAIL

View file

@ -1,5 +0,0 @@
[document-compatmode-06.xhtml]
type: testharness
[document.compatMode: Standards]
expected: FAIL

View file

@ -1,3 +1,56 @@
[dynamic-urls.sub.xhtml]
type: testharness
expected: TIMEOUT
[The 'href' attribute of the 'a' element]
expected: FAIL
[The 'href' attribute of the 'link' element]
expected: FAIL
[The 'href' attribute of the 'area' element]
expected: FAIL
[The 'cite' attribute of the 'q' element]
expected: FAIL
[The 'cite' attribute of the 'blockquote' element]
expected: FAIL
[The 'cite' attribute of the 'ins' element]
expected: FAIL
[The 'cite' attribute of the 'del' element]
expected: FAIL
[The 'src' attribute of the 'img' element]
expected: FAIL
[The 'src' attribute of the 'embed' element]
expected: FAIL
[The 'src' attribute of the 'video' element]
expected: FAIL
[The 'src' attribute of the 'iframe' element]
expected: FAIL
[The 'src' attribute of the 'script' element]
expected: FAIL
[The 'src' attribute of the 'source' element]
expected: FAIL
[The 'src' attribute of the 'track' element]
expected: FAIL
[The 'action' attribute of the 'form' element]
expected: FAIL
[The 'data' attribute of the 'object' element]
expected: FAIL
[The 'formaction' attribute of the 'button' element]
expected: FAIL
[Change the base URL must effect the descendant elements only]
expected: FAIL

View file

@ -2,4 +2,3 @@
type: reftest
reftype: ==
refurl: /html/semantics/document-metadata/the-style-element/html_style_in_comment-ref.html
expected: FAIL

View file

@ -1,5 +0,0 @@
[script-noembed-noframes-iframe.xhtml]
type: testharness
[Script inside noembed, noframes and iframe]
expected: FAIL