Skip to content

Conversation

@domenic
Copy link
Member

@domenic domenic commented Jul 9, 2025

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.
Copy link
Member

@annevk annevk left a comment

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!

@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

3 participants