128 |
2119</a> |
2119</a> |
129 |
<cite class="bibref normative">[<a href="#ref-KEYWORDS">KEYWORDS</a>]</cite>.</p> |
<cite class="bibref normative">[<a href="#ref-KEYWORDS">KEYWORDS</a>]</cite>.</p> |
130 |
|
|
131 |
|
<p>Requirements phrased in the imperative as part of algorithms are to be |
132 |
|
interpreted with the meaning of the key word (<em class=rfc2119>MUST</em>) |
133 |
|
used in introducing the algorithm.</p> |
134 |
|
|
135 |
|
<p>Conformance requirements phrased as algorithms or specific steps |
136 |
|
<em class=rfc2119>MAY</em> be implemented in any manner, so long as the end |
137 |
|
result is equivalent.</p> |
138 |
|
|
139 |
<!-- Strictly speaking the paragraph below is not part of terminology. --> |
<!-- Strictly speaking the paragraph below is not part of terminology. --> |
140 |
<p>All examples and notes in this specification are non$B!>(Bnormative, |
<p>All examples and notes in this specification are non$B!>(Bnormative, |
141 |
as are all sections explicitly marked non$B!>(Bnormative. Everything |
as are all sections explicitly marked non$B!>(Bnormative. Everything |
157 |
for now.</p> |
for now.</p> |
158 |
</div> |
</div> |
159 |
|
|
160 |
|
<div class="note memo"> |
161 |
|
<p>The serialized representation will not contain any comment.</p> |
162 |
|
</div> |
163 |
|
<!-- TODO: link terms to Selectors --> |
164 |
|
|
165 |
<div class=section id=serializing-tokens> |
<div class=section id=serializing-tokens> |
166 |
<h3>Serializing Tokens</h3> |
<h3>Serializing Tokens</h3> |
167 |
|
|
168 |
<p>To <dfn id=algorithm-normalize-an-ident title="normalize an IDENT">normalize |
<p>To <dfn id=algorithm-normalize-an-ident title="normalize an IDENT">normalize |
169 |
an <code>IDENT</code> (<dfn id=var-n><var>n</var></dfn>)</dfn>:</p> |
an <code>IDENT</code> (<dfn id=var-n><var>n</var></dfn>)</dfn>, |
170 |
|
the following algorithm <em class=rfc2119>MUST</em> be used:</p> |
171 |
<ol> |
<ol> |
172 |
<li>Replace the escape sequences (<code>\</code> and following |
<li>Replace the escape sequences (<code>\</code> and following |
173 |
characters) in <var>n</var> by characters represented by them |
characters) in <var>n</var> by characters represented by them |
222 |
</ol> |
</ol> |
223 |
|
|
224 |
<p>To <dfn id=algorithm-normalize-a-string title="normalize a STRING">normalize |
<p>To <dfn id=algorithm-normalize-a-string title="normalize a STRING">normalize |
225 |
a <code>STRING</code> (<dfn id=var-s><var>s</var></dfn>)</dfn>:</p> |
a <code>STRING</code> (<dfn id=var-s><var>s</var></dfn>)</dfn>, |
226 |
|
the following algorithm <em class=rfc2119>MUST</em> be used:</p> |
227 |
<ol> |
<ol> |
228 |
<li><p>Replace the escape sequences (<code>\</code> and following |
<li><p>Replace the escape sequences (<code>\</code> and following |
229 |
characters) in <var>s</var> by characters represented by them |
characters) in <var>s</var> by characters represented by them |
288 |
<div class=section id=serializing-simple-selectors> |
<div class=section id=serializing-simple-selectors> |
289 |
<h3>Serializing Simple Selectors</h3> |
<h3>Serializing Simple Selectors</h3> |
290 |
|
|
291 |
|
<p>No <abbr title="Selectors Serialization Format for Testing">SSFT</abbr> |
292 |
|
representation is defined for an invalid simple selector selector.</p> |
293 |
|
|
294 |
<p>To |
<p>To |
295 |
<dfn id=algorithm-serialize-a-simple-selector title="serialize a simple selector">serialize |
<dfn id=algorithm-serialize-a-simple-selector title="serialize a simple selector">serialize |
296 |
a simple selector (<dfn><var id=var-ss>ss</var></dfn>)</dfn>:</p> |
a simple selector (<dfn><var id=var-ss>ss</var></dfn>)</dfn>, |
297 |
|
the following algorithm <em class=rfc2119>MUST</em> be used:</p> |
298 |
<dl class=switch> |
<dl class=switch> |
299 |
<dt>If <var>ss</var> is a type or universal selector</dt> |
<dt>If <var>ss</var> is a type or universal selector</dt> |
300 |
<dd> |
<dd> |
522 |
<p>No <abbr title="Selectors Serialization Format for Testing">SSFT</abbr> |
<p>No <abbr title="Selectors Serialization Format for Testing">SSFT</abbr> |
523 |
representation is defined for an invalid group of selectors.</p> |
representation is defined for an invalid group of selectors.</p> |
524 |
|
|
|
<div class="note memo"> |
|
|
<p>The serialized representation will not contain any comment.</p> |
|
|
</div> |
|
|
|
|
|
<!-- TODO: link terms to Selectors --> |
|
|
|
|
525 |
<p>To |
<p>To |
526 |
<dfn id=algorithm-serialize-a-group-of-selectors title="serialize a group of selectors">serialize |
<dfn id=algorithm-serialize-a-group-of-selectors title="serialize a group of selectors">serialize |
527 |
a group of selectors (<dfn id=var-gs><var>gs</var></dfn>)</dfn>:</p> |
a group of selectors (<dfn id=var-gs><var>gs</var></dfn>)</dfn>, |
528 |
|
the following algorithm <em class=rfc2119>MUST</em> be used:</p> |
529 |
<ol> |
<ol> |
530 |
<li>Let <dfn id=var-result><var>result</var></dfn> an empty string.</li> |
<li>Let <dfn id=var-result><var>result</var></dfn> an empty string.</li> |
531 |
<li>For each selector (<dfn id=var-selector><var>selector</var></dfn>) in |
<li>For each selector (<dfn id=var-selector><var>selector</var></dfn>) in |