/[suikacvs]/markup/selectors/ssft/ssft-work.en.html
Suika

Diff of /markup/selectors/ssft/ssft-work.en.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by wakaba, Sat Sep 22 12:50:06 2007 UTC revision 1.3 by wakaba, Tue Sep 25 13:28:00 2007 UTC
# Line 10  Line 10 
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 22 September 2007</h2>  <h2>Working Draft 25 September 2007</h2>
14    
15  <dl class="versions-uri">  <dl class="versions-uri">
16  <dt>This Version</dt>  <dt>This Version</dt>
# Line 102  document are to be interpreted as descri Line 102  document are to be interpreted as descri
102  for now.</p>  for now.</p>
103  </div>  </div>
104    
105    <p><dfn id=newline>Newline</dfn> is <code class=char>U+000A</code>
106    <code class=charname>LINE FEED</code> <span class=ed>or
107    U+000D U+000A or U+000A ??</span>.</p>
108    
109    <ol>
110    <li>Let <var>result</var> an empty string.</li>
111    <li>For each selector (<var>selector</var>) in the group of selectors:
112      <ol>
113      <li>If <var>selector</var> is <em>not</em> the first selector
114      in the group of selectors, then append a <code class=char>U+002C</code>
115      <code class=charname>COMMA</code> followed by a
116      <a href="#newline">newline</a> to <var>result</var>.</li>
117      <li>Append four <code class=char>U+0020</code>
118      <code class=charname>SPACE</code> characters to <var>result</var>.</li>
119      <li>Process each sequence of simple selectors or
120      combinator in <var>selector</var> by following algorithm:
121        <dl class=switch>
122        <dt>If it is a sequence of simle selector (<var>sss</var>)</dt>
123          <dd class=ed>@@</dd>
124        <dt>If it is a combinator (<var>c</var>)</dt>
125          <dd>
126            <ol>
127            <li>Append two <code class=char>U+0020</code>
128            <code class=charname>SPACE</code> characters to <var>result</var>.</li>
129            <li>
130              <dl class=switch>
131              <dt>If <var>c</var> is descendant combinator (white space)</dt>
132                <dd>Append a <code class=char>U+0020</code>
133                <code class=charname>SPACE</code> character to
134                <var>result</var>.</dd>
135              <dt>If <var>c</var> is child combinator
136              (<code class=char>></code>)</dt>
137                <dd>Append a <code class=char>U+003E</code>
138                <code class=charname>GREATER-THAN SIGN</code> character to
139                <var>result</var>.</dd>
140              <dt>If <var>c</var> is adjacent sibling combinator
141              (<code class=char>+</code>)</dt>
142                <dd>Append a <code class=char>U+0020</code>
143                <code class=charname>SPACE</code> character to
144                <var>result</var>.</dd>
145              <dt>If <var>c</var> is general sibling combinator
146              (<code class=char>~</code>)</dt>
147                <dd>Append a <code class=char>U+007E</code>
148                <code class=charname>TILDE</code> character to
149                <var>result</var>.</dd>
150              </dl>
151            </li>
152            <li>Append a <code class=char>U+0020</code>
153            <code class=charname>SPACE</code> character to
154            <var>result</var>.</li>
155            </ol>
156          </dd>
157        </dl>
158      </ol>
159    </li>
160    <li>Then, <var>result</var> is the
161    <abbr title="Selectors Serialization Format for Testing">SFFT</abbr>
162    representation of the group of selectors.</li>
163    </ol>
164    
165  </div>  </div>
166    
167  <div class="section" id="parsing">  <div class="section" id="parsing">

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24