Skip to content

Commit cde3af1

Browse files
committed
rename escape to serialize for algorithms
1 parent 548a343 commit cde3af1

2 files changed

Lines changed: 83 additions & 83 deletions

File tree

cssom/Overview.html

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -337,38 +337,38 @@ <h3 id=conformance><span class=secno>2.2. </span>Conformance Requirements</h3>
337337
<h3 id=common-serializing-idioms><span class=secno>2.3. </span>Common
338338
Serializing Idioms</h3>
339339

340-
<p>To <dfn id=escape-a-character>escape a character</dfn> means to create a
341-
string of "<code>\</code>" (U+005C), followed by the character.
340+
<p>To <dfn id=serialize-a-character>serialize a character</dfn> means to
341+
create a string of "<code>\</code>" (U+005C), followed by the character.
342342

343-
<p>To <dfn id=escape-a-character-as-code-point>escape a character as code
344-
point</dfn> means to create a string of "<code>\</code>" (U+005C),
343+
<p>To <dfn id=serialize-a-character-as-code-point>serialize a character as
344+
code point</dfn> means to create a string of "<code>\</code>" (U+005C),
345345
followed by the Unicode code point as the smallest possible number of
346346
hexadecimal digits in the range 0-9 a-f (U+0030 to U+0039 and U+0061 to
347347
U+0066) to represent the code point in base 16, followed by a space
348348
(U+0020).
349349

350-
<p>To <dfn id=escape-an-identifier>escape an identifier</dfn> means to
351-
create a string represented by the concatenation of, for each character of
352-
the identifier:
350+
<p>To <dfn id=serialize-an-identifier>serialize an identifier</dfn> means
351+
to create a string represented by the concatenation of, for each character
352+
of the identifier:
353353

354354
<ul>
355355
<li>If the character is in the range U+0000 to U+001F, the character <a
356-
href="#escape-a-character-as-code-point" title="escape a character as
357-
code point">escaped as code point</a>.
356+
href="#serialize-a-character-as-code-point" title="serialize a character
357+
as code point">escaped as code point</a>.
358358

359359
<li>If the character is the first character and is in the range 0-9
360360
(U+0030 to U+0039), the character <a
361-
href="#escape-a-character-as-code-point" title="escape a character as
362-
code point">escaped as code point</a>.
361+
href="#serialize-a-character-as-code-point" title="serialize a character
362+
as code point">escaped as code point</a>.
363363

364364
<li>If the character is the second character and is in the range 0-9
365365
(U+0030 to U+0039) and the first character is a "<code>-</code>"
366-
(U+002D), the character <a href="#escape-a-character-as-code-point"
367-
title="escape a character as code point">escaped as code point</a>.
366+
(U+002D), the character <a href="#serialize-a-character-as-code-point"
367+
title="serialize a character as code point">escaped as code point</a>.
368368

369369
<li>If the character is the second character and is "<code>-</code>"
370370
(U+002D) and the first character is "<code>-</code>" too, the <a
371-
href="#escape-a-character" title="escape a character">escaped</a>
371+
href="#serialize-a-character" title="serialize a character">escaped</a>
372372
character.
373373

374374
<li>If the character is not handled by one of the above rules and is
@@ -377,22 +377,22 @@ <h3 id=common-serializing-idioms><span class=secno>2.3. </span>Common
377377
U+0039), A-Z (U+0041 to U+005A), or a-z (U+0061 to U+007A), the character
378378
itself.
379379

380-
<li>Otherwise, the <a href="#escape-a-character" title="escape a
380+
<li>Otherwise, the <a href="#serialize-a-character" title="serialize a
381381
character">escaped</a> character.
382382
</ul>
383383

384-
<p>To <dfn id=escape-a-string>escape a string</dfn> means to create a
384+
<p>To <dfn id=serialize-a-string>serialize a string</dfn> means to create a
385385
string represented by '<code>"</code>' (U+0022), followed by the result of
386386
applying the rules below to each character of the given string, followed
387387
by '<code>"</code>' (U+0022):
388388

389389
<ul>
390390
<li>If the character is in the range U+0000 to U+001F, the character <a
391-
href="#escape-a-character-as-code-point" title="escape a character as
392-
code point">escaped as code point</a>.
391+
href="#serialize-a-character-as-code-point" title="serialize a character
392+
as code point">escaped as code point</a>.
393393

394394
<li>If the character is '<code>"</code>' (U+0022) or '<code>\</code>'
395-
(U+005C), the <a href="#escape-a-character" title="escape a
395+
(U+005C), the <a href="#serialize-a-character" title="serialize a
396396
character">escaped</a> character.
397397

398398
<li>Otherwise, the character itself.
@@ -401,10 +401,10 @@ <h3 id=common-serializing-idioms><span class=secno>2.3. </span>Common
401401
<p class=note>"<code>'</code>" (U+0027) is not escaped because strings are
402402
always serialized with '<code>"</code>' (U+0022).
403403

404-
<p>To <dfn id=escape-a-url>escape a URL</dfn> means to create a string
405-
represented by "<code title="">url(</code>", followed by the <a
406-
href="#escape-a-string" title="escape a string">string escaped</a> value
407-
of the given string, followed by "<code>)</code>".
404+
<p>To <dfn id=serialize-a-url>serialize a URL</dfn> means to create a
405+
string represented by "<code title="">url(</code>", followed by the <a
406+
href="#serialize-a-string" title="serialize a string">string escaped</a>
407+
value of the given string, followed by "<code>)</code>".
408408

409409
<h2 id=media-queries><span class=secno>3. </span>Media Queries</h2>
410410

@@ -463,9 +463,9 @@ <h3 id=serializing-media-queries><span class=secno>3.2. </span>Serializing
463463

464464
<li>
465465
<p>Let <var title="">type</var> be the media type of the media query, <a
466-
href="#escape-an-identifier" title="escape an identifier">escaped</a>
467-
and <a href="#converted-to-ascii-lowercase">converted to ASCII
468-
lowercase</a>.
466+
href="#serialize-an-identifier" title="serialize an
467+
identifier">escaped</a> and <a
468+
href="#converted-to-ascii-lowercase">converted to ASCII lowercase</a>.
469469

470470
<li>
471471
<p>If the media query does not contain media features append <var
@@ -844,8 +844,8 @@ <h3 id=serializing-selectors><span class=secno>4.2. </span>Serializing
844844
<li>
845845
<p>If the <span>namespace prefix</span> maps to a namespace that is not
846846
the <span>default namespace</span> and is not the null namespace (not
847-
in a namespace) append the <a href="#escape-an-identifier"
848-
title="escape an identifier">escaped</a> <span>namespace
847+
in a namespace) append the <a href="#serialize-an-identifier"
848+
title="serialize an identifier">escaped</a> <span>namespace
849849
prefix</span>, followed by a "<code>|</code>" (U+007C) to <var
850850
title="">s</var>.
851851

@@ -858,8 +858,8 @@ <h3 id=serializing-selectors><span class=secno>4.2. </span>Serializing
858858

859859
<li>
860860
<p>If this is a type selector append the <a
861-
href="#escape-an-identifier" title="escape an identifier">escaped</a>
862-
element name to <var title="">s</var>.</p>
861+
href="#serialize-an-identifier" title="serialize an
862+
identifier">escaped</a> element name to <var title="">s</var>.</p>
863863

864864
<li>
865865
<p>If this is a universal selector append "<code>*</code> (U+002A) to
@@ -876,9 +876,9 @@ <h3 id=serializing-selectors><span class=secno>4.2. </span>Serializing
876876
<li>
877877
<p>If the <span>namespace prefix</span> maps to a namespace that is not
878878
the null namespace (not in a namespace) append the <a
879-
href="#escape-an-identifier" title="escape an identifier">escaped</a>
880-
<span>namespace prefix</span>, followed by a "<code>|</code>" (U+007C)
881-
to <var title="">s</var>.
879+
href="#serialize-an-identifier" title="serialize an
880+
identifier">escaped</a> <span>namespace prefix</span>, followed by a
881+
"<code>|</code>" (U+007C) to <var title="">s</var>.
882882

883883
<li>
884884
<p>If the <span>namespace prefix</span> maps to a namespace that is the
@@ -888,16 +888,16 @@ <h3 id=serializing-selectors><span class=secno>4.2. </span>Serializing
888888
<!-- This includes |* -->
889889

890890
<li>
891-
<p>Append the <a href="#escape-an-identifier" title="escape an
891+
<p>Append the <a href="#serialize-an-identifier" title="serialize an
892892
identifier">escaped</a> attribute name to <var title="">s</var>.
893893

894894
<li>
895895
<p>If there is an attribute value specified, append "<code>=</code>",
896896
"<code>~=</code>", "<code>|=</code>", "<code>^=</code>",
897897
"<code>$=</code>", or "<code>*=</code>" as appropriate (depending on
898898
the type of attribute selector), followed by the <a
899-
href="#escape-a-string" title="escape a string">string escaped</a>
900-
attribute value, to <var title="">s</var>.
899+
href="#serialize-a-string" title="serialize a string">string
900+
escaped</a> attribute value, to <var title="">s</var>.
901901

902902
<li>
903903
<p>Append "<code>]</code>" (U+005D) to <var title="">s</var>.
@@ -907,15 +907,15 @@ <h3 id=serializing-selectors><span class=secno>4.2. </span>Serializing
907907

908908
<dd>
909909
<p>Append a "<code>.</code>" (U+002E), followed by the <a
910-
href="#escape-an-identifier" title="escape an identifier">escaped</a>
911-
class name to <var title="">s</var>.
910+
href="#serialize-an-identifier" title="serialize an
911+
identifier">escaped</a> class name to <var title="">s</var>.
912912

913913
<dt>ID selector
914914

915915
<dd>
916916
<p>Append a "<code>#</code>" (U+0023), followed by the <a
917-
href="#escape-an-identifier" title="escape an identifier">escaped</a> ID
918-
to <var title="">s</var>.
917+
href="#serialize-an-identifier" title="serialize an
918+
identifier">escaped</a> ID to <var title="">s</var>.
919919

920920
<dt>pseudo-class
921921

@@ -933,7 +933,7 @@ <h3 id=serializing-selectors><span class=secno>4.2. </span>Serializing
933933
<dt><code title="">:lang()</code>
934934

935935
<dd>
936-
<p>The <a href="#escape-an-identifier" title="escape an
936+
<p>The <a href="#serialize-an-identifier" title="serialize an
937937
identifier">escaped</a> value.
938938

939939
<dt><code title="">:nth-child()</code>
@@ -1938,7 +1938,7 @@ <h3 id=css-rules><span class=secno>5.4. </span>CSS Rules</h3>
19381938

19391939
<ol>
19401940
<li>The literal string "<code>@import</code>", followed by a space
1941-
(U+0020), followed by the <a href="#escape-a-url" title="escape a
1941+
(U+0020), followed by the <a href="#serialize-a-url" title="serialize a
19421942
URL">URL escaped</a> value of the <code title=dom-CSSImportRule-href><a
19431943
href="#dom-cssimportrule-href">href</a></code> attribute.
19441944

@@ -1967,13 +1967,13 @@ <h3 id=css-rules><span class=secno>5.4. </span>CSS Rules</h3>
19671967

19681968
<dd>
19691969
<p>The literal string "<code>@namespace</code>", followed by a space
1970-
(U+0020), followed by the <a href="#escape-an-identifier" title="escape
1971-
an identifier">identifier escaped</a> value of the <code
1972-
title=dom-CSSNamespaceRule-prefix><a
1970+
(U+0020), followed by the <a href="#serialize-an-identifier"
1971+
title="serialize an identifier">identifier escaped</a> value of the
1972+
<code title=dom-CSSNamespaceRule-prefix><a
19731973
href="#dom-cssnamespacerule-prefix">prefix</a></code> attribute (if
19741974
any), followed by a space (U+0020) if there is a prefix, followed by the
1975-
<a href="#escape-a-url" title="escape a URL">URL escaped</a> value of
1976-
the <code title=dom-CSSNamespaceRule-namespaceURI><a
1975+
<a href="#serialize-a-url" title="serialize a URL">URL escaped</a> value
1976+
of the <code title=dom-CSSNamespaceRule-namespaceURI><a
19771977
href="#dom-cssnamespacerule-namespaceuri">namespaceURI</a></code>
19781978
attribute, followed the character "<code>;</code>" (U+003B).
19791979
</dl>
@@ -3629,7 +3629,7 @@ <h4 id=serializing-css-values><span class=secno>5.6.2. </span>Serializing
36293629
<dt>&lt;identifier>
36303630

36313631
<dd>
3632-
<p>The identifier <a href="#escape-an-identifier" title="escape an
3632+
<p>The identifier <a href="#serialize-an-identifier" title="serialize an
36333633
identifier">escaped</a>.
36343634

36353635
<dt>&lt;integer>
@@ -3687,8 +3687,8 @@ <h4 id=serializing-css-values><span class=secno>5.6.2. </span>Serializing
36873687
<dt>&lt;specific-voice>
36883688

36893689
<dd>
3690-
<p>The string <a href="#escape-a-string" title="escape a string">string
3691-
escaped</a>.
3690+
<p>The string <a href="#serialize-a-string" title="serialize a
3691+
string">string escaped</a>.
36923692

36933693
<dt>&lt;time>
36943694

@@ -3699,8 +3699,8 @@ <h4 id=serializing-css-values><span class=secno>5.6.2. </span>Serializing
36993699
<dt>&lt;uri>
37003700

37013701
<dd>
3702-
<p>The <span>absolute URL</span> <a href="#escape-a-url" title="escape a
3703-
URL">URL escaped</a>.
3702+
<p>The <span>absolute URL</span> <a href="#serialize-a-url"
3703+
title="serialize a URL">URL escaped</a>.
37043704
</dl>
37053705

37063706
<p> &lt;absolute-size>, &lt;border-width>, &lt;border-style>, &lt;bottom>,

0 commit comments

Comments
 (0)