Skip to content

Revamp base URL change processing#11442

Merged
domenic merged 2 commits into
mainfrom
document-base-url
Jul 23, 2025
Merged

Revamp base URL change processing#11442
domenic merged 2 commits into
mainfrom
document-base-url

Conversation

@domenic

@domenic domenic commented Jul 9, 2025

Copy link
Copy Markdown
Member

This removes the dependency on two concepts supposedly defined in DOM, that have not existed for many years. Instead, we have HTML directly call into the new "respond to base URL changes" steps, when mutations happen to a Document that would cause the base URL to change.

Also reorganizes some of the base URL stuff to stick together, instead of being mixed between "Dynamic changes to base URLs" and "Terminology".

Closes whatwg/dom#61.

Removing the PR template as this is mostly a bug fix. Checking that there's some test coverage for :visited changes might be good, but I'd prefer not to block this PR on it.


/browsing-the-web.html ( diff )
/index.html ( diff )
/infrastructure.html ( diff )
/semantics.html ( diff )
/urls-and-fetching.html ( diff )

This removes the dependency on two concepts supposedly defined in DOM, that have not existed for many years. Instead, we have HTML directly call into the new "respond to base URL changes" steps, when mutations happen to a Document that would cause the base URL to change.

Also reorganizes some of the base URL stuff to stick together, instead of being mixed between "Dynamic changes to base URLs" and "Terminology".

Closes whatwg/dom#61.

@annevk annevk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks for tackling this longstanding issue!

Comment thread source Outdated
Comment thread source Outdated
@domenic domenic merged commit 49f5cd3 into main Jul 23, 2025
2 checks passed
@domenic domenic deleted the document-base-url branch July 23, 2025 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Patch HTML's base URL stuff to be in terms of DOM

2 participants