这是indexloc提供的服务,不要输入任何密码
Skip to content

Revamp base URL change processing #11442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 23, 2025
Merged

Revamp base URL change processing #11442

merged 2 commits into from
Jul 23, 2025

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
2 participants