@@ -224,7 +224,7 @@ with <<navigation-condition>> defined as:
224224
225225<dfn><<navigation-location-test>></dfn> = <<navigation-location-keyword>> : <<navigation-location>>
226226<dfn><<navigation-location-keyword>></dfn> = at | with | from | to
227- <dfn><<navigation-location>></dfn> = <<route-name>> | <<url-pattern()>>
227+ <dfn><<navigation-location>></dfn> = <<route-name>> | <<url-pattern()>> | <<url>>
228228<dfn><<route-name>></dfn> = <<dashed-ident>>
229229
230230<dfn><<navigation-location-between-test>></dfn> =
@@ -292,14 +292,10 @@ as follows:
292292 :: The result is true if
293293 the [=current from URL=] <var> from</var> of the document is non-null,
294294 the [=current to URL=] <var> to</var> of the document is non-null,
295- [=URL pattern/match|match a URL pattern=] is non-null
296- given <var> urlPattern</var> as
297- the [=navigation location URL pattern=] of one of the two <<navigation-location>> s
298- and <var> input</var> as <var> from</var> , and
299- [=URL pattern/match|match a URL pattern=] is non-null
300- given <var> urlPattern</var> as
301- the [=navigation location URL pattern=] of the other of the two <<navigation-location>> s
302- and <var> input</var> as <var> to</var> .
295+ one of the two <<navigation-location>> s
296+ [=navigation-location/matches=] <var> from</var> ,
297+ and the other of the two <<navigation-location>> s
298+ [=navigation-location/matches=] <var> to</var> .
303299
304300: <<navigation-type-test>>
305301:: : history: traverse
@@ -321,28 +317,35 @@ as follows:
321317 <span class='note'> It exists only for future-compatibility,
322318 so that new syntax additions do not invalidate too much of a <<navigation-condition>> in older user agents.</span>
323319
324- The <dfn>navigation location URL pattern</dfn> of a <<navigation-location>>
325- depends on the type of <<navigation-location>> :
320+ A <<navigation-location>> is defined to
321+ <dfn for="navigation-location">match</dfn> a URL <var> input</var> if:
322+
323+ <dl class=switch>
324+
325+ : the <<navigation-location>> is a <<route-name>>
326+ :: [=URL pattern/match|match a URL pattern=] is non-null given
327+ <var> urlPattern</var> as
328+ the [=URL pattern=] represented by the ''@route'' rule referenced by the name and
329+ <var> input</var> as <var> input</var> .
326330
327- : <<route-name>>
328- :: the URL pattern represented by the ''@route'' rule referenced by the name.
331+ : the <<navigation-location>> is a <<url-pattern()>>
332+ :: [=URL pattern/match|match a URL pattern=] is non-null given
333+ <var> urlPattern</var> as
334+ the [=URL pattern=] represented by the function (see
335+ [=create a URL pattern for url-pattern()=] ) and
336+ <var> input</var> as <var> input</var> .
329337
330- : <<url-pattern()>>
331- :: The [=URL pattern=] represented by the function; see
332- [=create a URL pattern for url-pattern()=] .
338+ : the <<navigation-location>> is a <<url>>
339+ :: The given URL [=url/equals=] <var> input</var> .
340+
341+ </dl>
333342
334343ISSUE: Should it also be possible to reference
335344a name defined in a routemap?
336345See the
337346<a href="https://github.com/WICG/declarative-partial-updates/blob/main/route-matching-explainer.md">route matching explainer</a>
338347for details.
339348
340- A <<navigation-location>> is defined to
341- <dfn for="navigation-location">match</dfn> a URL <var> input</var> if
342- [=URL pattern/match|match a URL pattern=] is non-null given
343- <var> urlPattern</var> as the [=navigation location URL pattern=] of the
344- <<navigation-location>> and
345- <var> input</var> as <var> input</var> .
346349
347350A <dfn>document's navigation API</dfn> is
348351the result of the following steps on <var> document</var> :
@@ -500,7 +503,7 @@ ISSUE: Should we use ''at''/''with''/''from''/''to'' or
500503''current'' /''other'' /''from'' /''to'' ?
501504
502505The <dfn>active navigation URL</dfn> for an <<active-navigation-condition>> is:
503- <dl switch>
506+ <dl class= switch>
504507<dt> If the <<navigation-relation>> is ''at''
505508<dd> The [=current at URL=] of the document
506509<dt> If the <<navigation-relation>> is ''with'' or is omitted
0 commit comments