Skip to content

Commit c583450

Browse files
committed
Trim test comments
1 parent 2b08e13 commit c583450

3 files changed

Lines changed: 3 additions & 29 deletions

File tree

dom/nodes/Document-base-url-not-live.window.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
// Confirms that the base URL an about:blank or about:srcdoc document inherits
2-
// from its initiator/container is a snapshot taken at creation, not a live view
3-
// of the initiator's current base URL.
4-
//
5-
// Reading baseURI is not enough on its own: implementations cache the base URL,
6-
// so a live-but-cached implementation would still return the creation-time value
7-
// on read. To distinguish snapshot from live, the container's base URL is changed
8-
// and the child is then forced to recompute its base URL (by inserting and
9-
// removing a <base>). A snapshot yields the creation-time value; a live view
10-
// yields the container's new base URL.
1+
// Reading baseURI cannot distinguish a snapshot from a live lookup on its own, as
2+
// implementations cache the base URL. So change the container's base URL and then
3+
// force the child to recompute by inserting and removing a <base>.
114
//
125
// See https://github.com/whatwg/dom/issues/454
136

@@ -20,7 +13,6 @@ function makeIframe(doc, configure) {
2013
});
2114
}
2215

23-
// Inserting then removing a <base> makes the document recompute its base URL.
2416
function forceBaseURLRecompute(doc) {
2517
const base = doc.createElement("base");
2618
base.setAttribute("href", "http://example.org/forced/");

dom/nodes/Document-cloneNode-about-base-url-relative.window.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// A relative <base> href in an about:blank document, and how it interacts with
2-
// cloning.
3-
//
4-
// The base URL an about:blank document inherits from its initiator is exposed
5-
// through the no-<base> path (base URL override), so ordinary relative URLs
6-
// resolve against it. A <base> element, however, resolves its href against the
7-
// document's own URL, so a relative <base href="sub/"> resolves against
8-
// about:blank rather than the inherited base URL. Cloning does not change this.
9-
//
101
// See https://github.com/whatwg/dom/issues/454
112

123
function aboutBlankDocument(t) {

dom/nodes/Document-cloneNode-srcdoc-base-url.window.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// A relative <base> href in an about:srcdoc document, and how it interacts with
2-
// cloning. Parallels the about:blank case.
3-
//
4-
// The base URL an about:srcdoc document inherits from its container is exposed
5-
// through the no-<base> path (base URL override), so ordinary relative URLs
6-
// resolve against it. A <base> element, however, resolves its href against the
7-
// document's own URL, so a relative <base href="sub/"> resolves against
8-
// about:srcdoc rather than the inherited base URL. Cloning does not change this.
9-
//
101
// See https://github.com/whatwg/dom/issues/454
112

123
function srcdocDocument(t, srcdoc) {

0 commit comments

Comments
 (0)