13 lines
912 B
Plaintext
13 lines
912 B
Plaintext
PASS new DOMParser().parseFromString(htmlContent, "text/html").contentType is "text/html"
|
|
PASS new DOMParser().parseFromString(xmlContent, "application/xml").contentType is "application/xml"
|
|
PASS new DOMParser().parseFromString(xhtmlContent, "application/xhtml+xml").contentType is "application/xhtml+xml"
|
|
PASS new DOMParser().parseFromString(svgImageContent, "image/svg+xml").contentType is "image/svg+xml"
|
|
PASS new DOMParser().parseFromString(xslContent, "text/xsl").contentType threw exception TypeError: Type error.
|
|
PASS new DOMParser().parseFromString(xmlContent, "text/dummy+xml").contentType threw exception TypeError: Type error.
|
|
PASS new DOMParser().parseFromString(xmlContent, "text/XML").contentType threw exception TypeError: Type error.
|
|
PASS new DOMParser().parseFromString(htmlContent, "TEXT/html").contentType threw exception TypeError: Type error.
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|