mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #11178 - mrmiywj:use-doc-base-URL, r=nox
Make Node::BaseURI use the document's base URL Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11145 (github issue number if applicable). Either: - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11178) <!-- Reviewable:end -->
This commit is contained in:
commit
d6509dc4c6
3 changed files with 1 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue