1 |
<!DOCTYPE html> |
<!DOCTYPE html> |
2 |
<html lang="en" class="formal-specification status-work-in-progress"> |
<html lang="en" class="formal-specification"><!-- work-in-progress --> |
3 |
<head> |
<head> |
4 |
<title>Selectors Serialization Format for Testing (SSFT) Specification</title> |
<title>Selectors Serialization Format for Testing (SSFT) Specification</title> |
5 |
<link rel="stylesheet" href="http://suika.fam.cx/www/style/html/spec"> |
<link rel="stylesheet" href="http://suika.fam.cx/www/style/html/spec"> |
10 |
<div class="header"> |
<div class="header"> |
11 |
<h1>Selectors Serialization Format for Testing (<abbr>SSFT</abbr>) |
<h1>Selectors Serialization Format for Testing (<abbr>SSFT</abbr>) |
12 |
Specification</h1> |
Specification</h1> |
13 |
<h2>Working Draft <time datetime=2007-11-05>5 November 2007</time></h2> |
<h2>First Edition <!-- Working Draft --> |
14 |
|
<time datetime=2007-11-05>5 November 2007</time></h2> |
15 |
|
|
16 |
<dl class="versions-uri"> |
<dl class="versions-uri"> |
17 |
<dt>This Version</dt> |
<dt>This Version</dt> |
18 |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/selectors/ssft/ssft" |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/selectors/ssft/ssft-20071105" |
19 |
>http://suika.fam.cx/www/markup/selectors/ssft/ssft</a>></code></dd> |
>http://suika.fam.cx/www/markup/selectors/ssft/ssft-20071105</a>></code></dd> |
20 |
<dt>Latest Version</dt> |
<dt>Latest Version</dt> |
21 |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/selectors/ssft/ssft" |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/selectors/ssft/ssft" |
22 |
>http://suika.fam.cx/www/markup/selectors/ssft/ssft</a>></code></dd> |
>http://suika.fam.cx/www/markup/selectors/ssft/ssft</a>></code></dd> |
|
<!-- |
|
23 |
<dt>Latest Working Draft</dt> |
<dt>Latest Working Draft</dt> |
24 |
--> |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/selectors/ssft/ssft-work" |
25 |
|
>http://suika.fam.cx/www/markup/selectors/ssft/ssft-work</a>></code></dd> |
26 |
<!-- <dt>Previous Version</dt> --> |
<!-- <dt>Previous Version</dt> --> |
27 |
<dt>Version History</dt> |
<dt>Version History</dt> |
28 |
<dd><code class=URI><<a href="http://suika.fam.cx/gate/cvs/markup/selectors/ssft/ssft.en.html">http://suika.fam.cx/gate/cvs/markup/selectors/ssft/ssft.en.html</a>></code></dd> |
<dd><code class=URI><<a href="http://suika.fam.cx/gate/cvs/markup/selectors/ssft/ssft-work.en.html">http://suika.fam.cx/gate/cvs/markup/selectors/ssft/ssft-work.en.html</a>></code></dd> |
29 |
</dl> |
</dl> |
30 |
<dl class="authors" id="author"> |
<dl class="authors" id="author"> |
31 |
<dt>Author</dt> |
<dt>Author</dt> |
67 |
at the time of its publication. Other documents |
at the time of its publication. Other documents |
68 |
might supersede this document.</em></p> |
might supersede this document.</em></p> |
69 |
|
|
70 |
<p>This document is a working draft, produced as part of the |
<p>This document is the specification |
71 |
|
<!-- This document is a working draft --> |
72 |
|
of <abbr title="Selectors Serialization Format for Testing">SSFT</abbr>, |
73 |
|
produced as part of the |
74 |
<a href="http://suika.fam.cx/www/markup/html/whatpm/readme">Whatpm</a> |
<a href="http://suika.fam.cx/www/markup/html/whatpm/readme">Whatpm</a> |
75 |
subproject |
subproject |
76 |
of the <a href="http://suika.fam.cx/www/manakai-core/doc/web/">manakai</a> |
of the <a href="http://suika.fam.cx/www/manakai-core/doc/web/">manakai</a> |
77 |
project. It might be updated, replaced, or obsoleted by |
project. |
78 |
|
<!-- It might be updated, replaced, or obsoleted by |
79 |
other documents at any time. It is inappropriate to |
other documents at any time. It is inappropriate to |
80 |
cite this document as other than <q>work in progress</q>.</p> |
cite this document as other than <q>work in progress</q>. --></p> |
81 |
|
|
82 |
<p>Comments on this document are welcome and |
<p>Comments on this document are welcome and |
83 |
may be sent to the <a href="#author">author</a>.</p> |
may be sent to the <a href="#author">author</a>.</p> |
173 |
<p>The serialized representation will not contain any comment.</p> |
<p>The serialized representation will not contain any comment.</p> |
174 |
</div> |
</div> |
175 |
|
|
|
<div class="ed issue"><p>TODO: link terms to Selectors</p></div> |
|
|
|
|
176 |
<div class=section id=serializing-tokens> |
<div class=section id=serializing-tokens> |
177 |
<h3>Serializing Tokens</h3> |
<h3>Serializing Tokens</h3> |
178 |
|
|
293 |
</div> |
</div> |
294 |
|
|
295 |
<div class="issue ed"> |
<div class="issue ed"> |
296 |
<p>Need to define <dfn id=lowercase>lowercase</dfn>. |
<p>In a future version of the specification, we need to define |
297 |
It is tr/A-Z/a-z/ for now.</p> |
<dfn id=lowercase>lowercase</dfn> (maybe by referencing some version of |
298 |
|
some module of <abbr>CSS</abbr>). It is <code>tr/A-Z/a-z/</code> for now.</p> |
299 |
</div> |
</div> |
300 |
|
|
301 |
<p>To |
<p>To |
495 |
<li>Let <var>a</var> be the |
<li>Let <var>a</var> be the |
496 |
<a href="#algorithm-normalize-an-integer" title="normalize an integer">normalized |
<a href="#algorithm-normalize-an-integer" title="normalize an integer">normalized |
497 |
string representation</a> of integer <var>a</var>.</li> |
string representation</a> of integer <var>a</var>.</li> |
498 |
<li>Append <var>a</var> to <var>result</var>.</li> |
<li>Append <var>a</var> to <var>r</var>.</li> |
499 |
<li>Append a <code class=char>U+006E</code> |
<li>Append a <code class=char>U+006E</code> |
500 |
<code class=charname>LATIN SMALL LETTER N</code> |
<code class=charname>LATIN SMALL LETTER N</code> |
501 |
(<code class=char>n</code>) character to <var>r</var>.</li> |
(<code class=char>n</code>) character to <var>r</var>.</li> |
513 |
<code class=charname>HYPHEN-MINUS</code> (<code class=char>-</code>) |
<code class=charname>HYPHEN-MINUS</code> (<code class=char>-</code>) |
514 |
character, then append <code class=char>U+002B</code> |
character, then append <code class=char>U+002B</code> |
515 |
<code class=charname>PLUS SIGN</code> |
<code class=charname>PLUS SIGN</code> |
516 |
(<code class=char>+</code>) to <var>result</var>.</li> |
(<code class=char>+</code>) to <var>r</var>.</li> |
517 |
<li>Append <var>b</var> to <var>result</var>.</li> |
<li>Append <var>b</var> to <var>r</var>.</li> |
518 |
<li>Append a <code class=char>U+0029</code> |
<li>Append a <code class=char>U+0029</code> |
519 |
<code class=charname>RIGHT PARENTHESIS</code> |
<code class=charname>RIGHT PARENTHESIS</code> |
520 |
(<code class=char>)</code>) character |
(<code class=char>)</code>) character |