Skip to content

Commit

Permalink
Test baseURI for DOMParser-created documents. (#3098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger authored and sideshowbarker committed Jul 8, 2016
1 parent 411e2ef commit 8cf28a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions domparsing/DOMParser-parseFromString-html.html
Expand Up @@ -50,6 +50,10 @@
'The document must have a URL value equal to the URL of the active document.');
}, 'URL value');

test(function() {
assert_equals(doc.baseURI, document.URL);
}, 'baseURI value');

test(function() {
assert_equals(doc.location, null,
'The document must have a location value of null.');
Expand Down
1 change: 1 addition & 0 deletions domparsing/DOMParser-parseFromString-xml.html
Expand Up @@ -9,6 +9,7 @@
assert_true(doc instanceof Document, "Should be Document");
assert_equals(doc.URL, document.URL, "URL");
assert_equals(doc.documentURI, document.URL, "documentURI");
assert_equals(doc.baseURI, document.URL, "baseURI");
assert_equals(doc.characterSet, "UTF-8", "characterSet");
assert_equals(doc.charset, "UTF-8", "charset");
assert_equals(doc.inputEncoding, "UTF-8", "inputEncoding");
Expand Down

0 comments on commit 8cf28a4

Please sign in to comment.