Re: [dom] Path HTML's base URL stuff to be in terms of DOM (#61)

@ajklein if I understand correctly the spec is wrong with regard to the test case from https://github.com/whatwg/url/issues/54. Browsers show the following behavior:

```js
console.log(document.querySelector("a").href); // http://example.com/foo.html
document.querySelector("base").href = "http://otherexample.org";
console.log(document.querySelector("a").href); // http://otherexample.org/foo.html
```

however the URL spec's URLUtils spec does not update `href` with the new base upon getting. (See: [href getter](https://url.spec.whatwg.org/#dom-urlutils-href), or any other getter in URLUtils.)

HTML attempts to patch this with https://html.spec.whatwg.org/multipage/infrastructure.html#dynamic-changes-to-base-urls but it only does so "If the absolute URL identified by the hyperlink is being shown to the user", which is not the case for `<a href>` (or for anything in real browsers, really).

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/61#issuecomment-127688791

Received on Tuesday, 4 August 2015 17:43:15 UTC