Skip to content

Commit 9057992

Browse files
committed
Editorial: rename host parser's isNotSpecial to isOpaque
Double negatives are hard to read.
1 parent b86ab66 commit 9057992

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

url.bs

+6-7
Original file line numberDiff line numberDiff line change
@@ -675,14 +675,13 @@ point <a for=/>URLs</a> from <var>A</var> can come from untrusted sources.
675675

676676
<div class=example id=example-host-parsing>
677677
<p>A <a lt="host parser">parse</a>-<a lt="host serializer">serialize</a> roundtrip gives the
678-
following results, depending on the <var ignore>isNotSpecial</var> argument to the
679-
<a>host parser</a>:
678+
following results, depending on the <var ignore>isOpaque</var> argument to the <a>host parser</a>:
680679

681680
<table>
682681
<tr>
683682
<th>Input
684-
<th>Output (<var ignore>isNotSpecial</var> = false)
685-
<th>Output (<var ignore>isNotSpecial</var> = true)
683+
<th>Output (<var ignore>isOpaque</var> = false)
684+
<th>Output (<var ignore>isOpaque</var> = true)
686685
<tr>
687686
<td><code>EXAMPLE.COM</code>
688687
<td rowspan=2><code>example.com</code> (<a for=/>domain</a>)
@@ -998,8 +997,8 @@ to be distinguished.
998997

999998
<div algorithm>
1000999
<p>The <dfn export id=concept-host-parser lt="host parser|host parsing">host parser</dfn> takes a
1001-
<a>scalar value string</a> <var>input</var> with an optional boolean <var>isNotSpecial</var>
1002-
(default false), and then runs these steps. They return failure or a <a for=/>host</a>.
1000+
<a>scalar value string</a> <var>input</var> with an optional boolean <var>isOpaque</var> (default
1001+
false), and then runs these steps. They return failure or a <a for=/>host</a>.
10031002

10041003
<ol>
10051004
<li>
@@ -1013,7 +1012,7 @@ to be distinguished.
10131012
leading U+005B ([) and trailing U+005D (]) removed.
10141013
</ol>
10151014

1016-
<li><p>If <var>isNotSpecial</var> is true, then return the result of
1015+
<li><p>If <var>isOpaque</var> is true, then return the result of
10171016
<a lt="opaque-host parser">opaque-host parsing</a> <var>input</var>.
10181017

10191018
<li><p>Assert: <var>input</var> is not the empty string.

0 commit comments

Comments
 (0)