From 06b94b9ec6863dee9abad8e935f258cf128348f9 Mon Sep 17 00:00:00 2001 From: domenic Date: Tue, 12 Sep 2023 16:42:45 +0000 Subject: [PATCH] deploy: 80af74a2be4343b9dcd8069bd23a83ed562afecd --- index.html | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 6216df6..9660402 100644 --- a/index.html +++ b/index.html @@ -1294,7 +1294,7 @@

1.1. Internals

A URLPattern is associated with multiple component structs.

A component has an associated pattern string, a well formed pattern string, which must be set upon creation.

-

A component has an associated regular expression, a RegExp, which must be set upon creation.

+

A component has an associated regular expression, a RegExp, which must be set upon creation.

A component has an associated group name list, a list of strings, which must be set upon creation.

To compile a component given a string input, encoding callback encoding callback, and options options: @@ -1312,7 +1312,7 @@

Otherwise set flags to "u"

  • -

    Let regular expression be RegExpCreate(regular expression string, flags). If this throws an exception, catch it, and throw a TypeError.

    +

    Let regular expression be RegExpCreate(regular expression string, flags). If this throws an exception, catch it, and throw a TypeError.

    The specification uses regular expressions to perform all matching, but this is not required. Implementations are free to perform matching directly against the part list when possible; e.g. when there are no custom regexp matching groups. If there are custom regular expressions, however, its important that they should be immediately evaluated in the compile a component algorithm so an error can be thrown if they are invalid.

  • Let pattern string be the result of running generate a pattern string given part list and options.

    @@ -1404,21 +1404,21 @@

    Set hash to url’s fragment or the empty string if the value is null.

  • -

    Let protocolExecResult be RegExpBuiltinExec(urlpattern’s protocol component's regular expression, protocol).

    +

    Let protocolExecResult be RegExpBuiltinExec(urlpattern’s protocol component's regular expression, protocol).

  • -

    Let usernameExecResult be RegExpBuiltinExec(urlpattern’s username component's regular expression, username).

    +

    Let usernameExecResult be RegExpBuiltinExec(urlpattern’s username component's regular expression, username).

  • -

    Let passwordExecResult be RegExpBuiltinExec(urlpattern’s password component's regular expression, password).

    +

    Let passwordExecResult be RegExpBuiltinExec(urlpattern’s password component's regular expression, password).

  • -

    Let hostnameExecResult be RegExpBuiltinExec(urlpattern’s hostname component's regular expression, hostname).

    +

    Let hostnameExecResult be RegExpBuiltinExec(urlpattern’s hostname component's regular expression, hostname).

  • -

    Let portExecResult be RegExpBuiltinExec(urlpattern’s port component's regular expression, port).

    +

    Let portExecResult be RegExpBuiltinExec(urlpattern’s port component's regular expression, port).

  • -

    Let pathnameExecResult be RegExpBuiltinExec(urlpattern’s pathname component's regular expression, pathname).

    +

    Let pathnameExecResult be RegExpBuiltinExec(urlpattern’s pathname component's regular expression, pathname).

  • -

    Let searchExecResult be RegExpBuiltinExec(urlpattern’s search component's regular expression, search).

    +

    Let searchExecResult be RegExpBuiltinExec(urlpattern’s search component's regular expression, search).

  • -

    Let hashExecResult be RegExpBuiltinExec(urlpattern’s hash component's regular expression, hash).

    +

    Let hashExecResult be RegExpBuiltinExec(urlpattern’s hash component's regular expression, hash).

  • If protocolExecResult, usernameExecResult, passwordExecResult, hostnameExecResult, portExecResult, pathnameExecResult, searchExecResult, or hashExecResult are null then return null.

  • @@ -1446,7 +1446,7 @@

  • - To create a component match result given a component component, a string input, and an array representing the output of RegExpBuiltinExec execResult: + To create a component match result given a component component, a string input, and an array representing the output of RegExpBuiltinExec execResult:
    1. Let result be a new URLPatternComponentResult.

      @@ -1457,12 +1457,12 @@

      Let index be 1.

    2. -

      While index is less than Get(execResult, "length"):

      +

      While index is less than Get(execResult, "length"):

      1. Let name be component’s group name list[index − 1].

      2. -

        Let value be Get(execResult, ToString(index)).

        +

        Let value be Get(execResult, ToString(index)).

      3. Set groups[name] to value.

      4. @@ -1486,7 +1486,7 @@

        For each scheme of special scheme list:

        1. -

          Let test result be RegExpBuiltinExec(protocol component’s regular expression, scheme).

          +

          Let test result be RegExpBuiltinExec(protocol component’s regular expression, scheme).

        2. If test result is not null, then return true.

        @@ -3829,11 +3829,11 @@

        [ECMASCRIPT] defines the following terms:
          -
        • Get -
        • RegExp -
        • RegExpBuiltinExec -
        • RegExpCreate -
        • ToString +
        • Get +
        • RegExp +
        • RegExpBuiltinExec +
        • RegExpCreate +
        • ToString
        • identifierpart
        • identifierstart
        @@ -4475,11 +4475,11 @@

        I