Skip to content

Commit 260c287

Browse files
committed
[css-navigation-1] Rename urlpattern() to url-pattern().
Fixes w3c#13122.
1 parent 75e479a commit 260c287

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

css-navigation-1/Overview.bs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ with <<navigation-condition>> defined as:
7979
<dfn><<navigation-in-parens>></dfn> = ( <<navigation-condition>> ) | ( <<navigation-test>> ) | <<general-enclosed>>
8080
<dfn><<navigation-test>></dfn> = <<navigation-location>> | <<navigation-keyword>> : <<navigation-location>>
8181
<dfn><<navigation-keyword>></dfn> = at | from | to
82-
<dfn><<navigation-location>></dfn> = <<urlpattern()>>
82+
<dfn><<navigation-location>></dfn> = <<url-pattern()>>
8383
</pre>
8484

8585
The above grammar is purposely very loose for forwards-compatibility reasons,
@@ -193,9 +193,9 @@ as follows:
193193
The <dfn>navigation location URL pattern</dfn> of a <<navigation-location>>
194194
depends on the type of <<navigation-location>>:
195195

196-
: <<urlpattern()>>
196+
: <<url-pattern()>>
197197
:: The [=URL pattern=] represented by the function; see
198-
[=create a URL pattern for urlpattern()=].
198+
[=create a URL pattern for url-pattern()=].
199199

200200
ISSUE: There is currently only one type of <<navigation-location>>
201201
but we should consider adding another,
@@ -245,7 +245,7 @@ to model it after.
245245

246246
TODO: To be written.
247247

248-
<h2 id="urlpattern-function">The ''urlpattern()'' function</h2>
248+
<h2 id="url-pattern-function">The ''url-pattern()'' function</h2>
249249

250250
<!--
251251

@@ -256,32 +256,32 @@ exported any more, since it was exported for this definition.
256256

257257
-->
258258

259-
The <dfn export function>urlpattern()</dfn> function represents a [=URL pattern=],
259+
The <dfn export function>url-pattern()</dfn> function represents a [=URL pattern=],
260260
which can be used to match URLs.
261261

262262
<pre class="prod def">
263-
<<urlpattern()>> = urlpattern( <<string>> )
263+
<<url-pattern()>> = url-pattern( <<string>> )
264264
</pre>
265265

266266
This function represents a [=URL pattern=] that can be created
267-
using the steps of the <dfn>create a URL pattern for urlpattern()</dfn> algorithm:
267+
using the steps of the <dfn>create a URL pattern for url-pattern()</dfn> algorithm:
268268

269-
1. Let <var>arg</var> be the <<string>> argument to the ''urlpattern()'' function.
269+
1. Let <var>arg</var> be the <<string>> argument to the ''url-pattern()'' function.
270270

271271
1. Let <var>baseURL</var> be the [=style resource base URL=] of
272-
the rule or declaration block containing the ''urlpattern()'' function.
272+
the rule or declaration block containing the ''url-pattern()'' function.
273273

274274
<div class="issue">
275275
Do we want this to be the base URL all the time?
276-
For use of ''urlpattern()'' in ''@navigation'',
276+
For use of ''url-pattern()'' in ''@navigation'',
277277
it's likely more useful for the base URL
278278
to be the document URL rather than the style sheet URL.
279-
However, it would be very awkward for ''urlpattern()''
279+
However, it would be very awkward for ''url-pattern()''
280280
to be inconsistent with ''url()''.
281281

282-
Should we allow the base URL of ''urlpattern()''
282+
Should we allow the base URL of ''url-pattern()''
283283
to be defined by the consumer?
284-
Should we introduce <code>document-urlpattern()</code>?
284+
Should we introduce <code>document-url-pattern()</code>?
285285
Should we do something similar to
286286
[[css-images-3#ambiguous-urls]]
287287
(see <w3c/csswg-drafts#383>)?
@@ -298,7 +298,7 @@ NOTE: This function requires that its argument is quoted.
298298
This differs from the ''url()'' function,
299299
which allows its argument to be quoted or unquoted.
300300

301-
To <dfn export>serialize a ''urlpattern()'' function</dfn> <var>f</var>,
301+
To <dfn export>serialize a ''url-pattern()'' function</dfn> <var>f</var>,
302302
[=serialize a function=] <var>f</var>,
303303
using [=serialize a string=] on the single argument
304304
to serialize <var>f</var>'s contents.

0 commit comments

Comments
 (0)