Make Node::BaseURI use the document's base URL

update expectations
This commit is contained in:
mrmiywj 2016-05-14 00:54:00 +08:00
parent ea84601bf0
commit 6ade433196
3 changed files with 1 additions and 9 deletions

View file

@ -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