mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 91b1effe848fac6e73a203037fc333b0fff3174d
This commit is contained in:
parent
6bb98ad17a
commit
7680aab725
60 changed files with 1588 additions and 120 deletions
|
@ -66,6 +66,11 @@ test(function() {
|
|||
assert_equals(htmldoc.documentElement.namespaceURI, "http://www.w3.org/1999/xhtml");
|
||||
}, "DOMParser parses HTML tag soup with no problems");
|
||||
|
||||
test(function() {
|
||||
const doc = new DOMParser().parseFromString('<noembed><a></noembed>', 'text/html');
|
||||
assert_equals(doc.querySelector('noembed').textContent, '<a>');
|
||||
}, 'DOMParser should handle the content of <noembed> as raw text');
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
new DOMParser().parseFromString("", "text/foo-this-is-invalid");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue