From b6964e3862e64ae5485f076c2e6163f45b234da6 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 18 Jan 2023 15:03:00 +0900 Subject: [PATCH 1/2] Remove reference to integrating stylesheet Links Closes #4224. That issue was about the general lack of specification for the Link header, which has been resolved. #8741 tracks potentially adding Link header support for rel=stylesheet, but there's no need to retain notices in the spec about the possibility of this nonstandard feature. (The note was also quite incomplete, as it didn't talk about things like the cascade, document.styleSheets, etc.) --- source | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/source b/source index f0ab3ad70bb..e18bf283801 100644 --- a/source +++ b/source @@ -14980,13 +14980,6 @@ interface HTMLLinkElement : HTMLElement { processing options. This algorithm defines whether and how they react to appearing in an HTTP `Link` response header.

-

The processing of `Link` headers is not defined for - all link relation types. In particular some implementations might process types that have a no-op - process link headers algorithm, and in doing so influence a Document's - script-blocking style sheet counter. See - issue #4224 for discussion on - integrating this into the spec.

-

A link processing options is a struct. It has the following items:

@@ -17038,8 +17031,8 @@ console.log(style.disabled); // false

It is expected that counterparts to the above rules also apply to - <?xml-stylesheet?> PIs and HTTP `Link` headers. - However, this has not yet been thoroughly investigated.

+ <?xml-stylesheet?> PIs. However, this has not yet been thoroughly + investigated.

A Document has a script-blocking style sheet counter, which is a number, initially 0.

From 3c1cb92dd9628b922917163d6d13272102d91c47 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 19 Jan 2023 14:05:06 +0900 Subject: [PATCH 2/2] Summarize what cases the header works for --- source | 56 +++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 15 deletions(-) diff --git a/source b/source index e18bf283801..28f3d7e4dbd 100644 --- a/source +++ b/source @@ -14980,6 +14980,10 @@ interface HTMLLinkElement : HTMLElement { processing options. This algorithm defines whether and how they react to appearing in an HTTP `Link` response header.

+

For most link types, this algorithm does nothing. The summary table is a good reference to quickly know whether a link + type has defined process a link header steps.

+

A link processing options is a struct. It has the following items:

@@ -24862,12 +24866,13 @@ document.body.appendChild(wbr);

New link types that are to be implemented by web browsers are to be added to this standard. The remainder can be registered as extensions.

- +
+ @@ -24879,18 +24884,20 @@ document.body.appendChild(wbr); - + + - + + @@ -24899,34 +24906,35 @@ document.body.appendChild(wbr); + - + + - - + - + @@ -24934,14 +24942,16 @@ document.body.appendChild(wbr); + - + + @@ -24950,6 +24960,7 @@ document.body.appendChild(wbr); + @@ -24958,15 +24969,17 @@ document.body.appendChild(wbr); + - + + @@ -24974,14 +24987,16 @@ document.body.appendChild(wbr); + - + + @@ -24990,6 +25005,7 @@ document.body.appendChild(wbr); + @@ -25000,6 +25016,7 @@ document.body.appendChild(wbr); + @@ -25009,6 +25026,7 @@ document.body.appendChild(wbr); + + @@ -25028,6 +25047,7 @@ document.body.appendChild(wbr); + @@ -25036,6 +25056,7 @@ document.body.appendChild(wbr); + @@ -25044,6 +25065,7 @@ document.body.appendChild(wbr); + @@ -25052,40 +25074,44 @@ document.body.appendChild(wbr); + - + + - + + - + + - + + -