Skip to content

Commit

Permalink
Make Node::BaseURI use the document's base URL
Browse files Browse the repository at this point in the history
update expectations
  • Loading branch information
mrmiywj committed May 14, 2016
1 parent ea84601 commit 6ade433
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion components/script/dom/node.rs
Expand Up @@ -1865,7 +1865,7 @@ impl NodeMethods for Node {

// https://dom.spec.whatwg.org/#dom-node-baseuri
fn BaseURI(&self) -> DOMString {
self.owner_doc().URL()
DOMString::from(self.owner_doc().base_url().as_str())
}

// https://dom.spec.whatwg.org/#dom-node-ownerdocument
Expand Down
@@ -1,8 +1,5 @@
[document-base-url.html]
type: testharness
[The document base URL of a document containing one or more base elements with href attributes is the frozen base URL of the first base element in the document that has an href attribute, in tree order.]
expected: FAIL

[The fallback base URL of a document whose address is about:blank is the document base URL of the creator document.]
expected: FAIL

Expand Down

This file was deleted.

0 comments on commit 6ade433

Please sign in to comment.