mirror of
https://github.com/servo/servo
synced 2026-05-01 03:47:53 +02:00
Update web-platform-tests to revision 4d96cccabc2feacd48e1dab9afc22b8af2225572
This commit is contained in:
@@ -27,7 +27,22 @@ test(function() {
|
||||
}, 'Parsing of id attribute');
|
||||
|
||||
test(function() {
|
||||
assert_equals(document.documentURI, doc.documentURI,
|
||||
assert_equals(doc.contentType, "text/html")
|
||||
}, 'contentType');
|
||||
|
||||
test(function() {
|
||||
assert_equals(doc.characterSet, "UTF-8")
|
||||
}, 'characterSet');
|
||||
|
||||
test(function() {
|
||||
assert_equals(doc.inputEncoding, "UTF-8")
|
||||
}, 'inputEncoding');
|
||||
|
||||
test(function() {
|
||||
var url = document.URL;
|
||||
assert_equals(doc.documentURI, url,
|
||||
'The document must have a URL value equal to the URL of the active document.');
|
||||
assert_equals(doc.URL, url,
|
||||
'The document must have a URL value equal to the URL of the active document.');
|
||||
}, 'URL value');
|
||||
|
||||
@@ -36,4 +51,10 @@ test(function() {
|
||||
'The document must have a location value of null.');
|
||||
}, 'Location value');
|
||||
|
||||
test(function() {
|
||||
var soup = "<!DOCTYPE foo></><foo></multiple></>";
|
||||
var htmldoc = new DOMParser().parseFromString(soup, "text/html");
|
||||
assert_equals(htmldoc.documentElement.localName, "html");
|
||||
assert_equals(htmldoc.documentElement.namespaceURI, "http://www.w3.org/1999/xhtml");
|
||||
}, "DOMParser parses HTML tag soup with no problems");
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user