From b30d644d2b6af3fbdd27217648557f87c1e2d2cc Mon Sep 17 00:00:00 2001 From: HarshitGourlariya Date: Fri, 14 Feb 2025 16:01:18 +0530 Subject: [PATCH 1/7] style: use title case for attr-translate-yes-state and attr-translate-no-state --- grep_results.txt | 139 +++++++++++++++++++++++ source | 279 ++++++++++++++++++++++++----------------------- 2 files changed, 279 insertions(+), 139 deletions(-) create mode 100644 grep_results.txt diff --git a/grep_results.txt b/grep_results.txt new file mode 100644 index 00000000000..96373c170fd --- /dev/null +++ b/grep_results.txt @@ -0,0 +1,139 @@ +1860: the no popover state, then run the hide +7987: high +7994: low +8001: auto +8009: auto state.

+13656: yes +13663: no +13669: data-x="attr-translate-inherit-state">inherit state.

+13674: attribute is in the yes state, then the element's +13677: data-x="attr-translate-no-state">no
state, then the element's translation mode +13680: data-x="attr-translate-inherit-state">inherit state, or the element is not an ltr +13777: rtl +13781: auto +13788:

The heuristic used by the auto state is very crude +13800: data-x="attr-dir-undefined-state">undefined state.

+13811:
ltr
+13814:
rtl
+13817:
auto
+13830:
undefined
+13969: data-x="attr-dir-undefined-state">undefined
state +14043: data-x="attr-dir">dir attribute is in the auto +16044: data-x="attr-fetchpriority-auto-state">auto) +29388: data-x="attr-img-decoding-auto-state">auto state.

+30434: data-x="attr-loading-lazy-state">lazy-loaded. In this case, the auto, then the user agent is free to choose any +44035: row +44039: column +44043: row group +44047: column group +44053: data-x="attr-th-scope-auto-state">auto state. (In this state the header cell applies to a +44057: the row group state if the element is not anchored in +44059: data-x="attr-th-scope-colgroup-state">column group state if the element is not anchored in a +44115: data-x="attr-th-scope-rowgroup-state">rowgroup state apply to all the cells in their row +44987: data-x="attr-th-scope-column-state">column state; or

+44990: data-x="attr-th-scope-auto-state">auto state, and there are no data cells in any of the +45001: data-x="attr-th-scope-row-state">row state; or

+45004: data-x="attr-th-scope-auto-state">auto state, the cell is not a column +45011: data-x="attr-th-scope-colgroup-state">column group state.

+45015: data-x="attr-th-scope-rowgroup-state">row group state.

+46011: on +46016: off +46023: data-x="attr-form-autocomplete-on-state">on state.

+58034: data-x="attr-form-autocomplete-off-state">off state, then let the element's +64366: open +64370: closed +64377: data-x="attr-shadowrootmode-none-state">none state.

+75068: data-x="attr-popover-none-state">no popover state and whose popover visibility +78983: hidden +78989: hidden until found +78995: data-x="attr-hidden-not-hidden-state">not hidden state, and its invalid value default is the hidden +79000: data-x="attr-hidden-hidden-state">hidden state, it indicates that the element is not yet, or +79004: data-x="attr-hidden-hidden-state">hidden state. This requirement may be implemented +79009: data-x="attr-hidden-until-found-state">hidden until found state, it indicates that the +79010: element is hidden like the hidden state but the +79021: data-x="attr-hidden-until-found-state">hidden until found state, as specified in the hidden state. Authors therefore +79031: data-x="attr-hidden-until-found-state">hidden until found state will have 'display: none' +79034: data-x="attr-hidden-until-found-state">hidden until found elements.

+79037: data-x="attr-hidden-until-found-state">hidden until found state use 'content-visibility: +79039: data-x="attr-hidden-until-found-state">hidden until found state that make it different +79040: from the hidden state:

+79045: data-x="attr-hidden-until-found-state">hidden until found state has a 'display' value of +79049: the hidden until found state, which means +79132: data-x="attr-hidden-until-found-state">hidden until found state, then return "hidden until found state, then:

+81398: no popover state, then return +81413: the no popover state, then return +81831: true +81838: false +81843: plaintext-only +81850: data-x="attr-contenteditable-inherit-state">inherit state. The inherit state indicates that +81913: data-x="">false
", or "inherit", +81933: data-x="attr-contenteditable-true-state">true state, "plaintext-only state, "false state, and "inherit" otherwise. On setting, if the new +82119: true +82126: false +82132: data-x="attr-spellcheck-default-state">default state. The default state indicates that the +82159: data-x="attr-spellcheck-true-state">true state, or if the element's default state and the element's default state and the element's true state, then checking is enabled; otherwise, if that attribute is in the false +82232: data-x="attr-spellcheck-default-state">default +82234: content attribute is in the true state, then +82311: true +82319: false +82325: data-x="attr-writingsuggestions-default-state">default state. The default state indicates +82331: data-x="attr-writingsuggestions-true-state">true state.

+82351: content attribute is in the false +82356: data-x="attr-writingsuggestions-default-state">default state, element has a +82423: default and the nearest such +82425: in the false state, then return +82944: data-x="attr-hidden-until-found-state">hidden=until-found
+82952: data-x="attr-hidden-until-found-state">hidden until found state should have their hidden until found state should have their contents +85650: true +85655: false +85661: data-x="attr-draggable-auto-state">auto state. The auto state uses the default behavior of +85691: true, the false, the auto. If the element is an +85856: auto +85864: manual +85871: hint +85880: data-x="attr-popover-none-state">no popover state, and its invalid value default is the manual +85940: data-x="attr-popover-auto-state">auto state, then this will also close all other auto popovers unless they are an ancestor of +86035:

If originalType is the auto state, +86057:

If originalType is the hint state, +86097:

If originalType is auto or hint, then:

+86200: data-x="attr-popover-none-state">no popover state, then set element's +86295: data-x="attr-popover-auto-state">auto state or the hint state, then:

+86442: data-x="attr-popover-auto-state">auto state or endpoint's hint state.

+86466: attribute is in the hint state.

+86572: data-x="attr-popover-auto-state">auto popovers are considered.

+86589: data-x="attr-popover-none-state">no popover state or the manual state.

+86651: data-x="attr-popover-manual-state">manual or none state.

+86656: data-x="attr-popover-hint-state">hint state or candidateAncestor's auto state.

+86695: the auto state and currentNode's +86761: data-x="attr-popover-none-state">no popover state, then:

+86927: toggle +86932: show +86937: hide +86943: data-x="attr-popovertargetaction-toggle-state">toggle state.

+87045: the no popover state, then return null.

+87054: data-x="attr-popover-auto-state">auto state will close the popover. This is in addition to +87152: data-x="attr-popover-auto-state">auto state and targetPopover's popover +130683: the none state; +145009: data-x="attr-hidden-until-found-state">hidden=until-found
attribute before they are diff --git a/source b/source index 2f6d690e48d..a247bad7187 100644 --- a/source +++ b/source @@ -1857,7 +1857,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • If removedNode's popover attribute is not in - the no popover state, then run the hide + the No popover state, then run the hide popover algorithm given removedNode, false, false, and false.

  • @@ -7984,21 +7984,21 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute high - high + High Signals a high-priority fetch relative to other resources with the same destination. low - low + Low Signals a low-priority fetch relative to other resources with the same destination. auto - auto + Auto Signals automatic determination of fetch priority relative to other resources with the same destination. @@ -8006,7 +8006,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

    The attribute's missing value default and invalid value default are both the - auto state.

    + Auto state.

    Common DOM interfaces

    @@ -13653,31 +13653,31 @@ Transport Protocol">HTTP</abbr> today.</p>
  • Otherwise, if there is an ancestor element with a spellcheck content attribute that is not in the default + data-x="attr-spellcheck-default-state">Default state, then: if the nearest such ancestor's spellcheck - content attribute is in the true state, then + content attribute is in the True state, then checking is enabled; otherwise, checking is disabled.
  • @@ -82308,7 +82309,7 @@ body { display:none } true - true + True Writing suggestions should be offered on this element. @@ -82316,19 +82317,19 @@ body { display:none } false - false + False Writing suggestions should not be offered on this element.

    The attribute's missing value default is the default state. The default state indicates + data-x="attr-writingsuggestions-default-state">Default state. The default state indicates that the element is to act according to a default behavior, possibly based on the parent element's own writingsuggestions state, as defined below.

    The attribute's invalid value default is the true state.

    + data-x="attr-writingsuggestions-true-state">True state.

    element.writingSuggestions [ = value ]
    @@ -82348,12 +82349,12 @@ body { display:none }
    1. If element's writingsuggestions - content attribute is in the false + content attribute is in the False state, return "false".

    2. If element's writingsuggestions content attribute is in the default state, element has a + data-x="attr-writingsuggestions-default-state">Default state, element has a parent element, and the computed writing suggestions value of element's parent element is "false", then return "false".

    3. @@ -82420,9 +82421,9 @@ body { display:none }
    4. If element has an inclusive ancestor with a writingsuggestions content attribute that's not in the - default and the nearest such + Default and the nearest such ancestor's writingsuggestions content attribute is - in the false state, then return + in the False state, then return false.

    5. Otherwise, return true.

    6. @@ -82941,7 +82942,7 @@ body { display:none } data-x="">window.find()
      API.

      Interaction with details and hidden=until-found

      + data-x="attr-hidden-until-found-state">Hidden=until-found

      When find-in-page begins searching for matches, all details elements in the page which do not have their open attribute set should have the @@ -82949,12 +82950,12 @@ body { display:none } without modifying the open attribute, in order to make find-in-page able to search through it. Similarly, all HTML elements with the hidden attribute in the hidden until found state should have their Hidden until found state should have their skipped contents become accessible without modifying the hidden attribute in order to make find-in-page able to search through them. After find-in-page finishes searching for matches, the details elements and the elements with the hidden attribute in the hidden until found state should have their contents + data-x="attr-hidden-until-found-state">Hidden until found state should have their contents become skipped again. This entire process must happen synchronously (and so is not observable to users or to author code). CSSCONTAIN

      @@ -85647,18 +85648,18 @@ dictionary DragEventInit : MouseEventInit { true - true + True The element will be draggable. false - false + False The element will not be draggable.

      The attribute's missing value default and invalid value default are both the auto state. The auto state uses the default behavior of + data-x="attr-draggable-auto-state">Auto state. The auto state uses the default behavior of the user agent.

      An element with a draggable attribute should also have a @@ -85688,15 +85689,15 @@ dictionary DragEventInit : MouseEventInit { draggable as well.

      If an element's draggable content attribute has the state - true, the True, the draggable IDL attribute must return true.

      Otherwise, if the element's draggable content attribute - has the state false, the False, the draggable IDL attribute must return false.

      Otherwise, the element's draggable content attribute has - the state auto. If the element is an + the state Auto. If the element is an img element, an object element that represents an image, or an a element with an href content attribute, the draggable IDL attribute must return true; @@ -85853,7 +85854,7 @@ dictionary DragEventInit : MouseEventInit { auto - auto + Auto Closes other popovers when opened; has light dismiss and responds to close requests. @@ -85861,14 +85862,14 @@ dictionary DragEventInit : MouseEventInit { manual - manual + Manual Does not close other popovers; does not light dismiss or respond to close requests. hint - hint + Hint Closes other hint popovers when opened, but not other auto popovers; has light dismiss and responds to close requests. @@ -85877,8 +85878,8 @@ dictionary DragEventInit : MouseEventInit {

      The attribute's missing value default is the no popover state, and its invalid value default is the manual + data-x="attr-popover-none-state">No popover state, and its invalid value default is the Manual state.

      The popover IDL @@ -85937,8 +85938,8 @@ dictionary DragEventInit : MouseEventInit {

      Shows the popover element by adding it to the top layer. If element's popover attribute is in the auto state, then this will also close all other auto popovers unless they are an ancestor of + data-x="attr-popover-auto-state">Auto state, then this will also close all other Auto popovers unless they are an ancestor of element according to the topmost popover ancestor algorithm.
      element.DragEventInit : MouseEventInit { popover list, invoker, and true.

    7. -

      If originalType is the auto state, +

      If originalType is the Auto state, then:

        @@ -86054,7 +86055,7 @@ dictionary DragEventInit : MouseEventInit {
      1. -

        If originalType is the hint state, +

        If originalType is the Hint state, then:

          @@ -86094,8 +86095,8 @@ dictionary DragEventInit : MouseEventInit {
        1. -

          If originalType is auto or hint, then:

          +

          If originalType is Auto or Hint, then:

          1. Assert: stackToAppendTo is not null.

          2. @@ -86197,7 +86198,7 @@ dictionary DragEventInit : MouseEventInit {
          3. If shouldRestoreFocus is true and element's popover attribute is not in the no popover state, then set element's + data-x="attr-popover-none-state">No popover state, then set element's previously focused element to originallyFocusedElement.

          4. Queue a popover toggle event task given element, "DragEventInit : MouseEventInit {

          5. If element's popover attribute is in the auto state or the hint state, then:

            + data-x="attr-popover-auto-state">Auto state or the Hint state, then:

            1. Run hide all popovers until given @@ -86439,9 +86440,9 @@ dictionary DragEventInit : MouseEventInit {

            2. Assert: endpoint is a Document or endpoint's popover attribute is in the auto state or endpoint's Auto state or endpoint's popover attribute is in the hint state.

            3. + data-x="attr-popover-hint-state">Hint state.

            4. If endpoint is a Document:

              @@ -86463,7 +86464,7 @@ dictionary DragEventInit : MouseEventInit {
              1. Assert: endpoint's popover - attribute is in the hint state.

              2. + attribute is in the Hint state.

              3. Run hide popover stack until given endpoint, document's showing hint popover list, focusPreviousElement, @@ -86569,7 +86570,7 @@ dictionary DragEventInit : MouseEventInit { ancestral relationship. This eliminates non-showing popovers and self-pointers (e.g., a popover containing an invoking element that points back to the containing popover), and it allows for the construction of a well-formed tree from the (possibly cyclic) graph of connections. Only auto popovers are considered.

                + data-x="attr-popover-auto-state">Auto popovers are considered.

                If the provided element is a top layer element such as a dialog which is not showing as a popover, then topmost popover ancestor will only look in the node tree @@ -86586,8 +86587,8 @@ dictionary DragEventInit : MouseEventInit {

              4. Assert: newPopoverOrTopLayerElement's popover attribute is not in the no popover state or the manual state.

              5. + data-x="attr-popover-none-state">No popover state or the Manual state.

              6. Assert: newPopoverOrTopLayerElement's popover visibility state is not in the popover showing @@ -86648,14 +86649,14 @@ dictionary DragEventInit : MouseEventInit {

              7. Assert: candidateAncestor's popover attribute is not in the manual or none state.

              8. + data-x="attr-popover-manual-state">Manual or None state.

              9. Set okNesting to true if newPopoverOrTopLayerElement's popover attribute is in the hint state or candidateAncestor's Hint state or candidateAncestor's popover attribute is in the auto state.

              10. + data-x="attr-popover-auto-state">Auto state.

              11. If okNesting is false, then set candidate to candidateAncestor's parent in the flat tree.

              12. @@ -86692,7 +86693,7 @@ dictionary DragEventInit : MouseEventInit {
                1. If currentNode's popover attribute is in - the auto state and currentNode's + the Auto state and currentNode's popover visibility state is showing, then return currentNode.

                2. @@ -86758,7 +86759,7 @@ dictionary DragEventInit : MouseEventInit {
                  1. If element's popover attribute is in the no popover state, then:

                    + data-x="attr-popover-none-state">No popover state, then:

                    1. If throwExceptions is true, then throw a @@ -86924,23 +86925,23 @@ dictionary DragEventInit : MouseEventInit { toggle - toggle + Toggle Shows or hides the targeted popover element. show - show + Show Shows the targeted popover element. hide - hide + Hide Hides the targeted popover element.

                      The attribute's missing value default and invalid value default are both the toggle state.

                      + data-x="attr-popovertargetaction-toggle-state">Toggle state.

                      Whenever possible ensure the popover element is placed immediately after its triggering element in the DOM. Doing so will help ensure that the popover is exposed in a logical @@ -87042,7 +87043,7 @@ dictionary DragEventInit : MouseEventInit {

                    2. If popoverElement is null, then return null.

                    3. If popoverElement's popover attribute is in - the no popover state, then return null.

                    4. + the No popover state, then return null.

                    5. Return popoverElement.

                    @@ -87051,7 +87052,7 @@ dictionary DragEventInit : MouseEventInit {

                    "Light dismiss" means that clicking outside of a popover whose popover attribute is in the auto state will close the popover. This is in addition to + data-x="attr-popover-auto-state">Auto state will close the popover. This is in addition to how such popovers respond to close requests.

                    To light dismiss open popovers, given a PointerEvent @@ -87149,7 +87150,7 @@ dictionary DragEventInit : MouseEventInit {

                  2. If targetPopover is not null and targetPopover's popover attribute is in the auto state and targetPopover's popover + data-x="attr-popover-auto-state">Auto state and targetPopover's popover visibility state is showing, then return targetPopover.

                  3. @@ -130680,7 +130681,7 @@ document.body.appendChild(text);
                    • template start tag's shadowrootmode is not in - the none state;
                    • + the None state;
                    • document's allow declarative shadow roots is true; or
                    • @@ -145006,7 +145007,7 @@ INSERT INTERFACES HERE Event Elements Fired on elements with the hidden=until-found attribute before they are + data-x="attr-hidden-until-found-state">Hidden=until-found
                      attribute before they are revealed. From 13f48de7735fad7fc5940c478741632f31404697 Mon Sep 17 00:00:00 2001 From: HarshitGourlariya Date: Fri, 14 Feb 2025 19:11:26 +0530 Subject: [PATCH 2/7] Fixes #11027: Corrected the error --- source | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/source b/source index a247bad7187..78f2dff078a 100644 --- a/source +++ b/source @@ -13770,11 +13770,11 @@ Transport Protocol">HTTP</abbr> today.</p>
                      From 8e1c85bf0038d19f2ff196d7e21ba80524030322 Mon Sep 17 00:00:00 2001 From: HarshitGourlariya Date: Mon, 17 Feb 2025 21:21:03 +0530 Subject: [PATCH 5/7] Errors Fixed --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 8d5e74609f3..5ff113367b3 100644 --- a/source +++ b/source @@ -81840,7 +81840,7 @@ addShortcutKeyLabel(document.getElementById('c'));
                      plaintext-only - Plaintext-only + Plaintext-Only Only the element's raw text content is editable; rich formatting is disabled. From e5b5d496ad9f5d270027dce1392a12d1d686a053 Mon Sep 17 00:00:00 2001 From: HarshitGourlariya Date: Wed, 19 Feb 2025 12:38:00 +0530 Subject: [PATCH 6/7] Changes made --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 5ff113367b3..31be4ba7ac9 100644 --- a/source +++ b/source @@ -81932,7 +81932,7 @@ body { display:none } the string "true" if the content attribute is set to the True state, "plaintext-only" if the content attribute is set to the Plaintext-only state, "Plaintext-Ogrep 'attr-.*-state">[a-z]' sourcenly state, "false" if the content attribute is set to the False state, and "Inherit" otherwise. On setting, if the new From 2ac85224379cd72aa81bc7eda1df8a43a412f563 Mon Sep 17 00:00:00 2001 From: HarshitGourlariya Date: Wed, 19 Feb 2025 13:39:08 +0530 Subject: [PATCH 7/7] Errors Fixed --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 31be4ba7ac9..750de98b39d 100644 --- a/source +++ b/source @@ -81932,7 +81932,7 @@ body { display:none } the string "true" if the content attribute is set to the True state, "plaintext-only" if the content attribute is set to the Plaintext-Ogrep 'attr-.*-state">[a-z]' sourcenly state, "Plaintext-Only state, "false" if the content attribute is set to the False state, and "Inherit" otherwise. On setting, if the new