From 2c0a164a8d0d4d398c8830d49276b819480294fe Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Fri, 20 Oct 2023 14:00:36 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Specify=20what=20happens=20when=20=E2=80=9C?= =?UTF-8?q?disabled=E2=80=9D=20is=20added=20to=20a=20link@rel=3Dstylesheet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change reverts commit c63f7122e7d0b9c6a4f065b6f24daadc21b7751a (PR #9798) and moves the requirements for what needs to happen when the “disabled” attribute is added to the same place in the spec where the requirements for what happens when the “disabled” attribute is removed are already defined. The change makes the spec call the existing “remove a CSS style sheet” algorithm at https://drafts.csswg.org/cssom/#remove-a-css-style-sheet --- source | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source b/source index b8b9888bc90..69cd872b90d 100644 --- a/source +++ b/source @@ -3944,7 +3944,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • associated CSS style sheet
  • create a constructed CSSStyleSheet
  • synchronously replace the rules of a CSSStyleSheet
  • -
  • disable a CSS style sheet
  • CSS style sheets and their @@ -15396,6 +15395,9 @@ interface HTMLLinkElement : HTMLElement { link elements that have a rel attribute that contains the stylesheet keyword.

    +

    Whenever the disabled attribute is added, remove the associated CSS style sheet.

    +

    Whenever the disabled attribute is removed, set the link element's explicitly enabled attribute to true.

    @@ -27485,10 +27487,6 @@ document.body.appendChild(wbr);
    -

    When the disabled attribute of a link - element with a stylesheet keyword is set, disable the associated CSS style sheet.

    -

    The appropriate times to fetch and process this type of link are: From d182a6992abde24b6d66a9b91504e6e7524a537a Mon Sep 17 00:00:00 2001 From: sideshowbarker Date: Tue, 19 Mar 2024 09:57:26 +0900 Subject: [PATCH 2/2] s/attribute is added/attribute is set/ (per Simon review comment) --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 69cd872b90d..a5e4150111d 100644 --- a/source +++ b/source @@ -15395,7 +15395,7 @@ interface HTMLLinkElement : HTMLElement { link elements that have a rel attribute that contains the stylesheet keyword.

    -

    Whenever the disabled attribute is added, Whenever the disabled attribute is set, remove the associated CSS style sheet.

    Whenever the disabled attribute is removed, set the