Skip to content

Account for a cloned document's base URL#12674

Open
annevk wants to merge 1 commit into
mainfrom
base-url-clone
Open

Account for a cloned document's base URL#12674
annevk wants to merge 1 commit into
mainfrom
base-url-clone

Conversation

@annevk

@annevk annevk commented Jul 11, 2026

Copy link
Copy Markdown
Member

Account for a cloned document's base URL

Define a Document's get the base URL algorithm, used by DOM's baseURI getter, to return the document base URL. And have the document base URL take the base URL override into account, which DOM sets when a document is cloned, so that a clone without a base element reports the base URL of the document it was cloned from.

See whatwg/dom#454.

Tests: web-platform-tests/wpt#61232

(See WHATWG Working Mode: Changes for more details.)


/infrastructure.html ( diff )
/urls-and-fetching.html ( diff )

Define a Document's get the base URL algorithm, used by DOM's baseURI getter,
to return the document base URL. And have the document base URL take the base
URL override into account, which DOM sets when a document is cloned, so that a
clone without a base element reports the base URL of the document it was cloned
from.

See whatwg/dom#454.

Tests: web-platform-tests/wpt#61232
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.

1 participant