Relative <base> in about:blank documents (tracking)#61231
Conversation
Per the fallback base URL algorithm an about:blank document's fallback base URL is its initiator's base URL, and a <base> element resolves its href against the fallback base URL. So a relative <base href> should resolve against the inherited base URL, both for the document and its clones, but browsers currently resolve against about:blank. See whatwg/dom#454
|
Summary of the situation. Subtest 1 (relative Why: WebKit recomputes an whatwg/dom#1492 + whatwg/html#12674 add a The fork:
Draft until we pick A or B. srcdoc counterparts added. |
48d9c25 to
fd43207
Compare
|
Changing my mind toward A (single field), on minimal state.
Since relative- Flipped the relative- |
Tracking test (draft) for a relative
<base>href in anabout:blankdocument, and its interaction with cloning.Per the fallback base URL algorithm, an
about:blankdocument's fallback base URL is its initiator's base URL, and a<base>element resolves itshrefagainst the fallback base URL. So a relative<base href="sub/">should resolve against the inherited base URL — both for the document itself and for clones of it.Browsers currently resolve it against
about:blankinstead. Open question: fix the browsers, or special-caseabout:blankin the specification.Related existing coverage:
html/semantics/document-metadata/the-base-element/base_about_blank.htmlhtml/infrastructure/urls/terminology-0/document-base-url.htmlContext: whatwg/dom#454
Draft, kept open to track the resolution of the spec question. Do not merge yet.