From d2148b9212a5c20a16b81a06de78b314c95e1a3d Mon Sep 17 00:00:00 2001 From: jmdyck Date: Sun, 26 Jan 2025 23:14:14 -0500 Subject: [PATCH] Editorial: Fix more typos Includes markup typos, misspelled variable names, removing unused variables, overuse of , and underuse of . --- source | 110 +++++++++++++++++++++++++-------------------------------- 1 file changed, 48 insertions(+), 62 deletions(-) diff --git a/source b/source index e6202030c1c..d0d75d360ce 100644 --- a/source +++ b/source @@ -7448,7 +7448,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute data-x="attr-crossorigin-anonymous">Anonymous, set credentialsMode to "same-origin".

-
  • Let request be a new request whose +

  • Return a new request whose URL is url, destination is destination, mode is mode,

    If CSP list contains a header-delivered Content Security Policy, and element has a nonce content attribute - attr whose value is not the empty string, then:

    + whose value is not the empty string, then:

    1. Let nonce be element's @@ -16132,8 +16132,7 @@ interface HTMLLinkElement : HTMLElement {

    2. Let rawLinkHeaders be the result of getting, decoding, and splitting - `Link` from response's header list.

    3. + `Link` from headers.

    4. For each linkHeader of @@ -22946,7 +22945,7 @@ this specification: the <abbr>WHATWG</abbr> and the

    5. Let start index be null.

    6. -
    7. Let parent start index be null.

    8. +
    9. Let saved start index be null.

    10. Let current base text be null.

    11. @@ -23039,7 +23038,7 @@ this specification: the <abbr>WHATWG</abbr> and the point (current parent, index).

    12. Let new text segment be a base text segment described by the range - annotation range.

      + text range.

    13. Add new text segment to base text segments.

    14. @@ -25603,8 +25602,6 @@ document.body.appendChild(wbr);
      1. If subject cannot navigate, then return.

      2. -
      3. Let replace be false.

      4. -
      5. Let targetAttributeValue be the empty string.

      6. If subject is an a or area element, then set @@ -26835,7 +26832,7 @@ document.body.appendChild(wbr);

        Other keywords must be further parsed as follows to determine what they represent:

        -
          +
          1. If the keyword doesn't contain exactly one U+0078 LATIN SMALL LETTER X or U+0058 LATIN CAPITAL LETTER X character, then this keyword doesn't represent anything. Return for that keyword.

          2. @@ -26858,7 +26855,7 @@ document.body.appendChild(wbr);
          3. The keyword represents that the resource contains a bitmap icon with a width of width device pixels and a height of height device pixels.

          4. -
        +
      @@ -31104,7 +31101,7 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...unavailable, set pending request to null, and return.

      -
    15. Let previous URL be the current request's

      Let previousURL be the current request's current URL.

    16. Let selected source be null and selected pixel density be undefined. @@ -31151,8 +31148,8 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...state is completely available.

    17. -
    18. Prepare current request - for presentation given img.

    19. +
    20. Prepare current request + for presentation given the img element.

    21. Set current request's current pixel density to selected pixel density.

    22. @@ -32141,7 +32138,7 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...

      Otherwise, if the image source has a width descriptor, replace the width descriptor with a pixel density descriptor with a value of the width descriptor value divided by the source size and a unit + value">value of the width descriptor value divided by source size and a unit of x.

      If the source size is 0, then the density would be infinity, @@ -51488,7 +51485,7 @@ ldh-str = < as defined in Fetch request, with - processResponseEndOfBody set to the following step + processResponseEndOfBody set to the following steps given response response:

        @@ -53114,15 +53111,19 @@ You cannot submit this form when the field is incorrect.
      -
    23. If the element has a minimum, and value is less than that minimum, then set +

    24. If the element has a minimum, and value + is less than that minimum, then set value to the smallest value that, when subtracted from the step base, is an integral multiple of the allowed value step, and that is more than or equal to minimum.

    25. + data-x="concept-input-step">allowed value step, and that is more than or equal to + that minimum.

      -
    26. If the element has a maximum, and value is greater than that maximum, then +

    27. If the element has a maximum, and value + is greater than that maximum, then set value to the largest value that, when subtracted from the step base, is an integral multiple of the allowed value step, and that is less than or equal to maximum.

    28. + data-x="concept-input-step">allowed value step, and that is less than or equal to + that maximum.

    29. If either the method invoked was the stepDown() @@ -53844,7 +53845,7 @@ interface HTMLSelectElement : HTMLElement {

      1. If oldParent is a select element and removedNode has an - option child, then run oldParent's selectedness setting + option child, then run oldParent's selectedness setting algorithm.

      @@ -61912,13 +61913,13 @@ interface HTMLDialogElement : HTMLElement { data-x="dom-Event-cancelable">cancelable attribute initialized to true, the oldState attribute initialized to "closed", and the newState - attribute initialized to "open" at this is false, then + attribute initialized to "open" at this is false, then return.

    30. If this has an open attribute, then return.

    31. -
    32. Queue a dialog toggle event task given subject, "

      Queue a dialog toggle event task given this, "closed", and "open".

    33. Add an open attribute to this, whose @@ -61980,7 +61981,7 @@ interface HTMLDialogElement : HTMLElement { data-x="dom-Event-cancelable">cancelable attribute initialized to true, the oldState attribute initialized to "closed", and the newState - attribute initialized to "open" at this is false, then + attribute initialized to "open" at this is false, then return.

    34. If this has an open attribute, @@ -66407,9 +66408,6 @@ context.fillRect(100,0,50,50); // only this square remains

    35. Post-cut: If position is greater than subpath width, then jump to the step labeled convert.

    36. -
    37. If segment length is greater than zero, then let - positioned-at-on-dash be false.

    38. -
    39. Increment index by one. If it is equal to the number of entries in style's dash list, then let index be 0.

    40. @@ -86433,7 +86431,7 @@ dictionary DragEventInit : MouseEventInit {

    To hide popover stack until, given an HTML - element element, a list popoverList, a boolean + element endpoint, a list popoverList, a boolean focusPreviousElement, and a boolean fireEvents:

      @@ -86555,9 +86553,6 @@ dictionary DragEventInit : MouseEventInit {
    1. Let index be 0.

    2. -
    3. Let document be newPopoverOrTopLayerElement's node - document.

    4. -
    5. For each popover of popoverList:

      @@ -86602,7 +86597,7 @@ dictionary DragEventInit : MouseEventInit { data-x="attr-popover-manual-state">manual or none state.

    6. -
    7. Set okNesting to true if newPopover's

      Set okNesting to true if newPopoverOrTopLayerElement's popover attribute is in the hint state or candidateAncestor's popover attribute is in the DragEventInit : MouseEventInit {

      If all of the following are true:

        -
      • element is an HTML element;

      • +
      • element is an HTML element;

      • element's opened in popover mode is "auto"; and

      • element's popover visibility state is showing, + data-x="popover-showing-state">showing,

      then append element to @@ -86812,13 +86807,13 @@ dictionary DragEventInit : MouseEventInit {

      If all of the following are true:

        -
      • element is an HTML element;

      • +
      • element is an HTML element;

      • element's opened in popover mode is "hint"; and

      • element's popover visibility state is showing, + data-x="popover-showing-state">showing,

      then append element to @@ -86831,7 +86826,7 @@ dictionary DragEventInit : MouseEventInit {

    To close entire popover list given a list popoverList, a - boolean focusPreviouselement, and a boolean fireEvents:

    + boolean focusPreviousElement, and a boolean fireEvents:

    1. @@ -87575,7 +87570,7 @@ dictionary DragEventInit : MouseEventInit {
    2. If the surrounding agent's agent cluster's is origin-keyed is true, then return.

    3. -
    4. Set this's origin's

      Set this's origin's domain to the result of parsing the given value.

    @@ -88261,7 +88256,7 @@ dictionary DragEventInit : MouseEventInit { data-x="coop-enforcement-coop">opener policy, is true, then:

      -
    1. Set result's would +

    2. Set newCOOPEnforcementResult's would need a browsing context group switch due to report-only to true.

    3. @@ -88368,7 +88363,7 @@ dictionary DragEventInit : MouseEventInit {
      1. If coopEnforcementResult's would need a browsing context group switch - due to report-only is true, set browsing context's is true, set browsingContext's virtual browsing context group ID to a new unique identifier.

      2. @@ -88653,7 +88648,9 @@ dictionary DragEventInit : MouseEventInit { nextResponseURL - If coopOrigin and nextResponseOrigin are same origin or isCOOPResponseNavigationSource is true, this is the sanitization of previousResponseURL, null otherwise. + If coopOrigin and nextResponseOrigin are same origin + or isCOOPResponseNavigationSource is true, this is the sanitization of nextResponseURL, null otherwise. type @@ -90274,7 +90271,7 @@ dictionary DragEventInit : MouseEventInit {

        If desc.[[Set]] is present and its value is not undefined, then:

          -
        1. Perform ? Call(setter, Receiver, +

        2. Perform ? Call(desc.[[Set]], Receiver, « V »).

        3. Return true.

        4. @@ -94915,7 +94912,7 @@ const p2 = navigation.navigate(url2).finished;
        5. Set navigation's upcoming traverse API method - trackers[key] to apiMethodTracker.

        6. + trackers[destinationKey] to apiMethodTracker.

        7. Return apiMethodTracker.

        @@ -101715,12 +101712,12 @@ location.href = '#foo';
      3. Let totalTasks be the size of - documentsThatNeedBeforeunload.

      4. + documentsToFireBeforeunload.

      5. Let completedTasks be 0.

      6. -

        For each document of documents, +

        For each document of documentsToFireBeforeunload, queue a global task on the navigation and traversal task source given document's relevant global object to run the steps:

        @@ -106104,7 +106101,7 @@ new PaymentRequest(…); // Allowed to use
      7. For each childNavigable of - childNavigable's in what order?, queue a + childNavigables in what order?, queue a global task on the navigation and traversal task source given childNavigable's active window to perform the following steps:

        @@ -106273,7 +106270,7 @@ new PaymentRequest(…); // Allowed to use
      8. For each childNavigable of - childNavigable's in what order?, queue a + childNavigables in what order?, queue a global task on the navigation and traversal task source given childNavigable's active window to perform the following steps:

        @@ -117627,7 +117624,7 @@ interface MimeType {
      9. Let mimeTypes be this's relevant global object's PDF viewer mime type objects.

      10. -
      11. If index < mimeType's size, then +

      12. If index < mimeTypes's size, then return mimeTypes[index].

      13. Return null.

      14. @@ -117824,7 +117821,7 @@ dictionary ImageBitmapOptions {

        The createImageBitmap(image, - options) and createImageBitmap(image + options) and createImageBitmap(image, sx, sy, sw, sh, options) methods, when invoked, must run these steps:

        @@ -121520,7 +121517,7 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope realm">realm.

      15. -

        If shared is false, then:

        +

        If is shared is false, then:

        1. Set inside port's message event target to worker global @@ -122028,7 +122025,7 @@ interface SharedWorker : EventTarget { urlRecord; and

        2. scope's name equals - the value of option's name member,
        3. + the value of options's name member,

          then:

          @@ -126143,8 +126140,6 @@ dictionary StorageEventInit : EventInit { to. Otherwise, these steps will return a character encoding.

            -
          1. Let fallback encoding be null.

          2. -
          3. Let position be a pointer to a byte in the input byte stream, initially pointing at the first byte.

          4. @@ -126908,7 +126903,7 @@ dictionary StorageEventInit : EventInit {
          5. Initialize node to be the current node (the bottommost node of the stack).

          6. -
          7. If node is the target node, terminate in a match state.

          8. +
          9. If node is target node, terminate in a match state.

          10. Otherwise, if node is one of the element types in list, terminate in a failure state.

          11. @@ -138179,21 +138174,12 @@ progress { appearance: auto; }
          12. Let input dimension be the size passed to the algorithm.

          13. -

            Let count percentage be the number of entries in input list whose unit - is percentage.

            -

            Let total percentage be the sum of all the numbers in input list whose unit is percentage.

            -

            Let count relative be the number of entries in input list whose unit is - relative.

            -

            Let total relative be the sum of all the numbers in input list whose unit is relative.

            -

            Let count absolute be the number of entries in input list whose unit is - absolute.

            -

            Let total absolute be the sum of all the numbers in input list whose unit is absolute.