{'css3-modsel-88b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;blockquote xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','escapedcode-css' => 'p { color: green ! important; }
blockquote + div p { color: red; }','escapedcode-html' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','def' => 'Nondeterministic matching of descendant and direct adjacent combinators','number' => '88b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: green ! important; }
blockquote + div p { color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<blockquote>This text should be unstyled.</blockquote>
<div>
<div>
<p>This text should be green.</p>
</div>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<blockquote xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</blockquote>
<div xmlns="http://www.w3.org/1999/xhtml">
<div>
<p>This text should be green.</p>
</div>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','code-xhtml' => '
<blockquote>This text should be unstyled.</blockquote>
<div>
<div>
<p>This text should be green.</p>
</div>
</div>
'},'css3-modsel-105b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title=&quot;si on chantait&quot;] { background-color : red }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','def' => 'Attribute value selector with universal namespace','number' => '105','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title="si on chantait"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
'},'css3-modsel-50' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;1&quot;&gt;
  &lt;r&gt;This text should be in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
a|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test]) { color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;1&quot;&gt;
  &lt;r&gt;This text should be in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED attribute existence selector','number' => '50','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
a|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test]) { color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="1">
  <r>This text should be in green characters</r>
</q>
<s xmlns="http://www.example.org/a">This text should be in green characters</s>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" test="1">
  <r>This text should be in green characters</r>
</q>
<s xmlns="http://www.example.org/a">This text should be in green characters</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;1&quot;&gt;
  &lt;r&gt;This text should be in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="1">
  <r>This text should be in green characters</r>
</q>
<s xmlns="http://www.example.org/a">This text should be in green characters</s>
</div>
'},'css3-modsel-51' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;1&quot;&gt;
  &lt;r test=&quot;11&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;p&gt;This text should be in green characters&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
div.stub &gt; p {color : red }
div.stub &gt; a|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test=&quot;1&quot;]) { color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;1&quot;&gt;
  &lt;r test=&quot;11&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;p&gt;This text should be in green characters&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED attribute value selector','number' => '51','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
div.stub > p {color : red }
div.stub > a|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test="1"]) { color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="1">
  <r test="11">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a">This text should be in green characters</s>
<p>This text should be in green characters</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" test="1">
  <r test="11">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a">This text should be in green characters</s>
<p>This text should be in green characters</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;1&quot;&gt;
  &lt;r test=&quot;11&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;p&gt;This text should be in green characters&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="1">
  <r test="11">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a">This text should be in green characters</s>
<p>This text should be in green characters</p>
</div>
'},'css3-modsel-52' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar foo tut&quot;&gt;
  &lt;r test=&quot;tut foofoo bar&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar tut&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/t&gt;
&lt;p class=&quot;tit foo1 tut&quot;&gt;This text should be in green characters&lt;/p&gt;
&lt;u xmlns=&quot;http://www.example.org/b&quot; test=&quot;tit foo2 tut&quot;&gt;This text should be in green characters&lt;/u&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub p { color : red }
div.stub &gt; a|*, div.stub &gt; b|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test~=&quot;foo&quot;]) { color : lime }
div.stub *|p:not([class~=&quot;foo&quot;]) { color : lime }
div.stub b|*[test~=&quot;foo2&quot;] { color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar foo tut&quot;&gt;
  &lt;r test=&quot;tut foofoo bar&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar tut&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/t&gt;
&lt;p class=&quot;tit foo1 tut&quot;&gt;This text should be in green characters&lt;/p&gt;
&lt;u xmlns=&quot;http://www.example.org/b&quot; test=&quot;tit foo2 tut&quot;&gt;This text should be in green characters&lt;/u&gt;
&lt;/div&gt;
','def' => 'NEGATED attribute space-separated value selector','number' => '52','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub p { color : red }
div.stub > a|*, div.stub > b|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test~="foo"]) { color : lime }
div.stub *|p:not([class~="foo"]) { color : lime }
div.stub b|*[test~="foo2"] { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="bar foo tut">
  <r test="tut foofoo bar">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s>
<t xmlns="http://www.example.org/a">This text should be in green characters</t>
<p class="tit foo1 tut">This text should be in green characters</p>
<u xmlns="http://www.example.org/b" test="tit foo2 tut">This text should be in green characters</u>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" test="bar foo tut">
  <r test="tut foofoo bar">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s>
<t xmlns="http://www.example.org/a">This text should be in green characters</t>
<p class="tit foo1 tut">This text should be in green characters</p>
<u xmlns="http://www.example.org/b" test="tit foo2 tut">This text should be in green characters</u>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar foo tut&quot;&gt;
  &lt;r test=&quot;tut foofoo bar&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar tut&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/t&gt;
&lt;p class=&quot;tit foo1 tut&quot;&gt;This text should be in green characters&lt;/p&gt;
&lt;u xmlns=&quot;http://www.example.org/b&quot; test=&quot;tit foo2 tut&quot;&gt;This text should be in green characters&lt;/u&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="bar foo tut">
  <r test="tut foofoo bar">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s>
<t xmlns="http://www.example.org/a">This text should be in green characters</t>
<p class="tit foo1 tut">This text should be in green characters</p>
<u xmlns="http://www.example.org/b" test="tit foo2 tut">This text should be in green characters</u>
</div>
'},'css3-modsel-141b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title^=&quot;si on&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on beginning without declared namespace','number' => '141b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title^="si on"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-53' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;foo-bar&quot;&gt;
  &lt;r test=&quot;foo-bartut&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar tut&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/t&gt;
&lt;p class=&quot;en-uk&quot;&gt;This text should be in green characters&lt;/p&gt;
&lt;u xmlns=&quot;http://www.example.org/b&quot; test=&quot;foo2-bar-lol&quot;&gt;This text should be in green characters&lt;/u&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub p { color : red }
div.stub &gt; a|*, div.stub &gt; b|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test|=&quot;foo-bar&quot;]) { color : lime }
div.stub *|p:not([lang|=&quot;en-us&quot;]) { color : lime }
div.stub b|*[test|=&quot;foo2-bar&quot;] { color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;foo-bar&quot;&gt;
  &lt;r test=&quot;foo-bartut&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar tut&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/t&gt;
&lt;p class=&quot;en-uk&quot;&gt;This text should be in green characters&lt;/p&gt;
&lt;u xmlns=&quot;http://www.example.org/b&quot; test=&quot;foo2-bar-lol&quot;&gt;This text should be in green characters&lt;/u&gt;
&lt;/div&gt;
','def' => 'NEGATED attribute dash-separated value selector','number' => '53','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub p { color : red }
div.stub > a|*, div.stub > b|* { color : red ; display : block ; margin-bottom : 1em }
div.stub *|*:not([test|="foo-bar"]) { color : lime }
div.stub *|p:not([lang|="en-us"]) { color : lime }
div.stub b|*[test|="foo2-bar"] { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="foo-bar">
  <r test="foo-bartut">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s>
<t xmlns="http://www.example.org/a">This text should be in green characters</t>
<p class="en-uk">This text should be in green characters</p>
<u xmlns="http://www.example.org/b" test="foo2-bar-lol">This text should be in green characters</u>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" test="foo-bar">
  <r test="foo-bartut">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s>
<t xmlns="http://www.example.org/a">This text should be in green characters</t>
<p class="en-uk">This text should be in green characters</p>
<u xmlns="http://www.example.org/b" test="foo2-bar-lol">This text should be in green characters</u>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; test=&quot;foo-bar&quot;&gt;
  &lt;r test=&quot;foo-bartut&quot;&gt;This text should be&lt;/r&gt;
  &lt;r&gt;in green characters&lt;/r&gt;
&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; test=&quot;bar tut&quot;&gt;This text should be in green characters&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/a&quot;&gt;This text should be in green characters&lt;/t&gt;
&lt;p class=&quot;en-uk&quot;&gt;This text should be in green characters&lt;/p&gt;
&lt;u xmlns=&quot;http://www.example.org/b&quot; test=&quot;foo2-bar-lol&quot;&gt;This text should be in green characters&lt;/u&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" test="foo-bar">
  <r test="foo-bartut">This text should be</r>
  <r>in green characters</r>
</q>
<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s>
<t xmlns="http://www.example.org/a">This text should be in green characters</t>
<p class="en-uk">This text should be in green characters</p>
<u xmlns="http://www.example.org/b" test="foo2-bar-lol">This text should be in green characters</u>
</div>
'},'css3-modsel-54' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chantait&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => 'div.stub &gt; * { color : red }
div.stub *:not([title^=&quot;si on&quot;]) { color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chantait&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED substring matching attribute selector on beginning','number' => '54','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub > * { color : red }
div.stub *:not([title^="si on"]) { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chantait">This paragraph should be in green characters.</span>
</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chantait">This paragraph should be in green characters.</span>
</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chantait&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chantait">This paragraph should be in green characters.</span>
</p>
</div>
'},'css3-modsel-100' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; html:lang=&quot;en-us&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|foo|=&quot;bar&quot;], *|*[html|lang|=&quot;en&quot;] { background-color : lime }
','escapedcode-html' => '
&lt;p html:lang=&quot;en-us&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Attribute dash-separated value selector with declared namespace','number' => '100','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|foo|="bar"], *|*[html|lang|="en"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p html:lang="en-us">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" html:lang="en-us">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p html:lang=&quot;en-us&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p html:lang="en-us">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s>
'},'css3-modsel-55' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chante&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => 'div.stub &gt; * { color : red }
div.stub *:not([title$=&quot;tait&quot;]) { color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chante&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED substring matching attribute selector on end','number' => '55','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub > * { color : red }
div.stub *:not([title$="tait"]) { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chante">This paragraph should be in green characters.</span>
</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chante">This paragraph should be in green characters.</span>
</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chante&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chante">This paragraph should be in green characters.</span>
</p>
</div>
'},'css3-modsel-134b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : lime ! important }
div.stub *|*:not([*|title^=&quot;si on&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on beginning with universal namespace','number' => '134b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : lime ! important }
div.stub *|*:not([*|title^="si on"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-101' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|title^=&quot;si on&quot;], *|*[title^=&quot;si on&quot;] { background-color : lime }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Substring matching attribute value selector on beginning with declared namespace','number' => '101','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|title^="si on"], *|*[title^="si on"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
'},'css3-modsel-56' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chante&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => 'div.stub &gt; * { color : red }
div.stub *:not([title*=&quot; on&quot;]) { color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chante&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED substring matching attribute selector on middle','number' => '56','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub > * { color : red }
div.stub *:not([title*=" on"]) { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chante">This paragraph should be in green characters.</span>
</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chante">This paragraph should be in green characters.</span>
</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;on chante?&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p title=&quot;si on chantait&quot;&gt;
     &lt;span title=&quot;si il chante&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p title="on chante?">This paragraph should be in green characters.</p>
<p title="si on chantait">
     <span title="si il chante">This paragraph should be in green characters.</span>
</p>
</div>
'},'css3-modsel-102' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; xmlns:b=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|title$=&quot;tait&quot;], *|*[html|title$=&quot;tait&quot;] { background-color : lime }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; xmlns:b=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Substring matching attribute value selector on end with declared namespace','number' => '102','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|title$="tait"], *|*[html|title$="tait"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; xmlns:b=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
'},'css3-modsel-57' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This a:q element should be unstyled.&lt;/q&gt;
  &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This b:r element should have a green background.&lt;/r&gt;
 &lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
div.stub *:not([a|title]) {background-color : lime }
','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This a:q element should be unstyled.&lt;/q&gt;
  &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This b:r element should have a green background.&lt;/r&gt;
 &lt;/div&gt;
','def' => 'NEGATED Attribute existence selector with declared namespace','number' => '57','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
div.stub *:not([a|title]) {background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q>
  <p title="a paragraph">This paragraph should have a green background.</p>
  <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q>
  <p title="a paragraph">This paragraph should have a green background.</p>
  <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This a:q element should be unstyled.&lt;/q&gt;
  &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This b:r element should have a green background.&lt;/r&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q>
  <p title="a paragraph">This paragraph should have a green background.</p>
  <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r>
 </div>
'},'css3-modsel-103' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|title*=&quot;hanta&quot;], *|*[html|title*=&quot;hanta&quot;] { background-color : lime }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Substring matching attribute value selector on middle with declared namespace','number' => '103','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|title*="hanta"], *|*[html|title*="hanta"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
'},'css3-modsel-58' => {'rev' => '1.1','escapedcode-xml' => ' &lt;!-- &#39;method&#39; is an attribute with a default value in the XHTML DTD --&gt;
 &lt;form xmlns=&quot;http://www.w3.org/1999/xhtml&quot; action=&quot;http://www.example.org/foo.cgi&quot;&gt;
  &lt;p&gt;The paragraph should have a green background.&lt;/p&gt;
 &lt;/form&gt;
','escapedcode-css' => 'form { background-color : red }
form:not([method]) { background-color : lime }
','escapedcode-html' => ' &lt;!-- &#39;method&#39; is an attribute with a default value in the XHTML DTD --&gt;
 &lt;form action=&quot;http://www.example.org/foo.cgi&quot;&gt;
  &lt;p&gt;The paragraph should have a green background.&lt;/p&gt;
 &lt;/form&gt;
','def' => 'Default attribute value and negation pseudo-class','number' => '58','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'form { background-color : red }
form:not([method]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => ' <!-- \'method\' is an attribute with a default value in the XHTML DTD -->
 <form action="http://www.example.org/foo.cgi">
  <p>The paragraph should have a green background.</p>
 </form>
','endTag' => '</form>','date' => '12-november-2001','code-xml' => ' <!-- \'method\' is an attribute with a default value in the XHTML DTD -->
 <form xmlns="http://www.w3.org/1999/xhtml" action="http://www.example.org/foo.cgi">
  <p>The paragraph should have a green background.</p>
 </form>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => ' &lt;!-- &#39;method&#39; is an attribute with a default value in the XHTML DTD --&gt;
 &lt;form action=&quot;http://www.example.org/foo.cgi&quot;&gt;
  &lt;p&gt;The paragraph should have a green background.&lt;/p&gt;
 &lt;/form&gt;
','code-xhtml' => ' <!-- \'method\' is an attribute with a default value in the XHTML DTD -->
 <form action="http://www.example.org/foo.cgi">
  <p>The paragraph should have a green background.</p>
 </form>
'},'css3-modsel-127b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|title^=&quot;si on&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute value selector on beginning with declared namespace','number' => '127b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|title^="si on"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-104' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title] { background-color : lime }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/s&gt;
','def' => 'Attribute existence selector with universal namespace','number' => '104','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s>
'},'css3-modsel-59' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p class=&quot;bar foofoo tut&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p class=&quot;bar foo tut&quot;&gt;
     &lt;span class=&quot;tut foo2&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => 'div.stub &gt; * { color : red }
div.stub *:not(.foo) { color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p class=&quot;bar foofoo tut&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p class=&quot;bar foo tut&quot;&gt;
     &lt;span class=&quot;tut foo2&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED class selector','number' => '59','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub > * { color : red }
div.stub *:not(.foo) { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p class="bar foofoo tut">This paragraph should be in green characters.</p>
<p class="bar foo tut">
     <span class="tut foo2">This paragraph should be in green characters.</span>
</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should be in green characters.</p>
<p class="bar foofoo tut">This paragraph should be in green characters.</p>
<p class="bar foo tut">
     <span class="tut foo2">This paragraph should be in green characters.</span>
</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p class=&quot;bar foofoo tut&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p class=&quot;bar foo tut&quot;&gt;
     &lt;span class=&quot;tut foo2&quot;&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p class="bar foofoo tut">This paragraph should be in green characters.</p>
<p class="bar foo tut">
     <span class="tut foo2">This paragraph should be in green characters.</span>
</p>
</div>
'},'css3-modsel-105' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title=&quot;si on chantait&quot;] { background-color : lime }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','def' => 'Attribute value selector with universal namespace','number' => '105','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title="si on chantait"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
'},'css3-modsel-106' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|class~=&quot;deux&quot;], *|*[*|foo~=&quot;deux&quot;] { background-color : lime }
','escapedcode-html' => '
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','def' => 'Attribute space-separated value selector with universal namespace','number' => '106','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|class~="deux"], *|*[*|foo~="deux"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="un deux trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="un deux trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','code-xhtml' => '
<p class="un deux trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s>
'},'css3-modsel-45b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;But this one should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;And this one should also be unstyled.&lt;/p&gt;
  &lt;address class=&quot;green&quot;&gt;This address is only here to fill some space between two paragraphs and should have a green background.&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background too.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => '.green { background-color: lime; }
.white { background-color: transparent ! important; }
div.stub &gt; p + p { background-color: red; }','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;But this one should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;And this one should also be unstyled.&lt;/p&gt;
  &lt;address class=&quot;green&quot;&gt;This address is only here to fill some space between two paragraphs and should have a green background.&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background too.&lt;/p&gt;
 &lt;/div&gt;
','def' => 'Direct adjacent combinator','number' => '45b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color: lime; }
.white { background-color: transparent ! important; }
div.stub > p + p { background-color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <p class="white">But this one should be unstyled.</p>
  <p class="white">And this one should also be unstyled.</p>
  <address class="green">This address is only here to fill some space between two paragraphs and should have a green background.</address>
  <p class="green">This paragraph should have a green background too.</p>
 </div>
','endTag' => '</div>','date' => '05-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <p class="white">But this one should be unstyled.</p>
  <p class="white">And this one should also be unstyled.</p>
  <address class="green">This address is only here to fill some space between two paragraphs and should have a green background.</address>
  <p class="green">This paragraph should have a green background too.</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;But this one should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;white&quot;&gt;And this one should also be unstyled.&lt;/p&gt;
  &lt;address class=&quot;green&quot;&gt;This address is only here to fill some space between two paragraphs and should have a green background.&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background too.&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <p class="white">But this one should be unstyled.</p>
  <p class="white">And this one should also be unstyled.</p>
  <address class="green">This address is only here to fill some space between two paragraphs and should have a green background.</address>
  <p class="green">This paragraph should have a green background too.</p>
 </div>
'},'css3-modsel-107' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en-us&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[*|lang|=&quot;en&quot;], *|*[a|foo|=&quot;un-d&quot;] { background-color : lime }
','escapedcode-html' => '
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Attribute dash-separated value selector with universal namespace','number' => '107','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[*|lang|="en"], *|*[a|foo|="un-d"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p lang="en-us">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" lang="en-us">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p lang="en-us">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s>
'},'css3-modsel-45c' => {'rev' => '1.0','escapedcode-xml' => '
  &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; This should be unstyled. &lt;/div&gt;
  &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;control&quot;&gt; This should have a green background. &lt;/div&gt;
','escapedcode-css' => '
  .fail + div { background: red; }
  .control { background: green; }
','escapedcode-html' => '
  &lt;div&gt; This should be unstyled. &lt;/div&gt;
  &lt;div class=&quot;control&quot;&gt; This should have a green background. &lt;/div&gt;
','def' => 'Direct adjacent combinator and classes','number' => '45c','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  .fail + div { background: red; }
  .control { background: green; }
','author' => ['Ian Hickson'],'code-html' => '
  <div> This should be unstyled. </div>
  <div class="control"> This should have a green background. </div>
','endTag' => '</div>','date' => '21-november-2001','code-xml' => '
  <div xmlns="http://www.w3.org/1999/xhtml"> This should be unstyled. </div>
  <div xmlns="http://www.w3.org/1999/xhtml" class="control"> This should have a green background. </div>
','namespaces' => '','escapedcode-xhtml' => '
  &lt;div&gt; This should be unstyled. &lt;/div&gt;
  &lt;div class=&quot;control&quot;&gt; This should have a green background. &lt;/div&gt;
','code-xhtml' => '
  <div> This should be unstyled. </div>
  <div class="control"> This should have a green background. </div>
'},'css3-modsel-108' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title^=&quot;si on&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on beginning with universal namespace','number' => '108','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title^="si on"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-109' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title$=&quot;tait&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on end with universal namespace','number' => '109','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title$="tait"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-81b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This div contains only one paragraph.
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
p:not(:only-child) { background-color : lime }
div.testText &gt; div &gt; p { margin-left : 1em }
','escapedcode-html' => '
 &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;div&gt;This div contains only one paragraph.
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','def' => 'NEGATED :only-child pseudo-class','number' => '81b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
p:not(:only-child) { background-color : lime }
div.testText > div > p { margin-left : 1em }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p class="green">This paragraph should have a green background.</p>
 <div>This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="green">This paragraph should have a green background.</p>
 <div xmlns="http://www.w3.org/1999/xhtml">This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;div&gt;This div contains only one paragraph.
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <p class="green">This paragraph should have a green background.</p>
 <div>This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>
'},'css3-modsel-156b' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  foo &amp; address, p { background: red; }
  p { background: lime; }
','escapedcode-html' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing','number' => '156b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  foo & address, p { background: red; }
  p { background: lime; }
','author' => ['Ian Hickson'],'code-html' => '
 <p class="5cm">This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="5cm">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p class="5cm">This line should have a green background.</p>
'},'css3-modsel-156c' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  foo &amp; address, p { background: red ! important; }
  p { background: lime; }
','escapedcode-html' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing','number' => '156c','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  foo & address, p { background: red ! important; }
  p { background: lime; }
','author' => ['Ian Hickson'],'code-html' => '
 <p class="5cm">This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="5cm">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p class="5cm">This line should have a green background.</p>
'},'css3-modsel-74b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime ! important; }
ul &gt; li:not(:nth-last-child(odd)) { background-color : red }
ol &gt; li:not(:nth-last-child(even)) { background-color : red }
table.t1 tr:not(:nth-last-child(-n+4)) { background-color : red }
table.t2 td:not(:nth-last-child(3n+1)) { background-color : red }
table.t1 td, table.t2 td { border : thin black solid }
','escapedcode-html' => '
&lt;ul&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => 'NEGATED :nth-last-child() pseudo-class','number' => '74b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important; }
ul > li:not(:nth-last-child(odd)) { background-color : red }
ol > li:not(:nth-last-child(even)) { background-color : red }
table.t1 tr:not(:nth-last-child(-n+4)) { background-color : red }
table.t2 td:not(:nth-last-child(3n+1)) { background-color : red }
table.t1 td, table.t2 td { border : thin black solid }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<ul>
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="green">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="green">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="green">green cell</td>
<td>1.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>1.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>2.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>2.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>3.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>3.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr class="green">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="green">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="green">green cell</td>
<td>1.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>1.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>2.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>2.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>3.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>3.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="green">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="green">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="green">green cell</td>
<td>1.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>1.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>2.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>2.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>3.2</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>3.5</td>
<td class="green">green cell</td>
      <td class="green">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
'},'css3-modsel-149b' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/address&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','escapedcode-css' => '
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
','escapedcode-html' => '
 &lt;address&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','def' => ':empty pseudo-class and empty elements','number' => '149b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
','author' => ['Ian Hickson'],'code-html' => '
 <address></address>
 <div class="text">This line should have a green background.</div>
','endTag' => '</div>','date' => '15-november-2001','code-xml' => '
 <address xmlns="http://www.w3.org/1999/xhtml"></address>
 <div xmlns="http://www.w3.org/1999/xhtml" class="text">This line should have a green background.</div>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;address&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','code-xhtml' => '
 <address></address>
 <div class="text">This line should have a green background.</div>
'},'css3-modsel-d1b' => {'rev' => '1.0','escapedcode-css' => '
   #test { background: lime; display: block; padding: 1em; }
   #test:empty { background: red; }
','escapedcode-html' => '

 &lt;div&gt;

  &lt;script&gt;
   

    function test() {
      document.getElementById(&#39;test&#39;).appendChild(document.createTextNode(&#39;&#39;));
    }

    window.setTimeout(test, 100);
   
  &lt;/script&gt;

  &lt;p&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;test&quot;&gt;&lt;/div&gt;

 &lt;/div&gt;

','def' => 'NEGATED Dynamic handling of :empty','number' => 'd1','code-html' => '

 <div>

  <script>
   

    function test() {
      document.getElementById(\'test\').appendChild(document.createTextNode(\'\'));
    }

    window.setTimeout(test, 100);
   
  </script>

  <p> The following bar should be green. </p>

  <div id="test"></div>

 </div>

','endTag' => '</div>','date' => '14-november-2001','code-xml' => '

 <div xmlns="http://www.w3.org/1999/xhtml">

  <script>
   <![CDATA[

    function test() {
      document.getElementById(\'test\').appendChild(document.createTextNode(\'\'));
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <p> The following bar should be green. </p>

  <div id="test"></div>

 </div>

','namespaces' => '','dynamic' => 1,'code-xhtml' => '

 <div>

  <script>
   <![CDATA[

    function test() {
      document.getElementById(\'test\').appendChild(document.createTextNode(\'\'));
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <p> The following bar should be green. </p>

  <div id="test"></div>

 </div>

','escapedcode-xml' => '

 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      document.getElementById(&#39;test&#39;).appendChild(document.createTextNode(&#39;&#39;));
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;p&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;test&quot;&gt;&lt;/div&gt;

 &lt;/div&gt;

','modulename' => 'css3-modsel','cssrules' => '
   #test { background: lime; display: block; padding: 1em; }
   #test:empty { background: red; }
','module' => 'W3C Selectors','cdata' => 0,'author' => ['Ian Hickson'],'escapedcode-xhtml' => '

 &lt;div&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      document.getElementById(&#39;test&#39;).appendChild(document.createTextNode(&#39;&#39;));
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;p&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;test&quot;&gt;&lt;/div&gt;

 &lt;/div&gt;

'},'css3-modsel-96b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;
 &lt;p&gt;This line should be unstyled.&lt;/p&gt;
 &lt;elementA xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyled.&lt;/elementA&gt;
 &lt;elementB xmlns=&quot;http://www.example.org/b&quot;&gt;This line should be unstyled.&lt;/elementB&gt;
 &lt;div class=&quot;green&quot;&gt;
  &lt;p xmlns=&quot;&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;elementA xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementA&gt;
  &lt;elementB xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementB&gt;
 &lt;/div&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.green * { background-color : lime ! important }
div.test * { display : block ; margin-bottom : 1em }
div.test |* { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;test&quot;&gt;
 &lt;p&gt;This line should be unstyled.&lt;/p&gt;
 &lt;elementA xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyled.&lt;/elementA&gt;
 &lt;elementB xmlns=&quot;http://www.example.org/b&quot;&gt;This line should be unstyled.&lt;/elementB&gt;
 &lt;div class=&quot;green&quot;&gt;
  &lt;p xmlns=&quot;&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;elementA xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementA&gt;
  &lt;elementB xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementB&gt;
 &lt;/div&gt;
&lt;/div&gt;
','def' => 'Universal selector without declared namespace','number' => '96b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.green * { background-color : lime ! important }
div.test * { display : block ; margin-bottom : 1em }
div.test |* { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="test">
 <p>This line should be unstyled.</p>
 <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA>
 <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB>
 <div class="green">
  <p xmlns="">This line should have a green background</p>
  <elementA xmlns="">This line should have a green background</elementA>
  <elementB xmlns="">This line should have a green background</elementB>
 </div>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="test">
 <p>This line should be unstyled.</p>
 <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA>
 <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB>
 <div class="green">
  <p xmlns="">This line should have a green background</p>
  <elementA xmlns="">This line should have a green background</elementA>
  <elementB xmlns="">This line should have a green background</elementB>
 </div>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;test&quot;&gt;
 &lt;p&gt;This line should be unstyled.&lt;/p&gt;
 &lt;elementA xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyled.&lt;/elementA&gt;
 &lt;elementB xmlns=&quot;http://www.example.org/b&quot;&gt;This line should be unstyled.&lt;/elementB&gt;
 &lt;div class=&quot;green&quot;&gt;
  &lt;p xmlns=&quot;&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;elementA xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementA&gt;
  &lt;elementB xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementB&gt;
 &lt;/div&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="test">
 <p>This line should be unstyled.</p>
 <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA>
 <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB>
 <div class="green">
  <p xmlns="">This line should have a green background</p>
  <elementA xmlns="">This line should have a green background</elementA>
  <elementB xmlns="">This line should have a green background</elementB>
 </div>
</div>
'},'css3-modsel-113b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;bar foofoo toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : lime ! important }
*|*[|class~=&quot;foo&quot;] { background-color : red }','escapedcode-html' => '
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute space-separated value selector without declared namespace','number' => '113b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : lime ! important }
*|*[|class~="foo"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="bar foo toto">This paragraph should have a green background.</p>
<address class="bar foofoo toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="bar foo toto">This paragraph should have a green background.</p>
<address xmlns="http://www.w3.org/1999/xhtml" class="bar foofoo toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
<p class="bar foo toto">This paragraph should have a green background.</p>
<address class="bar foofoo toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r>
'},'css3-modsel-106b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|class~=&quot;deux&quot;], *|*[*|foo~=&quot;deux&quot;] { background-color : red }
','escapedcode-html' => '
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','def' => 'Attribute space-separated value selector with universal namespace','number' => '106','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|class~="deux"], *|*[*|foo~="deux"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="un deux trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="un deux trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
','code-xhtml' => '
<p class="un deux trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s>
'},'css3-modsel-60' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p id=&quot;foo2&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p id=&quot;foo&quot;&gt;
     &lt;span&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => 'div.stub &gt; * { color : red }
div.stub *:not(#foo) { color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p id=&quot;foo2&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p id=&quot;foo&quot;&gt;
     &lt;span&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED ID selector','number' => '60','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub > * { color : red }
div.stub *:not(#foo) { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p id="foo2">This paragraph should be in green characters.</p>
<p id="foo">
     <span>This paragraph should be in green characters.</span>
</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should be in green characters.</p>
<p id="foo2">This paragraph should be in green characters.</p>
<p id="foo">
     <span>This paragraph should be in green characters.</span>
</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p id=&quot;foo2&quot;&gt;This paragraph should be in green characters.&lt;/p&gt;
&lt;p id=&quot;foo&quot;&gt;
     &lt;span&gt;This paragraph should be in green characters.&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p id="foo2">This paragraph should be in green characters.</p>
<p id="foo">
     <span>This paragraph should be in green characters.</span>
</p>
</div>
'},'css3-modsel-61' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;a href=&quot;http://www.w3.org/&quot;&gt;This anchor should have a green background&lt;/a&gt;
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
&lt;/div&gt;
','escapedcode-css' => 'div.stub &gt; * { background-color : red }
div.stub *:not(:link) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;a href=&quot;http://www.w3.org/&quot;&gt;This anchor should have a green background&lt;/a&gt;
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
&lt;/div&gt;
','def' => 'NEGATED :link pseudo-class','number' => '61','modulename' => 'css3-modsel','module' => 'W3C Selectors','historyneeded' => 1,'cssrules' => 'div.stub > * { background-color : red }
div.stub *:not(:link) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<a href="http://www.w3.org/">This anchor should have a green background</a>
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
</div>
','endTag' => '</div>','date' => '01-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<a href="http://www.w3.org/">This anchor should have a green background</a>
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;a href=&quot;http://www.w3.org/&quot;&gt;This anchor should have a green background&lt;/a&gt;
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<a href="http://www.w3.org/">This anchor should have a green background</a>
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
</div>
'},'css3-modsel-62' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;a href=&quot;http://unvisited.example.org/css3-modsel-62/&quot;&gt;This anchor should have a green background&lt;/a&gt;
(Don&amp;#39;t follow this link.)
&lt;/div&gt;
','escapedcode-css' => 'div.stub &gt; * { background-color : red }
div.stub *:not(:visited) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;a href=&quot;http://unvisited.example.org/css3-modsel-62/&quot;&gt;This anchor should have a green background&lt;/a&gt;
(Don&amp;#39;t follow this link.)
&lt;/div&gt;
','def' => 'NEGATED :visited pseudo-class','number' => '62','modulename' => 'css3-modsel','module' => 'W3C Selectors','historyneeded' => 1,'cssrules' => 'div.stub > * { background-color : red }
div.stub *:not(:visited) { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<a href="http://unvisited.example.org/css3-modsel-62/">This anchor should have a green background</a>
(Don&#39;t follow this link.)
</div>
','endTag' => '</div>','date' => '01-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<a href="http://unvisited.example.org/css3-modsel-62/">This anchor should have a green background</a>
(Don&#39;t follow this link.)
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;a href=&quot;http://unvisited.example.org/css3-modsel-62/&quot;&gt;This anchor should have a green background&lt;/a&gt;
(Don&amp;#39;t follow this link.)
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<a href="http://unvisited.example.org/css3-modsel-62/">This anchor should have a green background</a>
(Don&#39;t follow this link.)
</div>
'},'css3-modsel-142b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title$=&quot;tait&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on end without declared namespace','number' => '142b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title$="tait"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-63' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p&gt; &lt;span&gt;The color of this text should be green when the pointing device hovers over it.&lt;/span&gt; &lt;/p&gt;
  &lt;p&gt; &lt;a href=&quot;http://dummy.example.org/dummy&quot;&gt;The color of this text should be green when the pointing device hovers over it.&lt;/a&gt; &lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => 'div.stub * { color: lime; text-decoration: none; }
div.stub &gt; * &gt; *:not(:hover) { color: black }
','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt; &lt;span&gt;The color of this text should be green when the pointing device hovers over it.&lt;/span&gt; &lt;/p&gt;
  &lt;p&gt; &lt;a href=&quot;http://dummy.example.org/dummy&quot;&gt;The color of this text should be green when the pointing device hovers over it.&lt;/a&gt; &lt;/p&gt;
 &lt;/div&gt;
','def' => 'NEGATED :hover pseudo-class','number' => '63','modulename' => 'css3-modsel','cssrules' => 'div.stub * { color: lime; text-decoration: none; }
div.stub > * > *:not(:hover) { color: black }
','module' => 'W3C Selectors','endTag' => '</div>','code-html' => '
 <div class="stub">
  <p> <span>The color of this text should be green when the pointing device hovers over it.</span> </p>
  <p> <a href="http://dummy.example.org/dummy">The color of this text should be green when the pointing device hovers over it.</a> </p>
 </div>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p> <span>The color of this text should be green when the pointing device hovers over it.</span> </p>
  <p> <a href="http://dummy.example.org/dummy">The color of this text should be green when the pointing device hovers over it.</a> </p>
 </div>
','date' => '12-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt; &lt;span&gt;The color of this text should be green when the pointing device hovers over it.&lt;/span&gt; &lt;/p&gt;
  &lt;p&gt; &lt;a href=&quot;http://dummy.example.org/dummy&quot;&gt;The color of this text should be green when the pointing device hovers over it.&lt;/a&gt; &lt;/p&gt;
 &lt;/div&gt;
','interactive' => 1,'code-xhtml' => '
 <div class="stub">
  <p> <span>The color of this text should be green when the pointing device hovers over it.</span> </p>
  <p> <a href="http://dummy.example.org/dummy">The color of this text should be green when the pointing device hovers over it.</a> </p>
 </div>
'},'css3-modsel-64' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p&gt; &lt;a href=&quot;http://dummy.example.org/dummy&quot;&gt;This text should turn green while it is active.&lt;/a&gt; &lt;/p&gt;
  &lt;p&gt; &lt;button&gt;This text should turn green while it is active.&lt;/button&gt; &lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => 'div.stub * { color : lime }
div.stub &gt; * &gt; *:not(:active) { color : black }
','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt; &lt;a href=&quot;http://dummy.example.org/dummy&quot;&gt;This text should turn green while it is active.&lt;/a&gt; &lt;/p&gt;
  &lt;p&gt; &lt;button&gt;This text should turn green while it is active.&lt;/button&gt; &lt;/p&gt;
 &lt;/div&gt;
','def' => 'NEGATED :active pseudo-class','number' => '64','modulename' => 'css3-modsel','cssrules' => 'div.stub * { color : lime }
div.stub > * > *:not(:active) { color : black }
','module' => 'W3C Selectors','endTag' => '</div>','code-html' => '
 <div class="stub">
  <p> <a href="http://dummy.example.org/dummy">This text should turn green while it is active.</a> </p>
  <p> <button>This text should turn green while it is active.</button> </p>
 </div>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p> <a href="http://dummy.example.org/dummy">This text should turn green while it is active.</a> </p>
  <p> <button>This text should turn green while it is active.</button> </p>
 </div>
','date' => '12-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt; &lt;a href=&quot;http://dummy.example.org/dummy&quot;&gt;This text should turn green while it is active.&lt;/a&gt; &lt;/p&gt;
  &lt;p&gt; &lt;button&gt;This text should turn green while it is active.&lt;/button&gt; &lt;/p&gt;
 &lt;/div&gt;
','interactive' => 1,'code-xhtml' => '
 <div class="stub">
  <p> <a href="http://dummy.example.org/dummy">This text should turn green while it is active.</a> </p>
  <p> <button>This text should turn green while it is active.</button> </p>
 </div>
'},'css3-modsel-110' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title*=&quot;on ch&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on middle with universal namespace','number' => '110','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
*|*[*|title*="on ch"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-65' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background color of all &lt;a href=&quot;#foo&quot;&gt;anchors&lt;/a&gt;
  should become &lt;a href=&quot;#foo&quot;&gt; green&lt;/a&gt; when they have the
  &lt;a href=&quot;#foo&quot;&gt;focus&lt;/a&gt;.&lt;/p&gt;
','escapedcode-css' => 'a:not(:focus) { background-color: transparent; }
a { background-color: lime; }
','escapedcode-html' => '
&lt;p&gt;The background color of all &lt;a href=&quot;#foo&quot;&gt;anchors&lt;/a&gt;
  should become &lt;a href=&quot;#foo&quot;&gt; green&lt;/a&gt; when they have the
  &lt;a href=&quot;#foo&quot;&gt;focus&lt;/a&gt;.&lt;/p&gt;
','def' => 'NEGATED :focus pseudo-class','number' => '65','modulename' => 'css3-modsel','cssrules' => 'a:not(:focus) { background-color: transparent; }
a { background-color: lime; }
','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
<p>The background color of all <a href="#foo">anchors</a>
  should become <a href="#foo"> green</a> when they have the
  <a href="#foo">focus</a>.</p>
','author' => ['Daniel Glazman'],'code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">The background color of all <a href="#foo">anchors</a>
  should become <a href="#foo"> green</a> when they have the
  <a href="#foo">focus</a>.</p>
','date' => '11-july-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;The background color of all &lt;a href=&quot;#foo&quot;&gt;anchors&lt;/a&gt;
  should become &lt;a href=&quot;#foo&quot;&gt; green&lt;/a&gt; when they have the
  &lt;a href=&quot;#foo&quot;&gt;focus&lt;/a&gt;.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
<p>The background color of all <a href="#foo">anchors</a>
  should become <a href="#foo"> green</a> when they have the
  <a href="#foo">focus</a>.</p>
'},'css3-modsel-135b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si tu chantais&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : lime ! important }
div.stub *|*:not([*|title$=&quot;tait&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si tu chantais&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on end with universal namespace','number' => '135b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : lime ! important }
div.stub *|*:not([*|title$="tait"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si tu chantais" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si tu chantais" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si tu chantais&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si tu chantais" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-111' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
','def' => 'Attribute existence selector without declared namespace','number' => '111','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r>
','endTag' => '</r>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r>
'},'css3-modsel-66' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;first&quot;&gt;This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow &lt;a href=&quot;#second&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;second&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       &lt;a href=&quot;#third&quot;&gt;this link&lt;/a&gt;, it should return to being unstyled and the 
       background of the paragraph below should become green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;third&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       &lt;a href=&quot;#missing&quot;&gt;this link&lt;/a&gt;, the three paragraphs
       should all return to being unstyled.&lt;/p&gt;
','escapedcode-css' => 'p { background-color: lime; }
p:not(:target) { background-color: transparent; }','escapedcode-html' => '
&lt;p id=&quot;first&quot;&gt;This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow &lt;a href=&quot;#second&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p id=&quot;second&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       &lt;a href=&quot;#third&quot;&gt;this link&lt;/a&gt;, it should return to being unstyled and the 
       background of the paragraph below should become green.&lt;/p&gt;
&lt;p id=&quot;third&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       &lt;a href=&quot;#missing&quot;&gt;this link&lt;/a&gt;, the three paragraphs
       should all return to being unstyled.&lt;/p&gt;
','def' => 'NEGATED :target pseudo-class','number' => '66','modulename' => 'css3-modsel','cssrules' => 'p { background-color: lime; }
p:not(:target) { background-color: transparent; }','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
<p id="first">This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow <a href="#second">this link</a>.</p>
<p id="second">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       <a href="#third">this link</a>, it should return to being unstyled and the 
       background of the paragraph below should become green.</p>
<p id="third">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       <a href="#missing">this link</a>, the three paragraphs
       should all return to being unstyled.</p>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" id="first">This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow <a href="#second">this link</a>.</p>
<p xmlns="http://www.w3.org/1999/xhtml" id="second">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       <a href="#third">this link</a>, it should return to being unstyled and the 
       background of the paragraph below should become green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" id="third">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       <a href="#missing">this link</a>, the three paragraphs
       should all return to being unstyled.</p>
','date' => '13-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p id=&quot;first&quot;&gt;This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow &lt;a href=&quot;#second&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p id=&quot;second&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       &lt;a href=&quot;#third&quot;&gt;this link&lt;/a&gt;, it should return to being unstyled and the 
       background of the paragraph below should become green.&lt;/p&gt;
&lt;p id=&quot;third&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       &lt;a href=&quot;#missing&quot;&gt;this link&lt;/a&gt;, the three paragraphs
       should all return to being unstyled.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
<p id="first">This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow <a href="#second">this link</a>.</p>
<p id="second">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       <a href="#third">this link</a>, it should return to being unstyled and the 
       background of the paragraph below should become green.</p>
<p id="third">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       <a href="#missing">this link</a>, the three paragraphs
       should all return to being unstyled.</p>
'},'css3-modsel-112' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title=&quot;si on chantait&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Attribute value selector without declared namespace','number' => '112','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title="si on chantait"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
'},'css3-modsel-67' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background because the
   enclosing div is in english.&lt;/p&gt;
&lt;p lang=&quot;en&quot;&gt;This paragraph should have a green background because
   it is in english.&lt;/p&gt;
&lt;div lang=&quot;fr&quot;&gt;
  &lt;p lang=&quot;en&quot;&gt;This paragraph should have a green background
     because it is in english.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','escapedcode-css' => 'div.stub * { background-color : red  }
div.stub *:not(:lang(fr)) { background-color : green }','escapedcode-html' => '
&lt;div lang=&quot;en&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background because the
   enclosing div is in english.&lt;/p&gt;
&lt;p lang=&quot;en&quot;&gt;This paragraph should have a green background because
   it is in english.&lt;/p&gt;
&lt;div lang=&quot;fr&quot;&gt;
  &lt;p lang=&quot;en&quot;&gt;This paragraph should have a green background
     because it is in english.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','def' => 'NEGATED :lang() pseudo-class','number' => '67','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub * { background-color : red  }
div.stub *:not(:lang(fr)) { background-color : green }','author' => ['Daniel Glazman'],'code-html' => '
<div lang="en" class="stub">
<p>This paragraph should have a green background because the
   enclosing div is in english.</p>
<p lang="en">This paragraph should have a green background because
   it is in english.</p>
<div lang="fr">
  <p lang="en">This paragraph should have a green background
     because it is in english.</p>
</div>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" lang="en" class="stub">
<p>This paragraph should have a green background because the
   enclosing div is in english.</p>
<p lang="en">This paragraph should have a green background because
   it is in english.</p>
<div lang="fr">
  <p lang="en">This paragraph should have a green background
     because it is in english.</p>
</div>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div lang=&quot;en&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background because the
   enclosing div is in english.&lt;/p&gt;
&lt;p lang=&quot;en&quot;&gt;This paragraph should have a green background because
   it is in english.&lt;/p&gt;
&lt;div lang=&quot;fr&quot;&gt;
  &lt;p lang=&quot;en&quot;&gt;This paragraph should have a green background
     because it is in english.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','code-xhtml' => '
<div lang="en" class="stub">
<p>This paragraph should have a green background because the
   enclosing div is in english.</p>
<p lang="en">This paragraph should have a green background because
   it is in english.</p>
<div lang="fr">
  <p lang="en">This paragraph should have a green background
     because it is in english.</p>
</div>
</div>
'},'css3-modsel-113' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;bar foofoo toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : red }
*|*[|class~=&quot;foo&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute space-separated value selector without declared namespace','number' => '113','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : red }
*|*[|class~="foo"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="bar foo toto">This paragraph should have a green background.</p>
<address class="bar foofoo toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="bar foo toto">This paragraph should have a green background.</p>
<address xmlns="http://www.w3.org/1999/xhtml" class="bar foofoo toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
<p class="bar foo toto">This paragraph should have a green background.</p>
<address class="bar foofoo toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r>
'},'css3-modsel-68' => {'rev' => '1.0','escapedcode-xml' => '
&lt;button xmlns=&quot;http://www.w3.org/1999/xhtml&quot; disabled=&quot;disabled&quot;&gt;A button (disabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.example.org/css3tests&quot;&gt;&lt;/br&gt;
&lt;input xmlns=&quot;http://www.w3.org/1999/xhtml&quot; disabled=&quot;disabled&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (disabled) with green background&quot;&gt;&lt;/input&gt;
','escapedcode-css' => 'button { background-color : red }
input { background-color : red }
button:not(:enabled) { background-color : lime }
input:not(:enabled)  { background-color : lime }','escapedcode-html' => '
&lt;button disabled=&quot;disabled&quot;&gt;A button (disabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.example.org/css3tests&quot;&gt;
&lt;input disabled=&quot;disabled&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (disabled) with green background&quot;&gt;
','def' => 'NEGATED :enabled pseudo-class','number' => '68','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'button { background-color : red }
input { background-color : red }
button:not(:enabled) { background-color : lime }
input:not(:enabled)  { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<button disabled="disabled">A button (disabled) with green background</button>
<br xmlns="http://www.example.org/css3tests">
<input disabled="disabled" type="text" size="36" value="a text area (disabled) with green background">
','endTag' => '</input>','date' => '11-july-2001','code-xml' => '
<button xmlns="http://www.w3.org/1999/xhtml" disabled="disabled">A button (disabled) with green background</button>
<br xmlns="http://www.example.org/css3tests"></br>
<input xmlns="http://www.w3.org/1999/xhtml" disabled="disabled" type="text" size="36" value="a text area (disabled) with green background"></input>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;button disabled=&quot;disabled&quot;&gt;A button (disabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.example.org/css3tests&quot;&gt;&lt;/br&gt;
&lt;input disabled=&quot;disabled&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (disabled) with green background&quot;&gt;&lt;/input&gt;
','code-xhtml' => '
<button disabled="disabled">A button (disabled) with green background</button>
<br xmlns="http://www.example.org/css3tests"></br>
<input disabled="disabled" type="text" size="36" value="a text area (disabled) with green background"></input>
'},'css3-modsel-128b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|title$=&quot;tait&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute value selector on end with declared namespace','number' => '128','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|title$="tait"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-114' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;foo-b&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;foo-barbar-toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : red }
*|*[|lang|=&quot;foo-bar&quot;], *|*[|myattr|=&quot;tat-tut&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute dash-separated value selector without declared namespace','number' => '114','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : red }
*|*[|lang|="foo-bar"], *|*[|myattr|="tat-tut"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p lang="foo-bar">This paragraph should have a green background.</p>
<address lang="foo-b">This address should be unstyled.</address>
<address lang="foo-barbar-toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" lang="foo-bar">This paragraph should have a green background.</p>
<address xmlns="http://www.w3.org/1999/xhtml" lang="foo-b">This address should be unstyled.</address>
<address xmlns="http://www.w3.org/1999/xhtml" lang="foo-barbar-toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
<p lang="foo-bar">This paragraph should have a green background.</p>
<address lang="foo-b">This address should be unstyled.</address>
<address lang="foo-barbar-toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r>
'},'css3-modsel-69' => {'rev' => '1.0','escapedcode-xml' => '
&lt;button xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;A button (enabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.example.org/css3tests&quot;&gt;&lt;/br&gt;
&lt;input xmlns=&quot;http://www.w3.org/1999/xhtml&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (enabled) with green background&quot;&gt;&lt;/input&gt;
','escapedcode-css' => 'button { background-color : red }
input { background-color : red }
button:not(:disabled) { background-color : lime }
input:not(:disabled) { background-color : lime }','escapedcode-html' => '
&lt;button&gt;A button (enabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.example.org/css3tests&quot;&gt;
&lt;input type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (enabled) with green background&quot;&gt;
','def' => 'NEGATED :disabled pseudo-class','number' => '69','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'button { background-color : red }
input { background-color : red }
button:not(:disabled) { background-color : lime }
input:not(:disabled) { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<button>A button (enabled) with green background</button>
<br xmlns="http://www.example.org/css3tests">
<input type="text" size="36" value="a text area (enabled) with green background">
','endTag' => '</input>','date' => '11-july-2001','code-xml' => '
<button xmlns="http://www.w3.org/1999/xhtml">A button (enabled) with green background</button>
<br xmlns="http://www.example.org/css3tests"></br>
<input xmlns="http://www.w3.org/1999/xhtml" type="text" size="36" value="a text area (enabled) with green background"></input>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;button&gt;A button (enabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.example.org/css3tests&quot;&gt;&lt;/br&gt;
&lt;input type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (enabled) with green background&quot;&gt;&lt;/input&gt;
','code-xhtml' => '
<button>A button (enabled) with green background</button>
<br xmlns="http://www.example.org/css3tests"></br>
<input type="text" size="36" value="a text area (enabled) with green background"></input>
'},'css3-modsel-115' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title^=&quot;si on&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on beginning without declared namespace','number' => '115','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title^="si on"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-116' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title$=&quot;tait&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on end without declared namespace','number' => '116','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title$="tait"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
'},'css3-modsel-46b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;But this one should have a green background&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;And this one should also have a green background&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
div.stub &gt; p ~ p { background-color : red }','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;But this one should have a green background&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;And this one should also have a green background&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background&lt;/p&gt;
 &lt;/div&gt;
','def' => 'Indirect adjacent combinator','number' => '46b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
div.stub > p ~ p { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="green">But this one should have a green background</p>
  <p class="green">And this one should also have a green background</p>
  <address>This address is only here to fill some space between two paragraphs</address>
  <p class="green">This paragraph should have a green background</p>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="green">But this one should have a green background</p>
  <p class="green">And this one should also have a green background</p>
  <address>This address is only here to fill some space between two paragraphs</address>
  <p class="green">This paragraph should have a green background</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;But this one should have a green background&lt;/p&gt;
  &lt;p class=&quot;green&quot;&gt;And this one should also have a green background&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs&lt;/address&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="green">But this one should have a green background</p>
  <p class="green">And this one should also have a green background</p>
  <address>This address is only here to fill some space between two paragraphs</address>
  <p class="green">This paragraph should have a green background</p>
 </div>
'},'css3-modsel-117' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title*=&quot;on ch&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on middle without declared namespace','number' => '117','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[|title*="on ch"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
'},'css3-modsel-118' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.example.org/css3tests&quot; class=&quot;test&quot;&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;
 &lt;l&gt;This paragraph should have a green background.&lt;/l&gt;
 &lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|l { display : block ; margin-bottom : 1em }
div.test * { background-color : red }
div.test *:not(a|p) { background-color : lime }
','escapedcode-html' => '
&lt;div xmlns=&quot;http://www.example.org/css3tests&quot; class=&quot;test&quot;&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;
 &lt;l&gt;This paragraph should have a green background.&lt;/l&gt;
 &lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED type element selector with declared namespace','number' => '118','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|l { display : block ; margin-bottom : 1em }
div.test * { background-color : red }
div.test *:not(a|p) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div xmlns="http://www.example.org/css3tests" class="test">
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
 <p xmlns="">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/a">
 <l>This paragraph should have a green background.</l>
 </p>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.example.org/css3tests" class="test">
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
 <p xmlns="">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/a">
 <l>This paragraph should have a green background.</l>
 </p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div xmlns=&quot;http://www.example.org/css3tests&quot; class=&quot;test&quot;&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;
 &lt;l&gt;This paragraph should have a green background.&lt;/l&gt;
 &lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div xmlns="http://www.example.org/css3tests" class="test">
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
 <p xmlns="">This paragraph should have a green background.</p>
 <p xmlns="http://www.example.org/a">
 <l>This paragraph should have a green background.</l>
 </p>
</div>
'},'css3-modsel-119' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.example.org/css3tests&quot; class=&quot;test&quot;&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;/div&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background.&lt;/u&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.test *:not(*|div) { display : block ; margin-bottom : 1em ;
                            background-color : red }
div.test &gt; *:not(*|p):not(*|div) { background-color : lime }
div.stub &gt; *:not(*|div) { background-color : lime }
','escapedcode-html' => '
&lt;div xmlns=&quot;http://www.example.org/css3tests&quot; class=&quot;test&quot;&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;/div&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background.&lt;/u&gt;
&lt;/div&gt;
','def' => 'NEGATED type element selector with universal namespace','number' => '119','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.test *:not(*|div) { display : block ; margin-bottom : 1em ;
                            background-color : red }
div.test > *:not(*|p):not(*|div) { background-color : lime }
div.stub > *:not(*|div) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div xmlns="http://www.example.org/css3tests" class="test">
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should have a green background.</p>
<p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
<p xmlns="">This paragraph should have a green background.</p>
<p xmlns="http://www.example.org/a">This paragraph should have a green background.</p>
</div>
<address xmlns="http://www.w3.org/1999/xhtml">This address should have a green background.</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background.</s>
<t xmlns="">This paragraph should have a green background.</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background.</u>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.example.org/css3tests" class="test">
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should have a green background.</p>
<p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
<p xmlns="">This paragraph should have a green background.</p>
<p xmlns="http://www.example.org/a">This paragraph should have a green background.</p>
</div>
<address xmlns="http://www.w3.org/1999/xhtml">This address should have a green background.</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background.</s>
<t xmlns="">This paragraph should have a green background.</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background.</u>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div xmlns=&quot;http://www.example.org/css3tests&quot; class=&quot;test&quot;&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;/div&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background.&lt;/u&gt;
&lt;/div&gt;
','code-xhtml' => '
<div xmlns="http://www.example.org/css3tests" class="test">
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should have a green background.</p>
<p xmlns="http://www.example.org/b">This paragraph should have a green background.</p>
<p xmlns="">This paragraph should have a green background.</p>
<p xmlns="http://www.example.org/a">This paragraph should have a green background.</p>
</div>
<address xmlns="http://www.w3.org/1999/xhtml">This address should have a green background.</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background.</s>
<t xmlns="">This paragraph should have a green background.</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background.</u>
</div>
'},'css3-modsel-82b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t1&quot;&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;address&gt;But this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
.t1 *:not(:only-of-type) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;t1&quot;&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;address&gt;But this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED :only-of-type pseudo-class','number' => '82b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
.t1 *:not(:only-of-type) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="t1">
<p class="green">This paragraph should have green background.</p>
<address>But this address should be unstyled.</address>
<p class="green">This paragraph should have green background.</p>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="t1">
<p class="green">This paragraph should have green background.</p>
<address>But this address should be unstyled.</address>
<p class="green">This paragraph should have green background.</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;t1&quot;&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;address&gt;But this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="t1">
<p class="green">This paragraph should have green background.</p>
<address>But this address should be unstyled.</address>
<p class="green">This paragraph should have green background.</p>
</div>
'},'css3-modsel-75b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;And this address should be unstyled.&lt;/address&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;green&quot;&gt;This paragraph should also have green background!&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;But this one should be unstyled again.&lt;/p&gt;
&lt;dl xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Second definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fifth definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
p:not(:nth-of-type(3)) { background-color : red }
dl &gt; *:not(:nth-of-type(3n+1)) { background-color : red }
','escapedcode-html' => '
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address&gt;And this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should also have green background!&lt;/p&gt;
&lt;p&gt;But this one should be unstyled again.&lt;/p&gt;
&lt;dl&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Second definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fifth definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','def' => 'NEGATED :nth-of-type() pseudo-class','number' => '75b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
p:not(:nth-of-type(3)) { background-color : red }
dl > *:not(:nth-of-type(3n+1)) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="green">This paragraph should have green background</p>
<address>And this address should be unstyled.</address>
<p class="green">This paragraph should also have green background!</p>
<p>But this one should be unstyled again.</p>
<dl>
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt class="green">Second definition term that should have green background</dt>
    <dd class="green">Second definition that should have green background</dd>
  <dt class="green">Third definition term that should have green background</dt>
    <dd class="green">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt class="green">Fifth definition term that should have green background</dt>
    <dd class="green">Fifth definition that should have green background</dd>
  <dt class="green">Sixth definition term that should have green background</dt>
    <dd class="green">Sixth definition that should have green background</dd>
</dl>
','endTag' => '</dl>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="green">This paragraph should have green background</p>
<address xmlns="http://www.w3.org/1999/xhtml">And this address should be unstyled.</address>
<p xmlns="http://www.w3.org/1999/xhtml" class="green">This paragraph should also have green background!</p>
<p xmlns="http://www.w3.org/1999/xhtml">But this one should be unstyled again.</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt class="green">Second definition term that should have green background</dt>
    <dd class="green">Second definition that should have green background</dd>
  <dt class="green">Third definition term that should have green background</dt>
    <dd class="green">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt class="green">Fifth definition term that should have green background</dt>
    <dd class="green">Fifth definition that should have green background</dd>
  <dt class="green">Sixth definition term that should have green background</dt>
    <dd class="green">Sixth definition that should have green background</dd>
</dl>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address&gt;And this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should also have green background!&lt;/p&gt;
&lt;p&gt;But this one should be unstyled again.&lt;/p&gt;
&lt;dl&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Second definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fifth definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','code-xhtml' => '
<p class="green">This paragraph should have green background</p>
<address>And this address should be unstyled.</address>
<p class="green">This paragraph should also have green background!</p>
<p>But this one should be unstyled again.</p>
<dl>
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt class="green">Second definition term that should have green background</dt>
    <dd class="green">Second definition that should have green background</dd>
  <dt class="green">Third definition term that should have green background</dt>
    <dd class="green">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt class="green">Fifth definition term that should have green background</dt>
    <dd class="green">Fifth definition that should have green background</dd>
  <dt class="green">Sixth definition term that should have green background</dt>
    <dd class="green">Sixth definition that should have green background</dd>
</dl>
'},'css3-modsel-97b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
*[a|title] {background-color : red }
','escapedcode-html' => '
 &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute existence selector with declared namespace','number' => '97b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
*[a|title] {background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p title="a paragraph">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q>
 <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" title="a paragraph">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q>
 <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
 <p title="a paragraph">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q>
 <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r>
'},'css3-modsel-114b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;foo-b&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;foo-barbar-toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : lime ! important }
*|*[|lang|=&quot;foo-bar&quot;], *|*[|myattr|=&quot;tat-tut&quot;] { background-color : red }','escapedcode-html' => '
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute dash-separated value selector without declared namespace','number' => '114b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|q { background-color : lime ! important }
*|*[|lang|="foo-bar"], *|*[|myattr|="tat-tut"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p lang="foo-bar">This paragraph should have a green background.</p>
<address lang="foo-b">This address should be unstyled.</address>
<address lang="foo-barbar-toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" lang="foo-bar">This paragraph should have a green background.</p>
<address xmlns="http://www.w3.org/1999/xhtml" lang="foo-b">This address should be unstyled.</address>
<address xmlns="http://www.w3.org/1999/xhtml" lang="foo-barbar-toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:myattr=&quot;tat-tut-tot&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
<p lang="foo-bar">This paragraph should have a green background.</p>
<address lang="foo-b">This address should be unstyled.</address>
<address lang="foo-barbar-toto">This address should be unstyled.</address>
<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r>
'},'css3-modsel-d1' => {'rev' => '1.0','escapedcode-css' => '
   #test { background: red; display: block; padding: 1em; }
   #test:not(:empty) { background: lime; }
','escapedcode-html' => '

 &lt;div&gt;

  &lt;script&gt;
   

    function test() {
      document.getElementById(&#39;test&#39;).appendChild(document.createTextNode(&#39;This line should be green.&#39;));
    }

    window.setTimeout(test, 100);
   
  &lt;/script&gt;

  &lt;p&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;test&quot;&gt;&lt;/div&gt;

 &lt;/div&gt;

','def' => 'NEGATED Dynamic handling of :empty','number' => 'd1','code-html' => '

 <div>

  <script>
   

    function test() {
      document.getElementById(\'test\').appendChild(document.createTextNode(\'This line should be green.\'));
    }

    window.setTimeout(test, 100);
   
  </script>

  <p> The following bar should be green. </p>

  <div id="test"></div>

 </div>

','endTag' => '</div>','date' => '14-november-2001','code-xml' => '

 <div xmlns="http://www.w3.org/1999/xhtml">

  <script>
   <![CDATA[

    function test() {
      document.getElementById(\'test\').appendChild(document.createTextNode(\'This line should be green.\'));
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <p> The following bar should be green. </p>

  <div id="test"></div>

 </div>

','namespaces' => '','dynamic' => 1,'code-xhtml' => '

 <div>

  <script>
   <![CDATA[

    function test() {
      document.getElementById(\'test\').appendChild(document.createTextNode(\'This line should be green.\'));
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <p> The following bar should be green. </p>

  <div id="test"></div>

 </div>

','escapedcode-xml' => '

 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      document.getElementById(&#39;test&#39;).appendChild(document.createTextNode(&#39;This line should be green.&#39;));
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;p&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;test&quot;&gt;&lt;/div&gt;

 &lt;/div&gt;

','modulename' => 'css3-modsel','cssrules' => '
   #test { background: red; display: block; padding: 1em; }
   #test:not(:empty) { background: lime; }
','module' => 'W3C Selectors','cdata' => 0,'author' => ['Ian Hickson'],'escapedcode-xhtml' => '

 &lt;div&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      document.getElementById(&#39;test&#39;).appendChild(document.createTextNode(&#39;This line should be green.&#39;));
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;p&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;test&quot;&gt;&lt;/div&gt;

 &lt;/div&gt;

'},'css3-modsel-d2' => {'rev' => '1.0','escapedcode-css' => '
   #test { background: red; display: block; padding: 1em; }
   #stub ~ div div + div &gt; div { background: lime; }
','escapedcode-html' => '

 &lt;div&gt;

  

  
  &lt;script&gt;
   

    function test() {
      el = document.getElementById(&#39;test&#39;);
      el.parentNode.parentNode.insertBefore(document.createElement(&#39;div&#39;), el.parentNode);
    }

    /*window.setTimeout(test, 100);*/
   
  &lt;/script&gt;
  

  &lt;p onclick=&quot;test()&quot;&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;stub&quot;&gt;&lt;/div&gt;
  &lt;div&gt;&lt;/div&gt;
  &lt;div&gt;&lt;div&gt;&lt;!-- &lt;div/&gt; --&gt;&lt;div&gt;&lt;div id=&quot;test&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

 &lt;/div&gt;

','def' => 'Dynamic handling of combinators','number' => 'd2','code-html' => '

 <div>

  

  
  <script>
   

    function test() {
      el = document.getElementById(\'test\');
      el.parentNode.parentNode.insertBefore(document.createElement(\'div\'), el.parentNode);
    }

    /*window.setTimeout(test, 100);*/
   
  </script>
  

  <p onclick="test()"> The following bar should be green. </p>

  <div id="stub"></div>
  <div></div>
  <div><div><!-- <div/> --><div><div id="test"></div></div></div></div>

 </div>

','endTag' => '</div>','date' => '14-november-2001','code-xml' => '

 <div xmlns="http://www.w3.org/1999/xhtml">

  
  <script>
   <![CDATA[

    function test() {
      el = document.getElementById(\'test\');
      el.parentNode.parentNode.insertBefore(document.createElementNS(\'http://www.w3.org/1999/xhtml\', \'div\'), el.parentNode);
    }

    window.setTimeout(test, 100);
   ]]>
  </script>
  

  

  <p onclick="test()"> The following bar should be green. </p>

  <div id="stub"></div>
  <div></div>
  <div><div><!-- <div/> --><div><div id="test"></div></div></div></div>

 </div>

','namespaces' => '','dynamic' => 1,'code-xhtml' => '

 <div>

  
  <script>
   <![CDATA[

    function test() {
      el = document.getElementById(\'test\');
      el.parentNode.parentNode.insertBefore(document.createElementNS(\'http://www.w3.org/1999/xhtml\', \'div\'), el.parentNode);
    }

    window.setTimeout(test, 100);
   ]]>
  </script>
  

  

  <p onclick="test()"> The following bar should be green. </p>

  <div id="stub"></div>
  <div></div>
  <div><div><!-- <div/> --><div><div id="test"></div></div></div></div>

 </div>

','escapedcode-xml' => '

 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

  
  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      el = document.getElementById(&#39;test&#39;);
      el.parentNode.parentNode.insertBefore(document.createElementNS(&#39;http://www.w3.org/1999/xhtml&#39;, &#39;div&#39;), el.parentNode);
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;
  

  

  &lt;p onclick=&quot;test()&quot;&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;stub&quot;&gt;&lt;/div&gt;
  &lt;div&gt;&lt;/div&gt;
  &lt;div&gt;&lt;div&gt;&lt;!-- &lt;div/&gt; --&gt;&lt;div&gt;&lt;div id=&quot;test&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

 &lt;/div&gt;

','modulename' => 'css3-modsel','cssrules' => '
   #test { background: red; display: block; padding: 1em; }
   #stub ~ div div + div > div { background: lime; }
','module' => 'W3C Selectors','cdata' => 0,'author' => ['Ian Hickson'],'escapedcode-xhtml' => '

 &lt;div&gt;

  
  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      el = document.getElementById(&#39;test&#39;);
      el.parentNode.parentNode.insertBefore(document.createElementNS(&#39;http://www.w3.org/1999/xhtml&#39;, &#39;div&#39;), el.parentNode);
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;
  

  

  &lt;p onclick=&quot;test()&quot;&gt; The following bar should be green. &lt;/p&gt;

  &lt;div id=&quot;stub&quot;&gt;&lt;/div&gt;
  &lt;div&gt;&lt;/div&gt;
  &lt;div&gt;&lt;div&gt;&lt;!-- &lt;div/&gt; --&gt;&lt;div&gt;&lt;div id=&quot;test&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

 &lt;/div&gt;

'},'css3-modsel-d3' => {'rev' => '1.0','escapedcode-css' => '
   @namespace url();
   @namespace ns url();
   test { background: red; display: block; padding: 1em; }
   stub ~ [ns|attribute^=start]:not([ns|attribute~=mid])[ns|attribute*=dle][ns|attribute$=end] ~ test [ { background: lime; }
','escapedcode-html' => '

 &lt;div&gt;

  &lt;script&gt;
   

    function test() {
      document.getElementsByTagNameNS(&#39;&#39;, &#39;test&#39;)[1].setAttributeNS(&#39;&#39;, &#39;attribute&#39;, &#39;start middle end&#39;);
    }

    window.setTimeout(test, 100);
   
  &lt;/script&gt;

  &lt;p&gt; The following block should be green. &lt;/p&gt;

  &lt;!-- root of selector --&gt;
  &lt;stub xmlns=&quot;&quot;&gt;&lt;/stub&gt;

  &lt;!-- middle part of selector does not match this --&gt;
  &lt;test xmlns=&quot;&quot; xmlns:none=&quot;&quot; none:attribute=&quot;fake&quot;&gt;&lt;/test&gt;

  &lt;!-- middle part of selector matches this once attribute is fixed --&gt;
  &lt;test xmlns=&quot;&quot; xmlns:none=&quot;&quot; none:attribute=&quot;start mid dle end&quot;&gt;&lt;/test&gt;

  &lt;!-- subject of selector --&gt;
  &lt;test xmlns=&quot;&quot;&gt;&lt;/test&gt;

 &lt;/div&gt;

','def' => 'Dynamic handling of attribute selectors','number' => 'd3','code-html' => '

 <div>

  <script>
   

    function test() {
      document.getElementsByTagNameNS(\'\', \'test\')[1].setAttributeNS(\'\', \'attribute\', \'start middle end\');
    }

    window.setTimeout(test, 100);
   
  </script>

  <p> The following block should be green. </p>

  <!-- root of selector -->
  <stub xmlns=""></stub>

  <!-- middle part of selector does not match this -->
  <test xmlns="" xmlns:none="" none:attribute="fake"></test>

  <!-- middle part of selector matches this once attribute is fixed -->
  <test xmlns="" xmlns:none="" none:attribute="start mid dle end"></test>

  <!-- subject of selector -->
  <test xmlns=""></test>

 </div>

','endTag' => '</div>','date' => '20-november-2001','code-xml' => '

 <div xmlns="http://www.w3.org/1999/xhtml">

  <script>
   <![CDATA[

    function test() {
      document.getElementsByTagNameNS(\'\', \'test\')[1].setAttributeNS(\'\', \'attribute\', \'start middle end\');
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <p> The following block should be green. </p>

  <!-- root of selector -->
  <stub xmlns=""></stub>

  <!-- middle part of selector does not match this -->
  <test xmlns="" xmlns:none="" none:attribute="fake"></test>

  <!-- middle part of selector matches this once attribute is fixed -->
  <test xmlns="" xmlns:none="" none:attribute="start mid dle end"></test>

  <!-- subject of selector -->
  <test xmlns=""></test>

 </div>

','namespaces' => '','dynamic' => 1,'code-xhtml' => '

 <div>

  <script>
   <![CDATA[

    function test() {
      document.getElementsByTagNameNS(\'\', \'test\')[1].setAttributeNS(\'\', \'attribute\', \'start middle end\');
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <p> The following block should be green. </p>

  <!-- root of selector -->
  <stub xmlns=""></stub>

  <!-- middle part of selector does not match this -->
  <test xmlns="" xmlns:none="" none:attribute="fake"></test>

  <!-- middle part of selector matches this once attribute is fixed -->
  <test xmlns="" xmlns:none="" none:attribute="start mid dle end"></test>

  <!-- subject of selector -->
  <test xmlns=""></test>

 </div>

','escapedcode-xml' => '

 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      document.getElementsByTagNameNS(&#39;&#39;, &#39;test&#39;)[1].setAttributeNS(&#39;&#39;, &#39;attribute&#39;, &#39;start middle end&#39;);
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;p&gt; The following block should be green. &lt;/p&gt;

  &lt;!-- root of selector --&gt;
  &lt;stub xmlns=&quot;&quot;&gt;&lt;/stub&gt;

  &lt;!-- middle part of selector does not match this --&gt;
  &lt;test xmlns=&quot;&quot; xmlns:none=&quot;&quot; none:attribute=&quot;fake&quot;&gt;&lt;/test&gt;

  &lt;!-- middle part of selector matches this once attribute is fixed --&gt;
  &lt;test xmlns=&quot;&quot; xmlns:none=&quot;&quot; none:attribute=&quot;start mid dle end&quot;&gt;&lt;/test&gt;

  &lt;!-- subject of selector --&gt;
  &lt;test xmlns=&quot;&quot;&gt;&lt;/test&gt;

 &lt;/div&gt;

','modulename' => 'css3-modsel','cssrules' => '
   @namespace url();
   @namespace ns url();
   test { background: red; display: block; padding: 1em; }
   stub ~ [ns|attribute^=start]:not([ns|attribute~=mid])[ns|attribute*=dle][ns|attribute$=end] ~ test [ { background: lime; }
','module' => 'W3C Selectors','cdata' => 0,'author' => ['Ian Hickson'],'namespaced' => 1,'escapedcode-xhtml' => '

 &lt;div&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      document.getElementsByTagNameNS(&#39;&#39;, &#39;test&#39;)[1].setAttributeNS(&#39;&#39;, &#39;attribute&#39;, &#39;start middle end&#39;);
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;p&gt; The following block should be green. &lt;/p&gt;

  &lt;!-- root of selector --&gt;
  &lt;stub xmlns=&quot;&quot;&gt;&lt;/stub&gt;

  &lt;!-- middle part of selector does not match this --&gt;
  &lt;test xmlns=&quot;&quot; xmlns:none=&quot;&quot; none:attribute=&quot;fake&quot;&gt;&lt;/test&gt;

  &lt;!-- middle part of selector matches this once attribute is fixed --&gt;
  &lt;test xmlns=&quot;&quot; xmlns:none=&quot;&quot; none:attribute=&quot;start mid dle end&quot;&gt;&lt;/test&gt;

  &lt;!-- subject of selector --&gt;
  &lt;test xmlns=&quot;&quot;&gt;&lt;/test&gt;

 &lt;/div&gt;

'},'css3-modsel-107b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en-us&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[*|lang|=&quot;en&quot;], *|*[a|foo|=&quot;un-d&quot;] { background-color : red }
','escapedcode-html' => '
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Attribute dash-separated value selector with universal namespace','number' => '107','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[*|lang|="en"], *|*[a|foo|="un-d"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p lang="en-us">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" lang="en-us">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p lang="en-us">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s>
'},'css3-modsel-d4' => {'rev' => '1.0','escapedcode-css' => '
   #two:first-child { background: red; }
   #three:last-child { background: lime; }
','escapedcode-html' => '

 &lt;div&gt;

  &lt;script&gt;
   

    function test() {
      el2 = document.getElementById(&#39;two&#39;);
      el3 = document.getElementById(&#39;three&#39;);
      el2.parentNode.insertBefore(el3.nextSibling, el2);
    }

    window.setTimeout(test, 100);
   
  &lt;/script&gt;

  &lt;div&gt;&lt;p id=&quot;two&quot;&gt;This line should be unstyled. (2)&lt;/p&gt;&lt;p id=&quot;three&quot;&gt;This line should have a green background. (3)&lt;/p&gt;&lt;p&gt;This line should be unstyled. (4 moving to 1)&lt;/p&gt;&lt;/div&gt;

 &lt;/div&gt;

','def' => 'Dynamic updating of :first-child and :last-child','number' => 'd4','code-html' => '

 <div>

  <script>
   

    function test() {
      el2 = document.getElementById(\'two\');
      el3 = document.getElementById(\'three\');
      el2.parentNode.insertBefore(el3.nextSibling, el2);
    }

    window.setTimeout(test, 100);
   
  </script>

  <div><p id="two">This line should be unstyled. (2)</p><p id="three">This line should have a green background. (3)</p><p>This line should be unstyled. (4 moving to 1)</p></div>

 </div>

','endTag' => '</div>','date' => '21-november-2001','code-xml' => '

 <div xmlns="http://www.w3.org/1999/xhtml">

  <script>
   <![CDATA[

    function test() {
      el2 = document.getElementById(\'two\');
      el3 = document.getElementById(\'three\');
      el2.parentNode.insertBefore(el3.nextSibling, el2);
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <div><p id="two">This line should be unstyled. (2)</p><p id="three">This line should have a green background. (3)</p><p>This line should be unstyled. (4 moving to 1)</p></div>

 </div>

','namespaces' => '','dynamic' => 1,'code-xhtml' => '

 <div>

  <script>
   <![CDATA[

    function test() {
      el2 = document.getElementById(\'two\');
      el3 = document.getElementById(\'three\');
      el2.parentNode.insertBefore(el3.nextSibling, el2);
    }

    window.setTimeout(test, 100);
   ]]>
  </script>

  <div><p id="two">This line should be unstyled. (2)</p><p id="three">This line should have a green background. (3)</p><p>This line should be unstyled. (4 moving to 1)</p></div>

 </div>

','escapedcode-xml' => '

 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      el2 = document.getElementById(&#39;two&#39;);
      el3 = document.getElementById(&#39;three&#39;);
      el2.parentNode.insertBefore(el3.nextSibling, el2);
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;div&gt;&lt;p id=&quot;two&quot;&gt;This line should be unstyled. (2)&lt;/p&gt;&lt;p id=&quot;three&quot;&gt;This line should have a green background. (3)&lt;/p&gt;&lt;p&gt;This line should be unstyled. (4 moving to 1)&lt;/p&gt;&lt;/div&gt;

 &lt;/div&gt;

','modulename' => 'css3-modsel','cssrules' => '
   #two:first-child { background: red; }
   #three:last-child { background: lime; }
','module' => 'W3C Selectors','cdata' => 0,'author' => ['Ian Hickson'],'escapedcode-xhtml' => '

 &lt;div&gt;

  &lt;script&gt;
   &lt;![CDATA[

    function test() {
      el2 = document.getElementById(&#39;two&#39;);
      el3 = document.getElementById(&#39;three&#39;);
      el2.parentNode.insertBefore(el3.nextSibling, el2);
    }

    window.setTimeout(test, 100);
   ]]&gt;
  &lt;/script&gt;

  &lt;div&gt;&lt;p id=&quot;two&quot;&gt;This line should be unstyled. (2)&lt;/p&gt;&lt;p id=&quot;three&quot;&gt;This line should have a green background. (3)&lt;/p&gt;&lt;p&gt;This line should be unstyled. (4 moving to 1)&lt;/p&gt;&lt;/div&gt;

 &lt;/div&gt;

'},'css3-modsel-70' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;input type=&quot;checkbox&quot;&gt;&lt;/input&gt; The checkbox should have a green background&lt;/p&gt;
','escapedcode-css' => 'input { background-color : red }
input:not(:checked) { background-color : lime}','escapedcode-html' => '
&lt;p&gt;
&lt;input type=&quot;checkbox&quot;&gt; The checkbox should have a green background&lt;/p&gt;
','def' => 'NEGATED :checked pseudo-class','number' => '70','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'input { background-color : red }
input:not(:checked) { background-color : lime}','author' => ['Daniel Glazman'],'code-html' => '
<p>
<input type="checkbox"> The checkbox should have a green background</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">
<input type="checkbox"></input> The checkbox should have a green background</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;
&lt;input type=&quot;checkbox&quot;&gt;&lt;/input&gt; The checkbox should have a green background&lt;/p&gt;
','code-xhtml' => '
<p>
<input type="checkbox"></input> The checkbox should have a green background</p>
'},'css3-modsel-72' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;p&gt;This paragraph should have a green background and there should be no red anywhere.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => '*:not(:root) { background-color: lime }
test, html, div * { background-color : red }
','escapedcode-html' => '
 &lt;div&gt;
  &lt;p&gt;This paragraph should have a green background and there should be no red anywhere.&lt;/p&gt;
 &lt;/div&gt;
','def' => 'NEGATED :root pseudo-class','number' => '72','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '*:not(:root) { background-color: lime }
test, html, div * { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div>
  <p>This paragraph should have a green background and there should be no red anywhere.</p>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml">
  <p>This paragraph should have a green background and there should be no red anywhere.</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div&gt;
  &lt;p&gt;This paragraph should have a green background and there should be no red anywhere.&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div>
  <p>This paragraph should have a green background and there should be no red anywhere.</p>
 </div>
'},'css3-modsel-143b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title*=&quot;on ch&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on middle without declared namespace','number' => '143b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title*="on ch"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-73' => {'rev' => '1.0','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
ul &gt; li:not(:nth-child(odd)) { background-color : lime }
ol &gt; li:not(:nth-child(even)) { background-color : lime }
table.t1 tr:not(:nth-child(-n+4)) { background-color : lime }
table.t2 td:not(:nth-child(3n+1)) { background-color : lime }
table.t1 td, table.t2 td { border : thin black solid }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => 'NEGATED :nth-child() pseudo-class','number' => '73','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
ul > li:not(:nth-child(odd)) { background-color : lime }
ol > li:not(:nth-child(even)) { background-color : lime }
table.t1 tr:not(:nth-child(-n+4)) { background-color : lime }
table.t2 td:not(:nth-child(3n+1)) { background-color : lime }
table.t1 td, table.t2 td { border : thin black solid }','author' => ['Daniel Glazman'],'code-html' => '
<ul>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="red">
<td>Green row : 5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr class="red">
<td>Green row : 6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>1.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>1.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>2.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>2.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>3.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>3.7</td>
<td class="red">green cell</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="red">
<td>Green row : 5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr class="red">
<td>Green row : 6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>1.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>1.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>2.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>2.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>3.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>3.7</td>
<td class="red">green cell</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="red">
<td>Green row : 5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr class="red">
<td>Green row : 6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>1.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>1.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>2.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>2.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>3.4</td>
<td class="red">green cell</td>
<td class="red">green cell</td>
      <td>3.7</td>
<td class="red">green cell</td>
</tr>
</table>
</div>
'},'css3-modsel-74' => {'rev' => '1.0','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
ul &gt; li:not(:nth-last-child(odd)) { background-color : lime }
ol &gt; li:not(:nth-last-child(even)) { background-color : lime }
table.t1 tr:not(:nth-last-child(-n+4)) { background-color : lime }
table.t2 td:not(:nth-last-child(3n+1)) { background-color : lime }
table.t1 td, table.t2 td { border : thin black solid }
','escapedcode-html' => '
&lt;ul&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => 'NEGATED :nth-last-child() pseudo-class','number' => '74','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
ul > li:not(:nth-last-child(odd)) { background-color : lime }
ol > li:not(:nth-last-child(even)) { background-color : lime }
table.t1 tr:not(:nth-last-child(-n+4)) { background-color : lime }
table.t2 td:not(:nth-last-child(3n+1)) { background-color : lime }
table.t1 td, table.t2 td { border : thin black solid }
','author' => ['Daniel Glazman'],'code-html' => '
<ul>
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="red">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="red">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="red">green cell</td>
<td>1.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>1.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>2.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>2.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>3.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>3.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr class="red">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="red">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="red">green cell</td>
<td>1.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>1.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>2.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>2.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>3.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>3.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="red">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="red">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="red">green cell</td>
<td>1.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>1.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>2.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>2.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>3.2</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>3.5</td>
<td class="red">green cell</td>
      <td class="red">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
'},'css3-modsel-18b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;p&gt;The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:&lt;br&gt;&lt;/br&gt;&lt;strong&gt;This text.&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;This text.&lt;/p&gt;
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;dl&gt;&lt;dt&gt;This text.&lt;/dt&gt;&lt;dd&gt;This text.&lt;/dd&gt;&lt;/dl&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;This text.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;p&gt;&lt;sub&gt;This text.&lt;/sub&gt;&lt;/p&gt;
  &lt;p&gt;...and anything else between the top of the first paragraph and the bottom of this paragraph.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => 'div:hover &gt; p:first-child { background-color : lime }','escapedcode-html' => '
 &lt;div&gt;
  &lt;p&gt;The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:&lt;br&gt;&lt;strong&gt;This text.&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;This text.&lt;/p&gt;
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;dl&gt;&lt;dt&gt;This text.&lt;/dt&gt;&lt;dd&gt;This text.&lt;/dd&gt;&lt;/dl&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;This text.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;p&gt;&lt;sub&gt;This text.&lt;/sub&gt;&lt;/p&gt;
  &lt;p&gt;...and anything else between the top of the first paragraph and the bottom of this paragraph.&lt;/p&gt;
 &lt;/div&gt;
','def' => ':hover pseudo-class','number' => '18b','modulename' => 'css3-modsel','cssrules' => 'div:hover > p:first-child { background-color : lime }','module' => 'W3C Selectors','endTag' => '</div>','code-html' => '
 <div>
  <p>The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:<br><strong>This text.</strong></p>
  <p>This text.</p>
  <table><tr><td><table><tr><td><dl><dt>This text.</dt><dd>This text.</dd></dl></td></tr></table></td></tr><tr><td>This text.</td></tr></table>
  <p><sub>This text.</sub></p>
  <p>...and anything else between the top of the first paragraph and the bottom of this paragraph.</p>
 </div>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml">
  <p>The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:<br></br><strong>This text.</strong></p>
  <p>This text.</p>
  <table><tr><td><table><tr><td><dl><dt>This text.</dt><dd>This text.</dd></dl></td></tr></table></td></tr><tr><td>This text.</td></tr></table>
  <p><sub>This text.</sub></p>
  <p>...and anything else between the top of the first paragraph and the bottom of this paragraph.</p>
 </div>
','date' => '03-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div&gt;
  &lt;p&gt;The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:&lt;br&gt;&lt;/br&gt;&lt;strong&gt;This text.&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;This text.&lt;/p&gt;
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;dl&gt;&lt;dt&gt;This text.&lt;/dt&gt;&lt;dd&gt;This text.&lt;/dd&gt;&lt;/dl&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;This text.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;p&gt;&lt;sub&gt;This text.&lt;/sub&gt;&lt;/p&gt;
  &lt;p&gt;...and anything else between the top of the first paragraph and the bottom of this paragraph.&lt;/p&gt;
 &lt;/div&gt;
','interactive' => 1,'code-xhtml' => '
 <div>
  <p>The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:<br></br><strong>This text.</strong></p>
  <p>This text.</p>
  <table><tr><td><table><tr><td><dl><dt>This text.</dt><dd>This text.</dd></dl></td></tr></table></td></tr><tr><td>This text.</td></tr></table>
  <p><sub>This text.</sub></p>
  <p>...and anything else between the top of the first paragraph and the bottom of this paragraph.</p>
 </div>
'},'css3-modsel-120' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;l xmlns=&quot;http://www.example.org/b&quot;&gt;
&lt;p xmlns=&quot;&quot;&gt;This paragraph should have a
                green background&lt;/p&gt;
&lt;/l&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub &gt; * { display : block ; margin-bottom : 1em ;
                            background-color : red }
div.stub &gt; *:not(|p) { background-color : lime }
div.stub &gt; *|l &gt; *:not(|p) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;l xmlns=&quot;http://www.example.org/b&quot;&gt;
&lt;p xmlns=&quot;&quot;&gt;This paragraph should have a
                green background&lt;/p&gt;
&lt;/l&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED type element selector without declared namespace','number' => '120','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub > * { display : block ; margin-bottom : 1em ;
                            background-color : red }
div.stub > *:not(|p) { background-color : lime }
div.stub > *|l > *:not(|p) { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<p>This paragraph should have a green background</p>
<p xmlns="http://www.example.org/b">This paragraph should have a green background</p>
<l xmlns="http://www.example.org/b">
<p xmlns="">This paragraph should have a
                green background</p>
</l>
<p xmlns="http://www.example.org/a">This paragraph should have a green background</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p>This paragraph should have a green background</p>
<p xmlns="http://www.example.org/b">This paragraph should have a green background</p>
<l xmlns="http://www.example.org/b">
<p xmlns="">This paragraph should have a
                green background</p>
</l>
<p xmlns="http://www.example.org/a">This paragraph should have a green background</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p&gt;This paragraph should have a green background&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;l xmlns=&quot;http://www.example.org/b&quot;&gt;
&lt;p xmlns=&quot;&quot;&gt;This paragraph should have a
                green background&lt;/p&gt;
&lt;/l&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p>This paragraph should have a green background</p>
<p xmlns="http://www.example.org/b">This paragraph should have a green background</p>
<l xmlns="http://www.example.org/b">
<p xmlns="">This paragraph should have a
                green background</p>
</l>
<p xmlns="http://www.example.org/a">This paragraph should have a green background</p>
</div>
'},'css3-modsel-75' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;And this address should be unstyled.&lt;/address&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should also have green background!&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;But this one should be unstyled again.&lt;/p&gt;
&lt;dl xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Second definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fifth definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','escapedcode-css' => '.red { background-color : red }
p:not(:nth-of-type(3)) { background-color : lime }
dl &gt; *:not(:nth-of-type(3n+1)) { background-color : lime }
','escapedcode-html' => '
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address&gt;And this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should also have green background!&lt;/p&gt;
&lt;p&gt;But this one should be unstyled again.&lt;/p&gt;
&lt;dl&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Second definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fifth definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','def' => 'NEGATED :nth-of-type() pseudo-class','number' => '75','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
p:not(:nth-of-type(3)) { background-color : lime }
dl > *:not(:nth-of-type(3n+1)) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="red">This paragraph should have green background</p>
<address>And this address should be unstyled.</address>
<p class="red">This paragraph should also have green background!</p>
<p>But this one should be unstyled again.</p>
<dl>
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt class="red">Second definition term that should have green background</dt>
    <dd class="red">Second definition that should have green background</dd>
  <dt class="red">Third definition term that should have green background</dt>
    <dd class="red">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt class="red">Fifth definition term that should have green background</dt>
    <dd class="red">Fifth definition that should have green background</dd>
  <dt class="red">Sixth definition term that should have green background</dt>
    <dd class="red">Sixth definition that should have green background</dd>
</dl>
','endTag' => '</dl>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background</p>
<address xmlns="http://www.w3.org/1999/xhtml">And this address should be unstyled.</address>
<p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should also have green background!</p>
<p xmlns="http://www.w3.org/1999/xhtml">But this one should be unstyled again.</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt class="red">Second definition term that should have green background</dt>
    <dd class="red">Second definition that should have green background</dd>
  <dt class="red">Third definition term that should have green background</dt>
    <dd class="red">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt class="red">Fifth definition term that should have green background</dt>
    <dd class="red">Fifth definition that should have green background</dd>
  <dt class="red">Sixth definition term that should have green background</dt>
    <dd class="red">Sixth definition that should have green background</dd>
</dl>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address&gt;And this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should also have green background!&lt;/p&gt;
&lt;p&gt;But this one should be unstyled again.&lt;/p&gt;
&lt;dl&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Second definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fifth definition that should have green background&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','code-xhtml' => '
<p class="red">This paragraph should have green background</p>
<address>And this address should be unstyled.</address>
<p class="red">This paragraph should also have green background!</p>
<p>But this one should be unstyled again.</p>
<dl>
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt class="red">Second definition term that should have green background</dt>
    <dd class="red">Second definition that should have green background</dd>
  <dt class="red">Third definition term that should have green background</dt>
    <dd class="red">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt class="red">Fifth definition term that should have green background</dt>
    <dd class="red">Fifth definition that should have green background</dd>
  <dt class="red">Sixth definition term that should have green background</dt>
    <dd class="red">Sixth definition that should have green background</dd>
</dl>
'},'css3-modsel-136b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : lime ! important }
div.stub *|*:not([*|title*=&quot;on ch&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on middle with universal namespace','number' => '136b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : lime ! important }
div.stub *|*:not([*|title*="on ch"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-121' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;address&gt;This address should be in green characters.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should be in green characters.&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should be in green characters.&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;
&lt;v&gt;This paragraph should be in green characters.&lt;/v&gt;
&lt;/u&gt;
&lt;/div&gt;

','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub &gt; *|* { color : red ; display : block ;
                 margin-bottom : 1em }
div.stub &gt; *|*:not(a|*) { color : green  }
div.stub v { color : green }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should be in green characters.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should be in green characters.&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should be in green characters.&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;
&lt;v&gt;This paragraph should be in green characters.&lt;/v&gt;
&lt;/u&gt;
&lt;/div&gt;

','def' => 'NEGATED universal selector with declared namespace','number' => '121','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub > *|* { color : red ; display : block ;
                 margin-bottom : 1em }
div.stub > *|*:not(a|*) { color : green  }
div.stub v { color : green }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<address>This address should be in green characters.</address>
<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s>
<t xmlns="">This paragraph should be in green characters.</t>
<u xmlns="http://www.example.org/a">
<v>This paragraph should be in green characters.</v>
</u>
</div>

','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<address>This address should be in green characters.</address>
<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s>
<t xmlns="">This paragraph should be in green characters.</t>
<u xmlns="http://www.example.org/a">
<v>This paragraph should be in green characters.</v>
</u>
</div>

','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should be in green characters.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should be in green characters.&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should be in green characters.&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;
&lt;v&gt;This paragraph should be in green characters.&lt;/v&gt;
&lt;/u&gt;
&lt;/div&gt;

','code-xhtml' => '
<div class="stub">
<address>This address should be in green characters.</address>
<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s>
<t xmlns="">This paragraph should be in green characters.</t>
<u xmlns="http://www.example.org/a">
<v>This paragraph should be in green characters.</v>
</u>
</div>

'},'css3-modsel-76' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;dl xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;dt class=&quot;red&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','escapedcode-css' => '.red { background-color : red }
p:not(:nth-last-of-type(3)) { background-color : lime }
dl &gt; *:not(:nth-last-of-type(3n+1)) { background-color : lime }
','escapedcode-html' => '
&lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address&gt;This address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;dl&gt;
  &lt;dt class=&quot;red&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','def' => 'NEGATED :nth-last-of-type() pseudo-class','number' => '76','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
p:not(:nth-last-of-type(3)) { background-color : lime }
dl > *:not(:nth-last-of-type(3n+1)) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p>This paragraph should be unstyled.</p>
<address>This address should be unstyled.</address>
<p class="red">This paragraph should have green background</p>
<p class="red">This paragraph should have green background</p>
<dl>
  <dt class="red">First definition term that should have green background</dt>
    <dd class="red">First definition</dd>
  <dt class="red">Second definition term that should have green background</dt>
    <dd class="red">Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="red">Fourth definition term that should have green background</dt>
    <dd class="red">Fourth definition</dd>
  <dt class="red">Fifth definition term that should have green background</dt>
    <dd class="red">Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
','endTag' => '</dl>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph should be unstyled.</p>
<address xmlns="http://www.w3.org/1999/xhtml">This address should be unstyled.</address>
<p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt class="red">First definition term that should have green background</dt>
    <dd class="red">First definition</dd>
  <dt class="red">Second definition term that should have green background</dt>
    <dd class="red">Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="red">Fourth definition term that should have green background</dt>
    <dd class="red">Fourth definition</dd>
  <dt class="red">Fifth definition term that should have green background</dt>
    <dd class="red">Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address&gt;This address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;dl&gt;
  &lt;dt class=&quot;red&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','code-xhtml' => '
<p>This paragraph should be unstyled.</p>
<address>This address should be unstyled.</address>
<p class="red">This paragraph should have green background</p>
<p class="red">This paragraph should have green background</p>
<dl>
  <dt class="red">First definition term that should have green background</dt>
    <dd class="red">First definition</dd>
  <dt class="red">Second definition term that should have green background</dt>
    <dd class="red">Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="red">Fourth definition term that should have green background</dt>
    <dd class="red">Fourth definition</dd>
  <dt class="red">Fifth definition term that should have green background</dt>
    <dd class="red">Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
'},'css3-modsel-122' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub &gt; *|* { background-color : lime ; display : block ;
                 margin-bottom : 1em }
div.stub &gt; *|*:not(*|*) { background-color : red }
/* yes, the rule just above selects nothing... That&#39;s the point */
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','def' => 'NEGATED universal selector with universal namespace','number' => '122','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub > *|* { background-color : lime ; display : block ;
                 margin-bottom : 1em }
div.stub > *|*:not(*|*) { background-color : red }
/* yes, the rule just above selects nothing... That\'s the point */
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
'},'css3-modsel-77' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
 &lt;/table&gt;
 &lt;/div&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph &lt;span&gt;should be&lt;/span&gt; unstyled.&lt;/p&gt;
','escapedcode-css' => '.red { background-color : red }
.t1 td:not(:first-child) { background-color : lime }
p &gt; *:not(:first-child) { background-color : lime }
table.t1 td { border : thin black solid }
','escapedcode-html' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
 &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This paragraph &lt;span&gt;should be&lt;/span&gt; unstyled.&lt;/p&gt;
','def' => 'NEGATED :first-child pseudo-class','number' => '77','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
.t1 td:not(:first-child) { background-color : lime }
p > *:not(:first-child) { background-color : lime }
table.t1 td { border : thin black solid }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td>1.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>2.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>3.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
 </table>
 </div>
 <p>This paragraph <span>should be</span> unstyled.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" align="center">
  <table class="t1" border="1">
   <tr>
    <td>1.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>2.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>3.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
 </table>
 </div>
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph <span>should be</span> unstyled.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
 &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This paragraph &lt;span&gt;should be&lt;/span&gt; unstyled.&lt;/p&gt;
','code-xhtml' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td>1.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>2.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
   <tr>
    <td>3.1</td>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
   </tr>
 </table>
 </div>
 <p>This paragraph <span>should be</span> unstyled.</p>
'},'css3-modsel-123' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;address&gt;This address should be in green characters.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should be in green characters.&lt;/s&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should be in green characters.&lt;/u&gt;
&lt;/div&gt;

','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub &gt; *|* { color : red ; display : block ;
                 margin-bottom : 1em }
div.stub &gt; *|*:not(|*) { color : green }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should be in green characters.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should be in green characters.&lt;/s&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should be in green characters.&lt;/u&gt;
&lt;/div&gt;

','def' => 'NEGATED universal selector with declared namespace','number' => '123','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub > *|* { color : red ; display : block ;
                 margin-bottom : 1em }
div.stub > *|*:not(|*) { color : green }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<address>This address should be in green characters.</address>
<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s>
<u xmlns="http://www.example.org/a">This paragraph should be in green characters.</u>
</div>

','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<address>This address should be in green characters.</address>
<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s>
<u xmlns="http://www.example.org/a">This paragraph should be in green characters.</u>
</div>

','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should be in green characters.&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should be in green characters.&lt;/s&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should be in green characters.&lt;/u&gt;
&lt;/div&gt;

','code-xhtml' => '
<div class="stub">
<address>This address should be in green characters.</address>
<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s>
<u xmlns="http://www.example.org/a">This paragraph should be in green characters.</u>
</div>

'},'css3-modsel-78' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This &lt;span&gt;paragraph should&lt;/span&gt; be unstyled.&lt;/p&gt;
','escapedcode-css' => '.red { background-color : red }
.t1 td:not(:last-child) { background-color : lime }
p &gt; *:not(:last-child) { background-color : lime }
table.t1 td { border : thin black solid }
','escapedcode-html' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This &lt;span&gt;paragraph should&lt;/span&gt; be unstyled.&lt;/p&gt;
','def' => 'NEGATED :last-child pseudo-class','number' => '78','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
.t1 td:not(:last-child) { background-color : lime }
p > *:not(:last-child) { background-color : lime }
table.t1 td { border : thin black solid }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>1.3</td>
   </tr>
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>2.3</td>
   </tr>
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>3.3</td>
   </tr>
  </table>
 </div>
 <p>This <span>paragraph should</span> be unstyled.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" align="center">
  <table class="t1" border="1">
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>1.3</td>
   </tr>
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>2.3</td>
   </tr>
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>3.3</td>
   </tr>
  </table>
 </div>
 <p xmlns="http://www.w3.org/1999/xhtml">This <span>paragraph should</span> be unstyled.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This &lt;span&gt;paragraph should&lt;/span&gt; be unstyled.&lt;/p&gt;
','code-xhtml' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>1.3</td>
   </tr>
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>2.3</td>
   </tr>
   <tr>
    <td class="red">green cell</td>
    <td class="red">green cell</td>
    <td>3.3</td>
   </tr>
  </table>
 </div>
 <p>This <span>paragraph should</span> be unstyled.</p>
'},'css3-modsel-124' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
div.stub *:not([a|title=&quot;foo&quot;]) {background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute value selector with declared namespace','number' => '124','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : red }
div.stub *:not([a|title="foo"]) {background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q>
<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s>
<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q>
<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s>
<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q>
<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s>
<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r>
</div>
'},'css3-modsel-129b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|title*=&quot;hanta&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute value selector on middle with declared namespace','number' => '129b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|title*="hanta"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-79' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This div contains 3 addresses :
&lt;address&gt;A first address with normal background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A second address that should have a green background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A third address that should have a green background&lt;/address&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:not(:first-of-type) { background-color : lime }
','escapedcode-html' => '
&lt;div&gt;This div contains 3 addresses :
&lt;address&gt;A first address with normal background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A second address that should have a green background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A third address that should have a green background&lt;/address&gt;
&lt;/div&gt;
','def' => 'NEGATED :first-of-type pseudo-class','number' => '79','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:not(:first-of-type) { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div>This div contains 3 addresses :
<address>A first address with normal background</address>
<address class="red">A second address that should have a green background</address>
<address class="red">A third address that should have a green background</address>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml">This div contains 3 addresses :
<address>A first address with normal background</address>
<address class="red">A second address that should have a green background</address>
<address class="red">A third address that should have a green background</address>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div&gt;This div contains 3 addresses :
&lt;address&gt;A first address with normal background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A second address that should have a green background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A third address that should have a green background&lt;/address&gt;
&lt;/div&gt;
','code-xhtml' => '
<div>This div contains 3 addresses :
<address>A first address with normal background</address>
<address class="red">A second address that should have a green background</address>
<address class="red">A third address that should have a green background</address>
</div>
'},'css3-modsel-125' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|foo~=&quot;bar&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute space-separated value selector with declared namespace','number' => '125','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|foo~="bar"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-126' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|foo|=&quot;bar&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute dash-separated value selector with declared namespace','number' => '126','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|foo|="bar"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-127' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|title^=&quot;si on&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute value selector on beginning with declared namespace','number' => '127','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|title^="si on"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-90b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;blockquote xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be green.&lt;/p&gt;
','escapedcode-css' => 'p { color: green ! important; }
blockquote ~ div + p { color: red; }','escapedcode-html' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','def' => 'Simple combination of direct and indirect adjacent combinators','number' => '90b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: green ! important; }
blockquote ~ div + p { color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<blockquote xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</blockquote>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<p xmlns="http://www.w3.org/1999/xhtml">This text should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','code-xhtml' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
'},'css3-modsel-128' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|title$=&quot;tait&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute value selector on end with declared namespace','number' => '128','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|title$="tait"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-129' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|title*=&quot;hanta&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute value selector on middle with declared namespace','number' => '129','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : red }
div.stub *|*:not([a|title*="hanta"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-100b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; html:lang=&quot;en-us&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|foo|=&quot;bar&quot;], *|*[html|lang|=&quot;en&quot;] { background-color : red }
','escapedcode-html' => '
&lt;p html:lang=&quot;en-us&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Attribute dash-separated value selector with declared namespace','number' => '100b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|foo|="bar"], *|*[html|lang|="en"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p html:lang="en-us">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" html:lang="en-us">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p html:lang=&quot;en-us&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p html:lang="en-us">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s>
'},'css3-modsel-76b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This address should be unstyled.&lt;/address&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;dl xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;dt class=&quot;green&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
p:not(:nth-last-of-type(3)) { background-color : red }
dl &gt; *:not(:nth-last-of-type(3n+1)) { background-color : red }
','escapedcode-html' => '
&lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address&gt;This address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;dl&gt;
  &lt;dt class=&quot;green&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','def' => 'NEGATED :nth-last-of-type() pseudo-class','number' => '76b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
p:not(:nth-last-of-type(3)) { background-color : red }
dl > *:not(:nth-last-of-type(3n+1)) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p>This paragraph should be unstyled.</p>
<address>This address should be unstyled.</address>
<p class="green">This paragraph should have green background</p>
<p class="green">This paragraph should have green background</p>
<dl>
  <dt class="green">First definition term that should have green background</dt>
    <dd class="green">First definition</dd>
  <dt class="green">Second definition term that should have green background</dt>
    <dd class="green">Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="green">Fourth definition term that should have green background</dt>
    <dd class="green">Fourth definition</dd>
  <dt class="green">Fifth definition term that should have green background</dt>
    <dd class="green">Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
','endTag' => '</dl>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph should be unstyled.</p>
<address xmlns="http://www.w3.org/1999/xhtml">This address should be unstyled.</address>
<p xmlns="http://www.w3.org/1999/xhtml" class="green">This paragraph should have green background</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="green">This paragraph should have green background</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt class="green">First definition term that should have green background</dt>
    <dd class="green">First definition</dd>
  <dt class="green">Second definition term that should have green background</dt>
    <dd class="green">Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="green">Fourth definition term that should have green background</dt>
    <dd class="green">Fourth definition</dd>
  <dt class="green">Fifth definition term that should have green background</dt>
    <dd class="green">Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address&gt;This address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;p class=&quot;green&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;dl&gt;
  &lt;dt class=&quot;green&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;First definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Second definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fourth definition&lt;/dd&gt;
  &lt;dt class=&quot;green&quot;&gt;Fifth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;green&quot;&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','code-xhtml' => '
<p>This paragraph should be unstyled.</p>
<address>This address should be unstyled.</address>
<p class="green">This paragraph should have green background</p>
<p class="green">This paragraph should have green background</p>
<dl>
  <dt class="green">First definition term that should have green background</dt>
    <dd class="green">First definition</dd>
  <dt class="green">Second definition term that should have green background</dt>
    <dd class="green">Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="green">Fourth definition term that should have green background</dt>
    <dd class="green">Fourth definition</dd>
  <dt class="green">Fifth definition term that should have green background</dt>
    <dd class="green">Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
'},'css3-modsel-98b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/q&gt;
 &lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
*[a|title=&quot;foo&quot;] {background-color : red }
','escapedcode-html' => '
 &lt;p title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/q&gt;
 &lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute value selector with declared namespace','number' => '98b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
*[a|title="foo"] {background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p title="foo">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q>
 <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s>
 <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" title="foo">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q>
 <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s>
 <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;p title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/q&gt;
 &lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
 <p title="foo">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q>
 <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s>
 <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r>
'},'css3-modsel-115b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title^=&quot;si on&quot;] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on beginning without declared namespace','number' => '115','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title^="si on"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-108b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title^=&quot;si on&quot;] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on beginning with universal namespace','number' => '108','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title^="si on"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-80' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;address class=&quot;red&quot;&gt;A first address that should have a green background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A second address that should have a green background&lt;/address&gt;
&lt;address&gt;A third address with normal background&lt;/address&gt;
This div should have three addresses above it.&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:not(:last-of-type) { background-color : lime }
','escapedcode-html' => '
&lt;div&gt;
&lt;address class=&quot;red&quot;&gt;A first address that should have a green background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A second address that should have a green background&lt;/address&gt;
&lt;address&gt;A third address with normal background&lt;/address&gt;
This div should have three addresses above it.&lt;/div&gt;
','def' => 'NEGATED :last-of-type pseudo-class','number' => '80','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:not(:last-of-type) { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div>
<address class="red">A first address that should have a green background</address>
<address class="red">A second address that should have a green background</address>
<address>A third address with normal background</address>
This div should have three addresses above it.</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml">
<address class="red">A first address that should have a green background</address>
<address class="red">A second address that should have a green background</address>
<address>A third address with normal background</address>
This div should have three addresses above it.</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div&gt;
&lt;address class=&quot;red&quot;&gt;A first address that should have a green background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A second address that should have a green background&lt;/address&gt;
&lt;address&gt;A third address with normal background&lt;/address&gt;
This div should have three addresses above it.&lt;/div&gt;
','code-xhtml' => '
<div>
<address class="red">A first address that should have a green background</address>
<address class="red">A second address that should have a green background</address>
<address>A third address with normal background</address>
This div should have three addresses above it.</div>
'},'css3-modsel-81' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This div contains only one paragraph.
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
p:not(:only-child) { background-color : lime }
div.testText &gt; div &gt; p { margin-left : 1em }
','escapedcode-html' => '
 &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;div&gt;This div contains only one paragraph.
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','def' => 'NEGATED :only-child pseudo-class','number' => '81','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
p:not(:only-child) { background-color : lime }
div.testText > div > p { margin-left : 1em }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p class="red">This paragraph should have a green background.</p>
 <div>This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have a green background.</p>
 <div xmlns="http://www.w3.org/1999/xhtml">This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;div&gt;This div contains only one paragraph.
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <p class="red">This paragraph should have a green background.</p>
 <div>This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>
'},'css3-modsel-82' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t1&quot;&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;address&gt;But this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
.t1 *:not(:only-of-type) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;t1&quot;&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;address&gt;But this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;/div&gt;
','def' => 'NEGATED :only-of-type pseudo-class','number' => '82','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
.t1 *:not(:only-of-type) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="t1">
<p class="red">This paragraph should have green background.</p>
<address>But this address should be unstyled.</address>
<p class="red">This paragraph should have green background.</p>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="t1">
<p class="red">This paragraph should have green background.</p>
<address>But this address should be unstyled.</address>
<p class="red">This paragraph should have green background.</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;t1&quot;&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;address&gt;But this address should be unstyled.&lt;/address&gt;
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background.&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="t1">
<p class="red">This paragraph should have green background.</p>
<address>But this address should be unstyled.</address>
<p class="red">This paragraph should have green background.</p>
</div>
'},'css3-modsel-83' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should have a green background&lt;/p&gt;
','escapedcode-css' => 'p { background-color : lime }
p:not(:not(p)) { background-color : red }','escapedcode-html' => '
&lt;p&gt;This paragraph should have a green background&lt;/p&gt;
','def' => 'Negation pseudo-class cannot be an argument of itself','number' => '83','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : lime }
p:not(:not(p)) { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<p>This paragraph should have a green background</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This paragraph should have a green background&lt;/p&gt;
','code-xhtml' => '
<p>This paragraph should have a green background</p>
'},'css3-modsel-84' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;There is no disagreement over the fact that this paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
   &lt;li&gt;This list, including its bullets and all the text, should have a&lt;/li&gt;&lt;li&gt;green background throughout as well.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
','escapedcode-css' => 'div.stub *:contains(&quot;agree&quot;) { background-color : lime }
.red { background-color : red }','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;There is no disagreement over the fact that this paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
   &lt;li&gt;This list, including its bullets and all the text, should have a&lt;/li&gt;&lt;li&gt;green background throughout as well.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
','def' => ':contains() pseudo-class','number' => '84','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub *:contains("agree") { background-color : lime }
.red { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <p class="red">There is no disagreement over the fact that this paragraph should have a green background.</p>
  <ul class="red">
   <li>This list, including its bullets and all the text, should have a</li><li>green background throughout as well.</li>
  </ul>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p class="red">There is no disagreement over the fact that this paragraph should have a green background.</p>
  <ul class="red">
   <li>This list, including its bullets and all the text, should have a</li><li>green background throughout as well.</li>
  </ul>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;There is no disagreement over the fact that this paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
   &lt;li&gt;This list, including its bullets and all the text, should have a&lt;/li&gt;&lt;li&gt;green background throughout as well.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <p class="red">There is no disagreement over the fact that this paragraph should have a green background.</p>
  <ul class="red">
   <li>This list, including its bullets and all the text, should have a</li><li>green background throughout as well.</li>
  </ul>
 </div>
'},'css3-modsel-130' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : red }
div.stub *|*:not([*|title]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute existence selector with universal namespace','number' => '130','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : red }
div.stub *|*:not([*|title]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
'},'css3-modsel-85' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
    &lt;li&gt;All this list, including bullets&lt;/li&gt;
    &lt;li&gt;and all text, should be green.&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
','escapedcode-css' => 'div.stub *:not(:contains(&quot;red&quot;)) { background-color: lime; }
.red { background-color: red; }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
    &lt;li&gt;All this list, including bullets&lt;/li&gt;
    &lt;li&gt;and all text, should be green.&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
','def' => 'NEGATED :contains() pseudo-class','number' => '85','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub *:not(:contains("red")) { background-color: lime; }
.red { background-color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
  <p class="red">This paragraph should have a green background.</p>
  <ul class="red">
    <li>All this list, including bullets</li>
    <li>and all text, should be green.</li>
  </ul>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p class="red">This paragraph should have a green background.</p>
  <ul class="red">
    <li>All this list, including bullets</li>
    <li>and all text, should be green.</li>
  </ul>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;red&quot;&gt;
    &lt;li&gt;All this list, including bullets&lt;/li&gt;
    &lt;li&gt;and all text, should be green.&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
  <p class="red">This paragraph should have a green background.</p>
  <ul class="red">
    <li>All this list, including bullets</li>
    <li>and all text, should be green.</li>
  </ul>
</div>
'},'css3-modsel-137b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
div.stub *|*:not([|title]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute existence selector without declared namespace','number' => '137b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
div.stub *|*:not([|title]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
</div>
'},'css3-modsel-131' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : red }
div.stub *|*:not([*|title=&quot;si on chantait&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute value selector with universal namespace','number' => '131','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : red }
div.stub *|*:not([*|title="si on chantait"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
'},'css3-modsel-86' => {'rev' => '1.0','escapedcode-xml' => '
&lt;html:blockquote xmlns=&quot;http://www.example.org/css3tests&quot;&gt;
&lt;html:div&gt;
&lt;html:div&gt;
&lt;html:p&gt;This text should be green.&lt;/html:p&gt;
&lt;/html:div&gt;
&lt;/html:div&gt;
&lt;/html:blockquote&gt;
','escapedcode-css' => 'p { color: red; }
blockquote &gt; div p { color: green; }
','escapedcode-html' => '
&lt;html:blockquote xmlns=&quot;http://www.example.org/css3tests&quot;&gt;
&lt;html:div&gt;
&lt;html:div&gt;
&lt;html:p&gt;This text should be green.&lt;/html:p&gt;
&lt;/html:div&gt;
&lt;/html:div&gt;
&lt;/html:blockquote&gt;
','def' => 'Nondeterministic matching of descendant and child combinators','number' => '86','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: red; }
blockquote > div p { color: green; }
','author' => ['Daniel Glazman'],'code-html' => '
<html:blockquote xmlns="http://www.example.org/css3tests">
<html:div>
<html:div>
<html:p>This text should be green.</html:p>
</html:div>
</html:div>
</html:blockquote>
','endTag' => '</html:blockquote>','date' => '11-july-2001','code-xml' => '
<html:blockquote xmlns="http://www.example.org/css3tests">
<html:div>
<html:div>
<html:p>This text should be green.</html:p>
</html:div>
</html:div>
</html:blockquote>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;html:blockquote xmlns=&quot;http://www.example.org/css3tests&quot;&gt;
&lt;html:div&gt;
&lt;html:div&gt;
&lt;html:p&gt;This text should be green.&lt;/html:p&gt;
&lt;/html:div&gt;
&lt;/html:div&gt;
&lt;/html:blockquote&gt;
','code-xhtml' => '
<html:blockquote xmlns="http://www.example.org/css3tests">
<html:div>
<html:div>
<html:p>This text should be green.</html:p>
</html:div>
</html:div>
</html:blockquote>
'},'css3-modsel-132' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
&lt;p class=&quot;un deu trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.deu, *|q { background-color : red }
div.stub html|*:not([*|class~=&quot;deux&quot;]),
   div.stub *|*:not(html|*):not([*|foo~=&quot;deux&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
&lt;p class=&quot;un deu trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute space-separated value selector with universal namespace','number' => '132','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.deu, *|q { background-color : red }
div.stub html|*:not([*|class~="deux"]),
   div.stub *|*:not(html|*):not([*|foo~="deux"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p class="un deux trois">This paragraph should be unstyled</p>
<p class="un deu trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p class="un deux trois">This paragraph should be unstyled</p>
<p class="un deu trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
&lt;p class=&quot;un deu trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p class="un deux trois">This paragraph should be unstyled</p>
<p class="un deu trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s>
</div>
'},'css3-modsel-87' => {'rev' => '1.1','escapedcode-xml' => '
&lt;blockquote xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be green.&lt;/p&gt;
','escapedcode-css' => 'p { color: red; }
blockquote + div ~ p { color: green; }','escapedcode-html' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','def' => 'Nondeterministic matching of direct and indirect adjacent combinators','number' => '87','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: red; }
blockquote + div ~ p { color: green; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<blockquote xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</blockquote>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<p xmlns="http://www.w3.org/1999/xhtml">This text should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','code-xhtml' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
'},'css3-modsel-133' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p lang=&quot;fr&quot; class=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.foo, *|q, *|s { background-color : red }
div.stub html|*:not([*|lang|=&quot;en&quot;]),
  div.stub *|*:not(html|*):not([a|foo|=&quot;un-d&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p lang=&quot;fr&quot; class=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute dash-separated value selector with universal namespace','number' => '133','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.foo, *|q, *|s { background-color : red }
div.stub html|*:not([*|lang|="en"]),
  div.stub *|*:not(html|*):not([a|foo|="un-d"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p lang="en-us">This paragraph should be unstyled.</p>
<p lang="fr" class="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p lang="en-us">This paragraph should be unstyled.</p>
<p lang="fr" class="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p lang=&quot;fr&quot; class=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p lang="en-us">This paragraph should be unstyled.</p>
<p lang="fr" class="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-88' => {'rev' => '1.1','escapedcode-xml' => '
&lt;blockquote xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','escapedcode-css' => 'p { color: red; }
blockquote + div p { color: green; }','escapedcode-html' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','def' => 'Nondeterministic matching of descendant and direct adjacent combinators','number' => '88','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: red; }
blockquote + div p { color: green; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<blockquote>This text should be unstyled.</blockquote>
<div>
<div>
<p>This text should be green.</p>
</div>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<blockquote xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</blockquote>
<div xmlns="http://www.w3.org/1999/xhtml">
<div>
<p>This text should be green.</p>
</div>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
','code-xhtml' => '
<blockquote>This text should be unstyled.</blockquote>
<div>
<div>
<p>This text should be green.</p>
</div>
</div>
'},'css3-modsel-134' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : red }
div.stub *|*:not([*|title^=&quot;si on&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on beginning with universal namespace','number' => '134','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : red }
div.stub *|*:not([*|title^="si on"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-89' => {'rev' => '1.0','escapedcode-xml' => '
&lt;blockquote xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
','escapedcode-css' => 'p { color: red; }
blockquote div &gt; p { color: green; }','escapedcode-html' => '
&lt;blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
','def' => 'Simple combination of descendant and child combinators','number' => '89','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: red; }
blockquote div > p { color: green; }','author' => ['Daniel Glazman'],'code-html' => '
<blockquote>
<div>
<div>
<p>This text should be green.</p>
</div>
</div>
</blockquote>
','endTag' => '</blockquote>','date' => '11-july-2001','code-xml' => '
<blockquote xmlns="http://www.w3.org/1999/xhtml">
<div>
<div>
<p>This text should be green.</p>
</div>
</div>
</blockquote>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
','code-xhtml' => '
<blockquote>
<div>
<div>
<p>This text should be green.</p>
</div>
</div>
</blockquote>
'},'css3-modsel-135' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si tu chantais&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : red }
div.stub *|*:not([*|title$=&quot;tait&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si tu chantais&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on end with universal namespace','number' => '135','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : red }
div.stub *|*:not([*|title$="tait"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si tu chantais" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si tu chantais" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si tu chantais&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si tu chantais" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-136' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : red }
div.stub *|*:not([*|title*=&quot;on ch&quot;]) { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on middle with universal namespace','number' => '136','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p.red, *|q, *|t { background-color : red }
div.stub *|*:not([*|title*="on ch"]) { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p title=&quot;si il chantait&quot; class=&quot;red&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<p title="si il chantait" class="red">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-137' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : red }
div.stub *|*:not([|title]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute existence selector without declared namespace','number' => '137','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : red }
div.stub *|*:not([|title]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
</div>
'},'css3-modsel-138' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title=&quot;si on chantait&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute value selector without declared namespace','number' => '138','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title="si on chantait"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-139' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : red }
div.stub *|*:not([|class~=&quot;foo&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute space-separated value selector without declared namespace','number' => '139','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : red }
div.stub *|*:not([|class~="foo"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p class="bar foo toto">This paragraph should be unstyled.</p>
<address class="bar foofoo toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p class="bar foo toto">This paragraph should be unstyled.</p>
<address class="bar foofoo toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p class="bar foo toto">This paragraph should be unstyled.</p>
<address class="bar foofoo toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r>
</div>
'},'css3-modsel-84b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;green&quot;&gt;
   &lt;li&gt;This list should also have a&lt;/li&gt;
&lt;li&gt;green background throughout.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime }
div.stub *:contains(&quot;agree&quot;) { background-color : red }','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;green&quot;&gt;
   &lt;li&gt;This list should also have a&lt;/li&gt;
&lt;li&gt;green background throughout.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
','def' => ':contains() pseudo-class','number' => '84b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime }
div.stub *:contains("agree") { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <ul class="green">
   <li>This list should also have a</li>
<li>green background throughout.</li>
  </ul>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <ul class="green">
   <li>This list should also have a</li>
<li>green background throughout.</li>
  </ul>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;ul class=&quot;green&quot;&gt;
   &lt;li&gt;This list should also have a&lt;/li&gt;
&lt;li&gt;green background throughout.&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <p class="green">This paragraph should have a green background.</p>
  <ul class="green">
   <li>This list should also have a</li>
<li>green background throughout.</li>
  </ul>
 </div>
'},'css3-modsel-101b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|title^=&quot;si on&quot;], *|*[title^=&quot;si on&quot;] { background-color : red }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Substring matching attribute value selector on beginning with declared namespace','number' => '101b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|title^="si on"], *|*[title^="si on"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;et si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
'},'css3-modsel-10' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;foobar&quot;&gt;This paragraph should have a green background because
its title attribute ends with &amp;quot;bar&amp;quot;&lt;/p&gt;
','escapedcode-css' => 'p { background-color : red }
p[title$=&quot;bar&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;foobar&quot;&gt;This paragraph should have a green background because
its title attribute ends with &amp;quot;bar&amp;quot;&lt;/p&gt;
','def' => 'Substring matching attribute selector (end)','number' => '10','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : red }
p[title$="bar"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="foobar">This paragraph should have a green background because
its title attribute ends with &quot;bar&quot;</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="foobar">This paragraph should have a green background because
its title attribute ends with &quot;bar&quot;</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;p title=&quot;foobar&quot;&gt;This paragraph should have a green background because
its title attribute ends with &amp;quot;bar&amp;quot;&lt;/p&gt;
','code-xhtml' => '
<p title="foobar">This paragraph should have a green background because
its title attribute ends with &quot;bar&quot;</p>
'},'css3-modsel-77b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
 &lt;/table&gt;
 &lt;/div&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph &lt;span&gt;should be&lt;/span&gt; unstyled.&lt;/p&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
.t1 td:not(:first-child) { background-color : red }
p &gt; *:not(:first-child) { background-color : red }
table.t1 td { border : thin black solid }
','escapedcode-html' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
 &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This paragraph &lt;span&gt;should be&lt;/span&gt; unstyled.&lt;/p&gt;
','def' => 'NEGATED :first-child pseudo-class','number' => '77b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
.t1 td:not(:first-child) { background-color : red }
p > *:not(:first-child) { background-color : red }
table.t1 td { border : thin black solid }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td>1.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
   <tr>
    <td>2.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
   <tr>
    <td>3.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
 </table>
 </div>
 <p>This paragraph <span>should be</span> unstyled.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" align="center">
  <table class="t1" border="1">
   <tr>
    <td>1.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
   <tr>
    <td>2.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
   <tr>
    <td>3.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
 </table>
 </div>
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph <span>should be</span> unstyled.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
   &lt;/tr&gt;
 &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This paragraph &lt;span&gt;should be&lt;/span&gt; unstyled.&lt;/p&gt;
','code-xhtml' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td>1.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
   <tr>
    <td>2.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
   <tr>
    <td>3.1</td>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
   </tr>
 </table>
 </div>
 <p>This paragraph <span>should be</span> unstyled.</p>
'},'css3-modsel-11' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;foobarufoo&quot;&gt;This paragraph should have a green background because
its title attribute contains &amp;quot;bar&amp;quot;&lt;/p&gt;
','escapedcode-css' => 'p { background-color : red }
p[title*=&quot;bar&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;foobarufoo&quot;&gt;This paragraph should have a green background because
its title attribute contains &amp;quot;bar&amp;quot;&lt;/p&gt;
','def' => 'Substring matching attribute selector (contains)','number' => '11','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : red }
p[title*="bar"] { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="foobarufoo">This paragraph should have a green background because
its title attribute contains &quot;bar&quot;</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="foobarufoo">This paragraph should have a green background because
its title attribute contains &quot;bar&quot;</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;p title=&quot;foobarufoo&quot;&gt;This paragraph should have a green background because
its title attribute contains &amp;quot;bar&amp;quot;&lt;/p&gt;
','code-xhtml' => '
<p title="foobarufoo">This paragraph should have a green background because
its title attribute contains &quot;bar&quot;</p>
'},'css3-modsel-12' => {'rev' => '1.0','escapedcode-xml' => '
&lt;form xmlns=&quot;http://www.w3.org/1999/xhtml&quot; action=&quot;http://www.example.org/foo.cgi&quot;&gt;
&lt;p&gt;The content of this form should
                have a lime background&lt;/p&gt;
&lt;/form&gt;
','escapedcode-css' => 'form { background-color : lime }
form[method] { background-color : red }
form[method=&quot;get&quot;] { background-color : red }','escapedcode-html' => '
&lt;form action=&quot;http://www.example.org/foo.cgi&quot;&gt;
&lt;p&gt;The content of this form should
                have a lime background&lt;/p&gt;
&lt;/form&gt;
','def' => 'Default attribute value','number' => '12','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'form { background-color : lime }
form[method] { background-color : red }
form[method="get"] { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<form action="http://www.example.org/foo.cgi">
<p>The content of this form should
                have a lime background</p>
</form>
','endTag' => '</form>','date' => '11-july-2001','code-xml' => '
<form xmlns="http://www.w3.org/1999/xhtml" action="http://www.example.org/foo.cgi">
<p>The content of this form should
                have a lime background</p>
</form>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;form action=&quot;http://www.example.org/foo.cgi&quot;&gt;
&lt;p&gt;The content of this form should
                have a lime background&lt;/p&gt;
&lt;/form&gt;
','code-xhtml' => '
<form action="http://www.example.org/foo.cgi">
<p>The content of this form should
                have a lime background</p>
</form>
'},'css3-modsel-13' => {'rev' => '1.0','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;t1&quot;&gt;This list item should have green background because its class is &amp;quot;t1&amp;quot;&lt;/li&gt;
  &lt;li class=&quot;t2&quot;&gt;This list item should have green background because its class is &amp;quot;t2&amp;quot;&lt;/li&gt;
  &lt;li class=&quot;t2&quot;&gt;
&lt;span class=&quot;t33&quot;&gt;This list item should have green background because 
        the inner SPAN does not match SPAN.t3&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
','escapedcode-css' => 'li { background-color : red }
.t1 { background-color : lime }
li.t2 { background-color : lime }
.t3 { background-color : red }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li class=&quot;t1&quot;&gt;This list item should have green background because its class is &amp;quot;t1&amp;quot;&lt;/li&gt;
  &lt;li class=&quot;t2&quot;&gt;This list item should have green background because its class is &amp;quot;t2&amp;quot;&lt;/li&gt;
  &lt;li class=&quot;t2&quot;&gt;
&lt;span class=&quot;t33&quot;&gt;This list item should have green background because 
        the inner SPAN does not match SPAN.t3&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
','def' => 'Class selectors','number' => '13','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'li { background-color : red }
.t1 { background-color : lime }
li.t2 { background-color : lime }
.t3 { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<ul>
  <li class="t1">This list item should have green background because its class is &quot;t1&quot;</li>
  <li class="t2">This list item should have green background because its class is &quot;t2&quot;</li>
  <li class="t2">
<span class="t33">This list item should have green background because 
        the inner SPAN does not match SPAN.t3</span>
</li>
</ul>
','endTag' => '</ul>','date' => '11-july-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li class="t1">This list item should have green background because its class is &quot;t1&quot;</li>
  <li class="t2">This list item should have green background because its class is &quot;t2&quot;</li>
  <li class="t2">
<span class="t33">This list item should have green background because 
        the inner SPAN does not match SPAN.t3</span>
</li>
</ul>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li class=&quot;t1&quot;&gt;This list item should have green background because its class is &amp;quot;t1&amp;quot;&lt;/li&gt;
  &lt;li class=&quot;t2&quot;&gt;This list item should have green background because its class is &amp;quot;t2&amp;quot;&lt;/li&gt;
  &lt;li class=&quot;t2&quot;&gt;
&lt;span class=&quot;t33&quot;&gt;This list item should have green background because 
        the inner SPAN does not match SPAN.t3&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
','code-xhtml' => '
<ul>
  <li class="t1">This list item should have green background because its class is &quot;t1&quot;</li>
  <li class="t2">This list item should have green background because its class is &quot;t2&quot;</li>
  <li class="t2">
<span class="t33">This list item should have green background because 
        the inner SPAN does not match SPAN.t3</span>
</li>
</ul>
'},'css3-modsel-14' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t1 t2&quot;&gt;This paragraph should have white background and a green thick solid
             border because it carries both classes t1 and t2&lt;/p&gt;
','escapedcode-css' => 'p { background-color : red ; border : thick solid red ; padding : 1em }
p.t1 { background-color : white }
p.t2 { border : thick solid lime }','escapedcode-html' => '
&lt;p class=&quot;t1 t2&quot;&gt;This paragraph should have white background and a green thick solid
             border because it carries both classes t1 and t2&lt;/p&gt;
','def' => 'More than one class selector','number' => '14','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : red ; border : thick solid red ; padding : 1em }
p.t1 { background-color : white }
p.t2 { border : thick solid lime }','author' => ['Daniel Glazman'],'code-html' => '
<p class="t1 t2">This paragraph should have white background and a green thick solid
             border because it carries both classes t1 and t2</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="t1 t2">This paragraph should have white background and a green thick solid
             border because it carries both classes t1 and t2</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p class=&quot;t1 t2&quot;&gt;This paragraph should have white background and a green thick solid
             border because it carries both classes t1 and t2&lt;/p&gt;
','code-xhtml' => '
<p class="t1 t2">This paragraph should have white background and a green thick solid
             border because it carries both classes t1 and t2</p>
'},'css3-modsel-1' => {'rev' => '1.0','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;The background of this list item should be green&lt;/li&gt;
  &lt;li&gt;The background of this second list item should be also green&lt;/li&gt;
&lt;/ul&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background of this paragraph should be green.&lt;/p&gt;
','escapedcode-css' => 'li,p { background-color : lime }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li&gt;The background of this list item should be green&lt;/li&gt;
  &lt;li&gt;The background of this second list item should be also green&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The background of this paragraph should be green.&lt;/p&gt;
','def' => 'Groups of selectors','number' => '1','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'li,p { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<ul>
  <li>The background of this list item should be green</li>
  <li>The background of this second list item should be also green</li>
</ul>
<p>The background of this paragraph should be green.</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li>The background of this list item should be green</li>
  <li>The background of this second list item should be also green</li>
</ul>
<p xmlns="http://www.w3.org/1999/xhtml">The background of this paragraph should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li&gt;The background of this list item should be green&lt;/li&gt;
  &lt;li&gt;The background of this second list item should be also green&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The background of this paragraph should be green.&lt;/p&gt;
','code-xhtml' => '
<ul>
  <li>The background of this list item should be green</li>
  <li>The background of this second list item should be also green</li>
</ul>
<p>The background of this paragraph should be green.</p>
'},'css3-modsel-2' => {'rev' => '1.1','escapedcode-xml' => '
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This address element should have a green background.&lt;/address&gt;
','escapedcode-css' => 'address { background-color: lime }','escapedcode-html' => '
&lt;address&gt;This address element should have a green background.&lt;/address&gt;
','def' => 'Type element selectors','number' => '2','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'address { background-color: lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<address>This address element should have a green background.</address>
','endTag' => '</address>','date' => '03-november-2001','code-xml' => '
<address xmlns="http://www.w3.org/1999/xhtml">This address element should have a green background.</address>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;address&gt;This address element should have a green background.&lt;/address&gt;
','code-xhtml' => '
<address>This address element should have a green background.</address>
'},'css3-modsel-3' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;span class=&quot;t1&quot;&gt;This paragraph, and all textual contents in the document, 
      should be green.&lt;/span&gt;
&lt;/p&gt;
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;t1&quot;&gt;This item should be green.&lt;/li&gt;
&lt;/ul&gt;
&lt;foo xmlns=&quot;http://www.example.org/a&quot;&gt;And this element, part of a non-HTML namespace,
      should be green too&lt;/foo&gt;
','escapedcode-css' => '* { color : lime }
ul, p { color : red }
*.t1 { color : lime }
','escapedcode-html' => '
&lt;p&gt;
&lt;span class=&quot;t1&quot;&gt;This paragraph, and all textual contents in the document, 
      should be green.&lt;/span&gt;
&lt;/p&gt;
&lt;ul&gt;
  &lt;li class=&quot;t1&quot;&gt;This item should be green.&lt;/li&gt;
&lt;/ul&gt;
&lt;foo xmlns=&quot;http://www.example.org/a&quot;&gt;And this element, part of a non-HTML namespace,
      should be green too&lt;/foo&gt;
','def' => 'Universal selector','number' => '3','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '* { color : lime }
ul, p { color : red }
*.t1 { color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<p>
<span class="t1">This paragraph, and all textual contents in the document, 
      should be green.</span>
</p>
<ul>
  <li class="t1">This item should be green.</li>
</ul>
<foo xmlns="http://www.example.org/a">And this element, part of a non-HTML namespace,
      should be green too</foo>
','endTag' => '</foo>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">
<span class="t1">This paragraph, and all textual contents in the document, 
      should be green.</span>
</p>
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li class="t1">This item should be green.</li>
</ul>
<foo xmlns="http://www.example.org/a">And this element, part of a non-HTML namespace,
      should be green too</foo>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p&gt;
&lt;span class=&quot;t1&quot;&gt;This paragraph, and all textual contents in the document, 
      should be green.&lt;/span&gt;
&lt;/p&gt;
&lt;ul&gt;
  &lt;li class=&quot;t1&quot;&gt;This item should be green.&lt;/li&gt;
&lt;/ul&gt;
&lt;foo xmlns=&quot;http://www.example.org/a&quot;&gt;And this element, part of a non-HTML namespace,
      should be green too&lt;/foo&gt;
','code-xhtml' => '
<p>
<span class="t1">This paragraph, and all textual contents in the document, 
      should be green.</span>
</p>
<ul>
  <li class="t1">This item should be green.</li>
</ul>
<foo xmlns="http://www.example.org/a">And this element, part of a non-HTML namespace,
      should be green too</foo>
'},'css3-modsel-130b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
div.stub *|*:not([*|title]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute existence selector with universal namespace','number' => '130b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
div.stub *|*:not([*|title]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
'},'css3-modsel-15' => {'rev' => '1.1','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li id=&quot;t1&quot;&gt;This list item should have a green background. because its ID is &amp;quot;t1&amp;quot;&lt;/li&gt;
  &lt;li id=&quot;t2&quot;&gt;This list item should have a green background. because its ID is &amp;quot;t2&amp;quot;&lt;/li&gt;
  &lt;li id=&quot;t3&quot;&gt;&lt;span id=&quot;t44&quot;&gt;This list item should have a green background. because the inner SPAN does not match &amp;quot;#t4&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
','escapedcode-css' => 'li { background-color : red }
#t1 { background-color : lime }
li#t2 { background-color : lime }
li#t3 { background-color : lime }
#t4 { background-color : red }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li id=&quot;t1&quot;&gt;This list item should have a green background. because its ID is &amp;quot;t1&amp;quot;&lt;/li&gt;
  &lt;li id=&quot;t2&quot;&gt;This list item should have a green background. because its ID is &amp;quot;t2&amp;quot;&lt;/li&gt;
  &lt;li id=&quot;t3&quot;&gt;&lt;span id=&quot;t44&quot;&gt;This list item should have a green background. because the inner SPAN does not match &amp;quot;#t4&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
','def' => 'ID selectors','number' => '15','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'li { background-color : red }
#t1 { background-color : lime }
li#t2 { background-color : lime }
li#t3 { background-color : lime }
#t4 { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<ul>
  <li id="t1">This list item should have a green background. because its ID is &quot;t1&quot;</li>
  <li id="t2">This list item should have a green background. because its ID is &quot;t2&quot;</li>
  <li id="t3"><span id="t44">This list item should have a green background. because the inner SPAN does not match &quot;#t4&quot;</span></li>
</ul>
','endTag' => '</ul>','date' => '19-november-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li id="t1">This list item should have a green background. because its ID is &quot;t1&quot;</li>
  <li id="t2">This list item should have a green background. because its ID is &quot;t2&quot;</li>
  <li id="t3"><span id="t44">This list item should have a green background. because the inner SPAN does not match &quot;#t4&quot;</span></li>
</ul>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li id=&quot;t1&quot;&gt;This list item should have a green background. because its ID is &amp;quot;t1&amp;quot;&lt;/li&gt;
  &lt;li id=&quot;t2&quot;&gt;This list item should have a green background. because its ID is &amp;quot;t2&amp;quot;&lt;/li&gt;
  &lt;li id=&quot;t3&quot;&gt;&lt;span id=&quot;t44&quot;&gt;This list item should have a green background. because the inner SPAN does not match &amp;quot;#t4&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
','code-xhtml' => '
<ul>
  <li id="t1">This list item should have a green background. because its ID is &quot;t1&quot;</li>
  <li id="t2">This list item should have a green background. because its ID is &quot;t2&quot;</li>
  <li id="t3"><span id="t44">This list item should have a green background. because the inner SPAN does not match &quot;#t4&quot;</span></li>
</ul>
'},'css3-modsel-4' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/p&gt;
','escapedcode-css' => '#foo { background-color : lime }
p { background-color : red }','escapedcode-html' => '
&lt;p id=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/p&gt;
','def' => 'Omitted universal selector','number' => '4','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '#foo { background-color : lime }
p { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<p id="foo">This paragraph should have a green background</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" id="foo">This paragraph should have a green background</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;p id=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/p&gt;
','code-xhtml' => '
<p id="foo">This paragraph should have a green background</p>
'},'css3-modsel-16' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;
&lt;a href=&quot;http://unvisited.example.org/css3-modsel-16/&quot;&gt;This link should have green background.&lt;/a&gt;
(Don&amp;#39;t follow this link.)
&lt;/p&gt;
','escapedcode-css' => 'p.test a { background-color : red }
p.test *:link { background-color : lime }','escapedcode-html' => '
&lt;p class=&quot;test&quot;&gt;
&lt;a href=&quot;http://unvisited.example.org/css3-modsel-16/&quot;&gt;This link should have green background.&lt;/a&gt;
(Don&amp;#39;t follow this link.)
&lt;/p&gt;
','def' => ':link pseudo-class','number' => '16','modulename' => 'css3-modsel','module' => 'W3C Selectors','historyneeded' => 1,'cssrules' => 'p.test a { background-color : red }
p.test *:link { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="test">
<a href="http://unvisited.example.org/css3-modsel-16/">This link should have green background.</a>
(Don&#39;t follow this link.)
</p>
','endTag' => '</p>','date' => '01-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="test">
<a href="http://unvisited.example.org/css3-modsel-16/">This link should have green background.</a>
(Don&#39;t follow this link.)
</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p class=&quot;test&quot;&gt;
&lt;a href=&quot;http://unvisited.example.org/css3-modsel-16/&quot;&gt;This link should have green background.&lt;/a&gt;
(Don&amp;#39;t follow this link.)
&lt;/p&gt;
','code-xhtml' => '
<p class="test">
<a href="http://unvisited.example.org/css3-modsel-16/">This link should have green background.</a>
(Don&#39;t follow this link.)
</p>
'},'css3-modsel-5' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;title&quot;&gt;This paragraph should have a green background because its TITLE
      attribute is set.&lt;/p&gt;
','escapedcode-css' => 'p { background-color : red }
p[title] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;title&quot;&gt;This paragraph should have a green background because its TITLE
      attribute is set.&lt;/p&gt;
','def' => 'Attribute existence selector','number' => '5','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : red }
p[title] { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<p title="title">This paragraph should have a green background because its TITLE
      attribute is set.</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="title">This paragraph should have a green background because its TITLE
      attribute is set.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;p title=&quot;title&quot;&gt;This paragraph should have a green background because its TITLE
      attribute is set.&lt;/p&gt;
','code-xhtml' => '
<p title="title">This paragraph should have a green background because its TITLE
      attribute is set.</p>
'},'css3-modsel-17' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;
&lt;a href=&quot;http://www.w3.org/&quot;&gt;You should see a green background assigned by the anchor.&lt;/a&gt;
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
&lt;/p&gt;
','escapedcode-css' => 'p.test a { background-color : red }
p.test *:visited { background-color : lime }','escapedcode-html' => '
&lt;p class=&quot;test&quot;&gt;
&lt;a href=&quot;http://www.w3.org/&quot;&gt;You should see a green background assigned by the anchor.&lt;/a&gt;
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
&lt;/p&gt;
','def' => ':visited pseudo-class','number' => '17','modulename' => 'css3-modsel','module' => 'W3C Selectors','historyneeded' => 1,'cssrules' => 'p.test a { background-color : red }
p.test *:visited { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p class="test">
<a href="http://www.w3.org/">You should see a green background assigned by the anchor.</a>
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
</p>
','endTag' => '</p>','date' => '01-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="test">
<a href="http://www.w3.org/">You should see a green background assigned by the anchor.</a>
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p class=&quot;test&quot;&gt;
&lt;a href=&quot;http://www.w3.org/&quot;&gt;You should see a green background assigned by the anchor.&lt;/a&gt;
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
&lt;/p&gt;
','code-xhtml' => '
<p class="test">
<a href="http://www.w3.org/">You should see a green background assigned by the anchor.</a>
(Note: You must have visited http://www.w3.org/ for this test to be valid.)
</p>
'},'css3-modsel-6' => {'rev' => '1.0','escapedcode-xml' => '
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;foo&quot;&gt;
&lt;span title=&quot;b&quot;&gt;This address should &lt;/span&gt;
  &lt;span title=&quot;aa&quot;&gt;have a green background because the
  selector in last rule does not apply to inner SPANs.
&lt;/span&gt;
&lt;/address&gt;
','escapedcode-css' => 'address { background-color : red }
address[title=&quot;foo&quot;] { background-color : lime }
span[title=&quot;a&quot;] { background-color : red }','escapedcode-html' => '
&lt;address title=&quot;foo&quot;&gt;
&lt;span title=&quot;b&quot;&gt;This address should &lt;/span&gt;
  &lt;span title=&quot;aa&quot;&gt;have a green background because the
  selector in last rule does not apply to inner SPANs.
&lt;/span&gt;
&lt;/address&gt;
','def' => 'Attribute value selector','number' => '6','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'address { background-color : red }
address[title="foo"] { background-color : lime }
span[title="a"] { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<address title="foo">
<span title="b">This address should </span>
  <span title="aa">have a green background because the
  selector in last rule does not apply to inner SPANs.
</span>
</address>
','endTag' => '</address>','date' => '11-july-2001','code-xml' => '
<address xmlns="http://www.w3.org/1999/xhtml" title="foo">
<span title="b">This address should </span>
  <span title="aa">have a green background because the
  selector in last rule does not apply to inner SPANs.
</span>
</address>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;address title=&quot;foo&quot;&gt;
&lt;span title=&quot;b&quot;&gt;This address should &lt;/span&gt;
  &lt;span title=&quot;aa&quot;&gt;have a green background because the
  selector in last rule does not apply to inner SPANs.
&lt;/span&gt;
&lt;/address&gt;
','code-xhtml' => '
<address title="foo">
<span title="b">This address should </span>
  <span title="aa">have a green background because the
  selector in last rule does not apply to inner SPANs.
</span>
</address>
'},'css3-modsel-123b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should be in green characters.&lt;/t&gt;
&lt;/div&gt;

','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub &gt; *|* { color : green ; display : block ;
                 margin-bottom : 1em }
div.stub &gt; *|*:not(|*) { color : red ! important }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should be in green characters.&lt;/t&gt;
&lt;/div&gt;

','def' => 'NEGATED universal selector with declared namespace','number' => '123','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub > *|* { color : green ; display : block ;
                 margin-bottom : 1em }
div.stub > *|*:not(|*) { color : red ! important }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<t xmlns="">This paragraph should be in green characters.</t>
</div>

','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<t xmlns="">This paragraph should be in green characters.</t>
</div>

','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should be in green characters.&lt;/t&gt;
&lt;/div&gt;

','code-xhtml' => '
<div class="stub">
<t xmlns="">This paragraph should be in green characters.</t>
</div>

'},'css3-modsel-18' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (&lt;strong&gt;here&lt;/strong&gt;) or its whitespace background, &lt;strong&gt;here&lt;/strong&gt;:&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;this anchor (&lt;strong&gt;here&lt;/strong&gt;)&lt;/a&gt; should turn to green when the pointing device hovers over it.&lt;/address&gt;
&lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt;The cells in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;green when&lt;/td&gt;
   &lt;td&gt;you hover&lt;/td&gt;
   &lt;td&gt;the pointing&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;device over&lt;/td&gt;
   &lt;td&gt;them (&lt;strong&gt;here&lt;/strong&gt;).&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;The rows in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;dark green&lt;/td&gt;
   &lt;td&gt;when the&lt;/td&gt;
   &lt;td&gt;pointing device&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;is over the&lt;/td&gt;
   &lt;td&gt;five pixel&lt;/td&gt;
   &lt;td&gt;border spacing&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;and when it is&lt;/td&gt;
   &lt;td&gt;over the cells.&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;Including &lt;strong&gt;here&lt;/strong&gt;,&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
   &lt;td&gt;blank cells.&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
','escapedcode-css' => 'p:hover { background-color : lime }
a:hover { background-color : lime }

tr:hover { background-color : green }
td:hover { background-color : lime }

table { border-spacing: 5px; }','escapedcode-html' => '
&lt;p&gt;The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (&lt;strong&gt;here&lt;/strong&gt;) or its whitespace background, &lt;strong&gt;here&lt;/strong&gt;:&lt;/p&gt;
&lt;address&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;this anchor (&lt;strong&gt;here&lt;/strong&gt;)&lt;/a&gt; should turn to green when the pointing device hovers over it.&lt;/address&gt;
&lt;table&gt;
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt;The cells in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;green when&lt;/td&gt;
   &lt;td&gt;you hover&lt;/td&gt;
   &lt;td&gt;the pointing&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;device over&lt;/td&gt;
   &lt;td&gt;them (&lt;strong&gt;here&lt;/strong&gt;).&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;The rows in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;dark green&lt;/td&gt;
   &lt;td&gt;when the&lt;/td&gt;
   &lt;td&gt;pointing device&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;is over the&lt;/td&gt;
   &lt;td&gt;five pixel&lt;/td&gt;
   &lt;td&gt;border spacing&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;and when it is&lt;/td&gt;
   &lt;td&gt;over the cells.&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;Including &lt;strong&gt;here&lt;/strong&gt;,&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
   &lt;td&gt;blank cells.&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
','def' => ':hover pseudo-class','number' => '18','modulename' => 'css3-modsel','cssrules' => 'p:hover { background-color : lime }
a:hover { background-color : lime }

tr:hover { background-color : green }
td:hover { background-color : lime }

table { border-spacing: 5px; }','module' => 'W3C Selectors','endTag' => '</table>','code-html' => '
<p>The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (<strong>here</strong>) or its whitespace background, <strong>here</strong>:</p>
<address>The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</address>
<table>
 <tbody>
  <tr>
   <td>The cells in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>green when</td>
   <td>you hover</td>
   <td>the pointing</td>
  </tr>
  <tr>
   <td>device over</td>
   <td>them (<strong>here</strong>).</td>
   <td></td>
  </tr>
  <tr>
   <td>The rows in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>dark green</td>
   <td>when the</td>
   <td>pointing device</td>
  </tr>
  <tr>
   <td>is over the</td>
   <td>five pixel</td>
   <td>border spacing</td>
  </tr>
  <tr>
   <td>and when it is</td>
   <td>over the cells.</td>
   <td></td>
  </tr>
  <tr>
   <td>Including <strong>here</strong>,</td>
   <td></td>
   <td>blank cells.</td>
  </tr>
 </tbody>
</table>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (<strong>here</strong>) or its whitespace background, <strong>here</strong>:</p>
<address xmlns="http://www.w3.org/1999/xhtml">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</address>
<table xmlns="http://www.w3.org/1999/xhtml">
 <tbody>
  <tr>
   <td>The cells in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>green when</td>
   <td>you hover</td>
   <td>the pointing</td>
  </tr>
  <tr>
   <td>device over</td>
   <td>them (<strong>here</strong>).</td>
   <td></td>
  </tr>
  <tr>
   <td>The rows in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>dark green</td>
   <td>when the</td>
   <td>pointing device</td>
  </tr>
  <tr>
   <td>is over the</td>
   <td>five pixel</td>
   <td>border spacing</td>
  </tr>
  <tr>
   <td>and when it is</td>
   <td>over the cells.</td>
   <td></td>
  </tr>
  <tr>
   <td>Including <strong>here</strong>,</td>
   <td></td>
   <td>blank cells.</td>
  </tr>
 </tbody>
</table>
','date' => '03-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (&lt;strong&gt;here&lt;/strong&gt;) or its whitespace background, &lt;strong&gt;here&lt;/strong&gt;:&lt;/p&gt;
&lt;address&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;this anchor (&lt;strong&gt;here&lt;/strong&gt;)&lt;/a&gt; should turn to green when the pointing device hovers over it.&lt;/address&gt;
&lt;table&gt;
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt;The cells in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;green when&lt;/td&gt;
   &lt;td&gt;you hover&lt;/td&gt;
   &lt;td&gt;the pointing&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;device over&lt;/td&gt;
   &lt;td&gt;them (&lt;strong&gt;here&lt;/strong&gt;).&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;The rows in&lt;/td&gt;
   &lt;td&gt;this table&lt;/td&gt;
   &lt;td&gt;should go&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;dark green&lt;/td&gt;
   &lt;td&gt;when the&lt;/td&gt;
   &lt;td&gt;pointing device&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;is over the&lt;/td&gt;
   &lt;td&gt;five pixel&lt;/td&gt;
   &lt;td&gt;border spacing&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;and when it is&lt;/td&gt;
   &lt;td&gt;over the cells.&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;Including &lt;strong&gt;here&lt;/strong&gt;,&lt;/td&gt;
   &lt;td&gt;&lt;/td&gt;
   &lt;td&gt;blank cells.&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
','interactive' => 1,'code-xhtml' => '
<p>The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (<strong>here</strong>) or its whitespace background, <strong>here</strong>:</p>
<address>The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</address>
<table>
 <tbody>
  <tr>
   <td>The cells in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>green when</td>
   <td>you hover</td>
   <td>the pointing</td>
  </tr>
  <tr>
   <td>device over</td>
   <td>them (<strong>here</strong>).</td>
   <td></td>
  </tr>
  <tr>
   <td>The rows in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>dark green</td>
   <td>when the</td>
   <td>pointing device</td>
  </tr>
  <tr>
   <td>is over the</td>
   <td>five pixel</td>
   <td>border spacing</td>
  </tr>
  <tr>
   <td>and when it is</td>
   <td>over the cells.</td>
   <td></td>
  </tr>
  <tr>
   <td>Including <strong>here</strong>,</td>
   <td></td>
   <td>blank cells.</td>
  </tr>
 </tbody>
</table>
'},'css3-modsel-7' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;a b c&quot;&gt;This paragraph should have green background because CLASS
  contains &amp;quot;b&amp;quot;&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;tot foo bar&quot;&gt;
&lt;span class=&quot;a c&quot;&gt;This address should also&lt;/span&gt;
  &lt;span class=&quot;a bb c&quot;&gt;have green background because the selector in the last
    rule does not apply to the inner SPANs.&lt;/span&gt;
&lt;/address&gt;
','escapedcode-css' => 'p { background-color : red }
p[class~=&quot;b&quot;] { background-color : lime }
address { background-color : red }
address[title~=&quot;foo&quot;] { background-color : lime }
span[class~=&quot;b&quot;] { background-color : red }','escapedcode-html' => '
&lt;p class=&quot;a b c&quot;&gt;This paragraph should have green background because CLASS
  contains &amp;quot;b&amp;quot;&lt;/p&gt;
&lt;address title=&quot;tot foo bar&quot;&gt;
&lt;span class=&quot;a c&quot;&gt;This address should also&lt;/span&gt;
  &lt;span class=&quot;a bb c&quot;&gt;have green background because the selector in the last
    rule does not apply to the inner SPANs.&lt;/span&gt;
&lt;/address&gt;
','def' => 'Attribute multivalue selector','number' => '7','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : red }
p[class~="b"] { background-color : lime }
address { background-color : red }
address[title~="foo"] { background-color : lime }
span[class~="b"] { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<p class="a b c">This paragraph should have green background because CLASS
  contains &quot;b&quot;</p>
<address title="tot foo bar">
<span class="a c">This address should also</span>
  <span class="a bb c">have green background because the selector in the last
    rule does not apply to the inner SPANs.</span>
</address>
','endTag' => '</address>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="a b c">This paragraph should have green background because CLASS
  contains &quot;b&quot;</p>
<address xmlns="http://www.w3.org/1999/xhtml" title="tot foo bar">
<span class="a c">This address should also</span>
  <span class="a bb c">have green background because the selector in the last
    rule does not apply to the inner SPANs.</span>
</address>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;p class=&quot;a b c&quot;&gt;This paragraph should have green background because CLASS
  contains &amp;quot;b&amp;quot;&lt;/p&gt;
&lt;address title=&quot;tot foo bar&quot;&gt;
&lt;span class=&quot;a c&quot;&gt;This address should also&lt;/span&gt;
  &lt;span class=&quot;a bb c&quot;&gt;have green background because the selector in the last
    rule does not apply to the inner SPANs.&lt;/span&gt;
&lt;/address&gt;
','code-xhtml' => '
<p class="a b c">This paragraph should have green background because CLASS
  contains &quot;b&quot;</p>
<address title="tot foo bar">
<span class="a c">This address should also</span>
  <span class="a bb c">have green background because the selector in the last
    rule does not apply to the inner SPANs.</span>
</address>
'},'css3-modsel-19' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;the anchor&lt;/a&gt;
   should turn to green when it is activated and come back to
   normal when it is released.&lt;/p&gt;
','escapedcode-css' => 'a:active { background-color : lime }','escapedcode-html' => '
&lt;p&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;the anchor&lt;/a&gt;
   should turn to green when it is activated and come back to
   normal when it is released.&lt;/p&gt;
','def' => ':active pseudo-class','number' => '19','modulename' => 'css3-modsel','cssrules' => 'a:active { background-color : lime }','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
<p>The background color of <a href="#foo">the anchor</a>
   should turn to green when it is activated and come back to
   normal when it is released.</p>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">The background color of <a href="#foo">the anchor</a>
   should turn to green when it is activated and come back to
   normal when it is released.</p>
','date' => '03-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;the anchor&lt;/a&gt;
   should turn to green when it is activated and come back to
   normal when it is released.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
<p>The background color of <a href="#foo">the anchor</a>
   should turn to green when it is activated and come back to
   normal when it is released.</p>
'},'css3-modsel-99b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t bar u&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
 &lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|foo~=&quot;bar&quot;], *|*[html|class~=&quot;bar&quot;] { background-color : red }
','escapedcode-html' => '
 &lt;p class=&quot;t bar u&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
 &lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Attribute space-separated value selector with declared namespace','number' => '99b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|foo~="bar"], *|*[html|class~="bar"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p class="t bar u">This paragraph should have a green background.</p>
 <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q>
 <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r>
 <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="t bar u">This paragraph should have a green background.</p>
 <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q>
 <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r>
 <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;p class=&quot;t bar u&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
 &lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
 <p class="t bar u">This paragraph should have a green background.</p>
 <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q>
 <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r>
 <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s>
'},'css3-modsel-8' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en-gb&quot;&gt;This paragraph should have green background because its language is &amp;quot;en-gb&amp;quot;&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;fi&quot;&gt;
&lt;span lang=&quot;en-us&quot;&gt;This address should also&lt;/span&gt;
  &lt;span lang=&quot;en-fr&quot;&gt;have green background because the language of the inner SPANs
     is not French.&lt;/span&gt;
&lt;/address&gt;
','escapedcode-css' => 'p { background-color : red }
p[lang|=&quot;en&quot;] { background-color : lime }
address { background-color : red }
address[lang=&quot;fi&quot;] { background-color : lime }
span[lang|=&quot;fr&quot;] { background-color : red }','escapedcode-html' => '
&lt;p lang=&quot;en-gb&quot;&gt;This paragraph should have green background because its language is &amp;quot;en-gb&amp;quot;&lt;/p&gt;
&lt;address lang=&quot;fi&quot;&gt;
&lt;span lang=&quot;en-us&quot;&gt;This address should also&lt;/span&gt;
  &lt;span lang=&quot;en-fr&quot;&gt;have green background because the language of the inner SPANs
     is not French.&lt;/span&gt;
&lt;/address&gt;
','def' => 'Attribute value selectors (hyphen-separated attributes)','number' => '8','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : red }
p[lang|="en"] { background-color : lime }
address { background-color : red }
address[lang="fi"] { background-color : lime }
span[lang|="fr"] { background-color : red }','author' => ['Daniel Glazman'],'code-html' => '
<p lang="en-gb">This paragraph should have green background because its language is &quot;en-gb&quot;</p>
<address lang="fi">
<span lang="en-us">This address should also</span>
  <span lang="en-fr">have green background because the language of the inner SPANs
     is not French.</span>
</address>
','endTag' => '</address>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" lang="en-gb">This paragraph should have green background because its language is &quot;en-gb&quot;</p>
<address xmlns="http://www.w3.org/1999/xhtml" lang="fi">
<span lang="en-us">This address should also</span>
  <span lang="en-fr">have green background because the language of the inner SPANs
     is not French.</span>
</address>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;p lang=&quot;en-gb&quot;&gt;This paragraph should have green background because its language is &amp;quot;en-gb&amp;quot;&lt;/p&gt;
&lt;address lang=&quot;fi&quot;&gt;
&lt;span lang=&quot;en-us&quot;&gt;This address should also&lt;/span&gt;
  &lt;span lang=&quot;en-fr&quot;&gt;have green background because the language of the inner SPANs
     is not French.&lt;/span&gt;
&lt;/address&gt;
','code-xhtml' => '
<p lang="en-gb">This paragraph should have green background because its language is &quot;en-gb&quot;</p>
<address lang="fi">
<span lang="en-us">This address should also</span>
  <span lang="en-fr">have green background because the language of the inner SPANs
     is not French.</span>
</address>
'},'css3-modsel-9' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;foobar&quot;&gt;This paragraph should have a green background&lt;br&gt;&lt;/br&gt;
because its title attribute begins with &amp;quot;foo&amp;quot;&lt;/p&gt;
','escapedcode-css' => 'p { background-color : red }
p[title^=&quot;foo&quot;] { background-color : lime }','escapedcode-html' => '
&lt;p title=&quot;foobar&quot;&gt;This paragraph should have a green background&lt;br&gt;
because its title attribute begins with &amp;quot;foo&amp;quot;&lt;/p&gt;
','def' => 'Substring matching attribute selector (beginning)','number' => '9','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color : red }
p[title^="foo"] { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<p title="foobar">This paragraph should have a green background<br>
because its title attribute begins with &quot;foo&quot;</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="foobar">This paragraph should have a green background<br></br>
because its title attribute begins with &quot;foo&quot;</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','escapedcode-xhtml' => '
&lt;p title=&quot;foobar&quot;&gt;This paragraph should have a green background&lt;br&gt;&lt;/br&gt;
because its title attribute begins with &amp;quot;foo&amp;quot;&lt;/p&gt;
','code-xhtml' => '
<p title="foobar">This paragraph should have a green background<br></br>
because its title attribute begins with &quot;foo&quot;</p>
'},'css3-modsel-116b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title$=&quot;tait&quot;] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on end without declared namespace','number' => '116b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title$="tait"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
'},'css3-modsel-109b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title$=&quot;tait&quot;] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on end with universal namespace','number' => '109b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title$="tait"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-90' => {'rev' => '1.1','escapedcode-xml' => '
&lt;blockquote xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be green.&lt;/p&gt;
','escapedcode-css' => 'p { color: red; }
blockquote ~ div + p { color: green; }','escapedcode-html' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','def' => 'Simple combination of direct and indirect adjacent combinators','number' => '90','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: red; }
blockquote ~ div + p { color: green; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<blockquote xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</blockquote>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<p xmlns="http://www.w3.org/1999/xhtml">This text should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','code-xhtml' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
'},'css3-modsel-91' => {'rev' => '1.0','escapedcode-xml' => '
&lt;testa xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/testa&gt;
','escapedcode-css' => '@namespace test url(http://www.example.org/a);
testa { background-color : red }
test|testa { background-color : lime }','escapedcode-html' => '
&lt;testa xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/testa&gt;
','def' => 'Type element selector with declared namespace','number' => '91','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace test url(http://www.example.org/a);
testa { background-color : red }
test|testa { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<testa xmlns="http://www.example.org/a">This paragraph should have a green background</testa>
','endTag' => '</testa>','date' => '11-july-2001','code-xml' => '
<testa xmlns="http://www.example.org/a">This paragraph should have a green background</testa>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;testa xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/testa&gt;
','code-xhtml' => '
<testa xmlns="http://www.example.org/a">This paragraph should have a green background</testa>
'},'css3-modsel-145a' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
 &lt;/test&gt; 
','escapedcode-css' => '
  line { display: block; }
  [type~=odd] { background: red; }
  line:nth-of-type(odd) { bacground: lime; }
  [hidden] { display: none; }
','escapedcode-html' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
 &lt;/test&gt; 
','def' => ':nth-of-type() pseudo-class with hidden elements','number' => '145a','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  line { display: block; }
  [type~=odd] { background: red; }
  line:nth-of-type(odd) { bacground: lime; }
  [hidden] { display: none; }
','author' => ['Ian Hickson'],'code-html' => '
 <test xmlns="http://www.example.org/">
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
 </test> 
','endTag' => '</test>','date' => '14-november-2001','code-xml' => '
 <test xmlns="http://www.example.org/">
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
 </test> 
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
 &lt;/test&gt; 
','code-xhtml' => '
 <test xmlns="http://www.example.org/">
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
 </test> 
'},'css3-modsel-92' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;myTest&quot;&gt;
&lt;testA xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/testA&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace test url(http://www.example.org/b);
div.myTest * { background-color : red }
div.myTest *|testA { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;myTest&quot;&gt;
&lt;testA xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/testA&gt;
&lt;/div&gt;
','def' => 'Type element selector with universal namespace','number' => '92','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace test url(http://www.example.org/b);
div.myTest * { background-color : red }
div.myTest *|testA { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<div class="myTest">
<testA xmlns="http://www.example.org/b">This paragraph should have a green background</testA>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="myTest">
<testA xmlns="http://www.example.org/b">This paragraph should have a green background</testA>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;myTest&quot;&gt;
&lt;testA xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/testA&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="myTest">
<testA xmlns="http://www.example.org/b">This paragraph should have a green background</testA>
</div>
'},'css3-modsel-145b' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
 &lt;/test&gt; 
','escapedcode-css' => '
  line { display: block; }
  [type~=odd] { background: lime ! important; }
  line:nth-of-type(odd) { bacground: red; }
  [hidden] { display: none; }
','escapedcode-html' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
 &lt;/test&gt; 
','def' => ':nth-of-type() pseudo-class with hidden elements','number' => '145b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  line { display: block; }
  [type~=odd] { background: lime ! important; }
  line:nth-of-type(odd) { bacground: red; }
  [hidden] { display: none; }
','author' => ['Ian Hickson'],'code-html' => '
 <test xmlns="http://www.example.org/">
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
 </test> 
','endTag' => '</test>','date' => '14-november-2001','code-xml' => '
 <test xmlns="http://www.example.org/">
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
 </test> 
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;even&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;odd&quot;&gt;This line should be green.&lt;/line&gt;
 &lt;/test&gt; 
','code-xhtml' => '
 <test xmlns="http://www.example.org/">
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
  <line type="even" hidden="hidden">This line should be unstyled.</line>
  <line type="odd" hidden="hidden">This line should be green.</line>
  <line type="even">This line should be unstyled.</line>
  <line type="odd">This line should be green.</line>
 </test> 
'},'css3-modsel-93' => {'rev' => '1.1','escapedcode-xml' => '
&lt;testA&gt;This paragraph has no declared namespace and should have a green background.&lt;/testA&gt;
','escapedcode-css' => '@namespace test url(http://www.example.org/b);
*|testA { background-color : red }
|testA {background-color : lime }','escapedcode-html' => '
&lt;testA xmlns=&quot;&quot;&gt;This paragraph has no declared namespace and should have a green background.&lt;/testA&gt;
','def' => 'Type element selector without declared namespace','number' => '93','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace test url(http://www.example.org/b);
*|testA { background-color : red }
|testA {background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<testA xmlns="">This paragraph has no declared namespace and should have a green background.</testA>
','endTag' => '</testA>','date' => '13-november-2001','code-xml' => '
<testA>This paragraph has no declared namespace and should have a green background.</testA>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;testA xmlns=&quot;&quot;&gt;This paragraph has no declared namespace and should have a green background.&lt;/testA&gt;
','code-xhtml' => '
<testA xmlns="">This paragraph has no declared namespace and should have a green background.</testA>
'},'css3-modsel-94' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This line should be unstyled.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/q&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyleed.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
p, q { display : block ; margin-bottom : 1em }
b|* { background-color : lime }','escapedcode-html' => '
&lt;p&gt;This line should be unstyled.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/q&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyleed.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Universal selector with declared namespace','number' => '94','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
p, q { display : block ; margin-bottom : 1em }
b|* { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p>This line should be unstyled.</p>
<p xmlns="http://www.example.org/b">This line should have a green background.</p>
<q xmlns="http://www.example.org/b">This line should have a green background.</q>
<p xmlns="http://www.example.org/a">This line should be unstyleed.</p>
<p xmlns="http://www.example.org/b">This line should have a green background.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This line should be unstyled.</p>
<p xmlns="http://www.example.org/b">This line should have a green background.</p>
<q xmlns="http://www.example.org/b">This line should have a green background.</q>
<p xmlns="http://www.example.org/a">This line should be unstyleed.</p>
<p xmlns="http://www.example.org/b">This line should have a green background.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p&gt;This line should be unstyled.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/q&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyleed.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
<p>This line should be unstyled.</p>
<p xmlns="http://www.example.org/b">This line should have a green background.</p>
<q xmlns="http://www.example.org/b">This line should have a green background.</q>
<p xmlns="http://www.example.org/a">This line should be unstyleed.</p>
<p xmlns="http://www.example.org/b">This line should have a green background.</p>
'},'css3-modsel-140' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : red }
div.stub *|*:not([|lang|=&quot;foo-bar&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute dash-separated value selector without declared namespace','number' => '140','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : red }
div.stub *|*:not([|lang|="foo-bar"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p lang="foo-bar">This paragraph should be unstyled.</p>
<address lang="foo-b">This address should have a green background.</address>
<address lang="foo-barbar-toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p lang="foo-bar">This paragraph should be unstyled.</p>
<address lang="foo-b">This address should have a green background.</address>
<address lang="foo-barbar-toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p lang="foo-bar">This paragraph should be unstyled.</p>
<address lang="foo-b">This address should have a green background.</address>
<address lang="foo-barbar-toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r>
</div>
'},'css3-modsel-95' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;
  &lt;p&gt;This line should  have a green background&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;q xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/q&gt;
  &lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;foo xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/foo&gt;
 &lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.test * { background-color : red ; display : block ; margin-bottom : 1em }
div.test *|* { background-color : lime }','escapedcode-html' => '
 &lt;div class=&quot;test&quot;&gt;
  &lt;p&gt;This line should  have a green background&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;q xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/q&gt;
  &lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;foo xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/foo&gt;
 &lt;/div&gt;
','def' => 'Universal selector with universal namespace','number' => '95','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.test * { background-color : red ; display : block ; margin-bottom : 1em }
div.test *|* { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="test">
  <p>This line should  have a green background</p>
  <p xmlns="http://www.example.org/b">This line should have a green background</p>
  <q xmlns="http://www.example.org/b">This line should have a green background</q>
  <p xmlns="http://www.example.org/a">This line should have a green background</p>
  <foo xmlns="http://www.example.org/b">This line should have a green background</foo>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="test">
  <p>This line should  have a green background</p>
  <p xmlns="http://www.example.org/b">This line should have a green background</p>
  <q xmlns="http://www.example.org/b">This line should have a green background</q>
  <p xmlns="http://www.example.org/a">This line should have a green background</p>
  <foo xmlns="http://www.example.org/b">This line should have a green background</foo>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;div class=&quot;test&quot;&gt;
  &lt;p&gt;This line should  have a green background&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;q xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/q&gt;
  &lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;foo xmlns=&quot;http://www.example.org/b&quot;&gt;This line should have a green background&lt;/foo&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="test">
  <p>This line should  have a green background</p>
  <p xmlns="http://www.example.org/b">This line should have a green background</p>
  <q xmlns="http://www.example.org/b">This line should have a green background</q>
  <p xmlns="http://www.example.org/a">This line should have a green background</p>
  <foo xmlns="http://www.example.org/b">This line should have a green background</foo>
 </div>
'},'css3-modsel-138b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title=&quot;si on chantait&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute value selector without declared namespace','number' => '138b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : lime ! important }
div.stub *|*:not([|title="si on chantait"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-141' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title^=&quot;si on&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on beginning without declared namespace','number' => '141','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title^="si on"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-96' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;
 &lt;p&gt;This line should be unstyled.&lt;/p&gt;
 &lt;elementA xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyled.&lt;/elementA&gt;
 &lt;elementB xmlns=&quot;http://www.example.org/b&quot;&gt;This line should be unstyled.&lt;/elementB&gt;
 &lt;div class=&quot;green&quot;&gt;
  &lt;p xmlns=&quot;&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;elementA xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementA&gt;
  &lt;elementB xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementB&gt;
 &lt;/div&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.green * { background-color : red }
div.test * { display : block ; margin-bottom : 1em }
div.test |* { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;test&quot;&gt;
 &lt;p&gt;This line should be unstyled.&lt;/p&gt;
 &lt;elementA xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyled.&lt;/elementA&gt;
 &lt;elementB xmlns=&quot;http://www.example.org/b&quot;&gt;This line should be unstyled.&lt;/elementB&gt;
 &lt;div class=&quot;green&quot;&gt;
  &lt;p xmlns=&quot;&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;elementA xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementA&gt;
  &lt;elementB xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementB&gt;
 &lt;/div&gt;
&lt;/div&gt;
','def' => 'Universal selector without declared namespace','number' => '96','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.green * { background-color : red }
div.test * { display : block ; margin-bottom : 1em }
div.test |* { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="test">
 <p>This line should be unstyled.</p>
 <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA>
 <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB>
 <div class="green">
  <p xmlns="">This line should have a green background</p>
  <elementA xmlns="">This line should have a green background</elementA>
  <elementB xmlns="">This line should have a green background</elementB>
 </div>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="test">
 <p>This line should be unstyled.</p>
 <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA>
 <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB>
 <div class="green">
  <p xmlns="">This line should have a green background</p>
  <elementA xmlns="">This line should have a green background</elementA>
  <elementB xmlns="">This line should have a green background</elementB>
 </div>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;test&quot;&gt;
 &lt;p&gt;This line should be unstyled.&lt;/p&gt;
 &lt;elementA xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyled.&lt;/elementA&gt;
 &lt;elementB xmlns=&quot;http://www.example.org/b&quot;&gt;This line should be unstyled.&lt;/elementB&gt;
 &lt;div class=&quot;green&quot;&gt;
  &lt;p xmlns=&quot;&quot;&gt;This line should have a green background&lt;/p&gt;
  &lt;elementA xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementA&gt;
  &lt;elementB xmlns=&quot;&quot;&gt;This line should have a green background&lt;/elementB&gt;
 &lt;/div&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="test">
 <p>This line should be unstyled.</p>
 <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA>
 <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB>
 <div class="green">
  <p xmlns="">This line should have a green background</p>
  <elementA xmlns="">This line should have a green background</elementA>
  <elementB xmlns="">This line should have a green background</elementB>
 </div>
</div>
'},'css3-modsel-142' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title$=&quot;tait&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on end without declared namespace','number' => '142','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title$="tait"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-97' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : red }
*[a|title] {background-color : lime }
','escapedcode-html' => '
 &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute existence selector with declared namespace','number' => '97','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|q { background-color : red }
*[a|title] {background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p title="a paragraph">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q>
 <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" title="a paragraph">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q>
 <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
 <p title="a paragraph">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q>
 <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r>
'},'css3-modsel-143' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title*=&quot;on ch&quot;]) { background-color : lime }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','def' => 'NEGATED Substring matching attribute selector on middle without declared namespace','number' => '143','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|q, *|s, *|t { background-color : red }
div.stub *|*:not([|title*="on ch"]) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/t&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="si on chantait">This paragraph should be unstyled.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t>
</div>
'},'css3-modsel-98' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/q&gt;
 &lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : red }
*[a|title=&quot;foo&quot;] {background-color : lime }
','escapedcode-html' => '
 &lt;p title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/q&gt;
 &lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','def' => 'Attribute value selector with declared namespace','number' => '98','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : red }
*[a|title="foo"] {background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p title="foo">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q>
 <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s>
 <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r>
','endTag' => '</r>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" title="foo">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q>
 <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s>
 <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;p title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should have a green background&lt;/q&gt;
 &lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
 &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
','code-xhtml' => '
 <p title="foo">This paragraph should be unstyled.</p>
 <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q>
 <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s>
 <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r>
'},'css3-modsel-144' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;p&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => 'div :not(:enabled):not(:disabled) { background: lime; }
p { background : red;}','escapedcode-html' => '
 &lt;div&gt;
  &lt;p&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;/div&gt;
','def' => 'NEGATED :enabled:disabled pseudo-classes','number' => '144','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div :not(:enabled):not(:disabled) { background: lime; }
p { background : red;}','author' => ['Ian Hickson'],'code-html' => '
 <div>
  <p>This paragraph should have a green background.</p>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml">
  <p>This paragraph should have a green background.</p>
 </div>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;div&gt;
  &lt;p&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div>
  <p>This paragraph should have a green background.</p>
 </div>
'},'css3-modsel-99' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t bar u&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
 &lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|foo~=&quot;bar&quot;], *|*[html|class~=&quot;bar&quot;] { background-color : lime }
','escapedcode-html' => '
 &lt;p class=&quot;t bar u&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
 &lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Attribute space-separated value selector with declared namespace','number' => '99','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : red }
*|*[a|foo~="bar"], *|*[html|class~="bar"] { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p class="t bar u">This paragraph should have a green background.</p>
 <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q>
 <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r>
 <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="t bar u">This paragraph should have a green background.</p>
 <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q>
 <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r>
 <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;p class=&quot;t bar u&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
 &lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
 &lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
 &lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
 <p class="t bar u">This paragraph should have a green background.</p>
 <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q>
 <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r>
 <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s>
'},'css3-modsel-148' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
 p { background: lime; }
 p:empty { background: red; }
','escapedcode-html' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
','def' => ':empty pseudo-class and text','number' => '148','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
 p { background: lime; }
 p:empty { background: red; }
','author' => ['Ian Hickson'],'code-html' => '
 <p>This line should have a green background.</p>
','endTag' => '</p>','date' => '15-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p>This line should have a green background.</p>
'},'css3-modsel-149' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/address&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','escapedcode-css' => '
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
','escapedcode-html' => '
 &lt;address&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','def' => ':empty pseudo-class and empty elements','number' => '149','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
','author' => ['Ian Hickson'],'code-html' => '
 <address></address>
 <div class="text">This line should have a green background.</div>
','endTag' => '</div>','date' => '15-november-2001','code-xml' => '
 <address xmlns="http://www.w3.org/1999/xhtml"></address>
 <div xmlns="http://www.w3.org/1999/xhtml" class="text">This line should have a green background.</div>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;address&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','code-xhtml' => '
 <address></address>
 <div class="text">This line should have a green background.</div>
'},'css3-modsel-102b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; xmlns:b=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|title$=&quot;tait&quot;], *|*[html|title$=&quot;tait&quot;] { background-color : red }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; xmlns:b=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Substring matching attribute value selector on end with declared namespace','number' => '102b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|title$="tait"], *|*[html|title$="tait"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; xmlns:a=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; xmlns:b=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
'},'css3-modsel-20' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;anchors&lt;/a&gt;
  in this page should turn &lt;a href=&quot;#foo&quot;&gt;to green&lt;/a&gt; when they have the
  &lt;a href=&quot;#foo&quot;&gt;focus&lt;/a&gt;.&lt;/p&gt;
','escapedcode-css' => 'a:focus { background-color : lime }','escapedcode-html' => '
&lt;p&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;anchors&lt;/a&gt;
  in this page should turn &lt;a href=&quot;#foo&quot;&gt;to green&lt;/a&gt; when they have the
  &lt;a href=&quot;#foo&quot;&gt;focus&lt;/a&gt;.&lt;/p&gt;
','def' => ':focus pseudo-class','number' => '20','modulename' => 'css3-modsel','cssrules' => 'a:focus { background-color : lime }','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
<p>The background color of <a href="#foo">anchors</a>
  in this page should turn <a href="#foo">to green</a> when they have the
  <a href="#foo">focus</a>.</p>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">The background color of <a href="#foo">anchors</a>
  in this page should turn <a href="#foo">to green</a> when they have the
  <a href="#foo">focus</a>.</p>
','date' => '03-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;The background color of &lt;a href=&quot;#foo&quot;&gt;anchors&lt;/a&gt;
  in this page should turn &lt;a href=&quot;#foo&quot;&gt;to green&lt;/a&gt; when they have the
  &lt;a href=&quot;#foo&quot;&gt;focus&lt;/a&gt;.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
<p>The background color of <a href="#foo">anchors</a>
  in this page should turn <a href="#foo">to green</a> when they have the
  <a href="#foo">focus</a>.</p>
'},'css3-modsel-78b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This &lt;span&gt;paragraph should&lt;/span&gt; be unstyled.&lt;/p&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
.t1 td:not(:last-child) { background-color : red }
p &gt; *:not(:last-child) { background-color : red }
table.t1 td { border : thin black solid }
','escapedcode-html' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This &lt;span&gt;paragraph should&lt;/span&gt; be unstyled.&lt;/p&gt;
','def' => 'NEGATED :last-child pseudo-class','number' => '78b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
.t1 td:not(:last-child) { background-color : red }
p > *:not(:last-child) { background-color : red }
table.t1 td { border : thin black solid }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>1.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>2.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>3.3</td>
   </tr>
  </table>
 </div>
 <p>This <span>paragraph should</span> be unstyled.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" align="center">
  <table class="t1" border="1">
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>1.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>2.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>3.3</td>
   </tr>
  </table>
 </div>
 <p xmlns="http://www.w3.org/1999/xhtml">This <span>paragraph should</span> be unstyled.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div align=&quot;center&quot;&gt;
  &lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;p&gt;This &lt;span&gt;paragraph should&lt;/span&gt; be unstyled.&lt;/p&gt;
','code-xhtml' => '
 <div align="center">
  <table class="t1" border="1">
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>1.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>2.3</td>
   </tr>
   <tr>
    <td class="green">green cell</td>
    <td class="green">green cell</td>
    <td>3.3</td>
   </tr>
  </table>
 </div>
 <p>This <span>paragraph should</span> be unstyled.</p>
'},'css3-modsel-21' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;first&quot;&gt;This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow &lt;a href=&quot;#second&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;second&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       &lt;a href=&quot;#third&quot;&gt;this link&lt;/a&gt;, it should return to being unstyled and the 
       background of the paragraph below should become green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;third&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       &lt;a href=&quot;#missing&quot;&gt;this link&lt;/a&gt;, the three paragraphs
       should all return to being unstyled.&lt;/p&gt;
','escapedcode-css' => 'p:target { background-color : lime }','escapedcode-html' => '
&lt;p id=&quot;first&quot;&gt;This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow &lt;a href=&quot;#second&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p id=&quot;second&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       &lt;a href=&quot;#third&quot;&gt;this link&lt;/a&gt;, it should return to being unstyled and the 
       background of the paragraph below should become green.&lt;/p&gt;
&lt;p id=&quot;third&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       &lt;a href=&quot;#missing&quot;&gt;this link&lt;/a&gt;, the three paragraphs
       should all return to being unstyled.&lt;/p&gt;
','def' => ':target pseudo-class','number' => '21','modulename' => 'css3-modsel','cssrules' => 'p:target { background-color : lime }','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
<p id="first">This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow <a href="#second">this link</a>.</p>
<p id="second">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       <a href="#third">this link</a>, it should return to being unstyled and the 
       background of the paragraph below should become green.</p>
<p id="third">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       <a href="#missing">this link</a>, the three paragraphs
       should all return to being unstyled.</p>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" id="first">This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow <a href="#second">this link</a>.</p>
<p xmlns="http://www.w3.org/1999/xhtml" id="second">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       <a href="#third">this link</a>, it should return to being unstyled and the 
       background of the paragraph below should become green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" id="third">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       <a href="#missing">this link</a>, the three paragraphs
       should all return to being unstyled.</p>
','date' => '03-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p id=&quot;first&quot;&gt;This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow &lt;a href=&quot;#second&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p id=&quot;second&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       &lt;a href=&quot;#third&quot;&gt;this link&lt;/a&gt;, it should return to being unstyled and the 
       background of the paragraph below should become green.&lt;/p&gt;
&lt;p id=&quot;third&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       &lt;a href=&quot;#missing&quot;&gt;this link&lt;/a&gt;, the three paragraphs
       should all return to being unstyled.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
<p id="first">This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow <a href="#second">this link</a>.</p>
<p id="second">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       <a href="#third">this link</a>, it should return to being unstyled and the 
       background of the paragraph below should become green.</p>
<p id="third">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       <a href="#missing">this link</a>, the three paragraphs
       should all return to being unstyled.</p>
'},'css3-modsel-22' => {'rev' => '1.0','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li lang=&quot;en-GB&quot;&gt;This list item should be green because its language is
        British English&lt;/li&gt;
  &lt;li lang=&quot;en-GB-wa&quot;&gt;This list item should be green because its language
        is British English (Wales)&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li lang=&quot;en-US&quot;&gt;This list item should NOT be green because its language
       is US English&lt;/li&gt;
  &lt;li lang=&quot;fr&quot;&gt;This list item should NOT be green because its language is
       French&lt;/li&gt;
&lt;/ol&gt;
','escapedcode-css' => 'ul &gt; li { background-color : red }
li:lang(en-GB) { background-color : lime }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li lang=&quot;en-GB&quot;&gt;This list item should be green because its language is
        British English&lt;/li&gt;
  &lt;li lang=&quot;en-GB-wa&quot;&gt;This list item should be green because its language
        is British English (Wales)&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li lang=&quot;en-US&quot;&gt;This list item should NOT be green because its language
       is US English&lt;/li&gt;
  &lt;li lang=&quot;fr&quot;&gt;This list item should NOT be green because its language is
       French&lt;/li&gt;
&lt;/ol&gt;
','def' => ':lang() pseudo-class','number' => '22','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'ul > li { background-color : red }
li:lang(en-GB) { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<ul>
  <li lang="en-GB">This list item should be green because its language is
        British English</li>
  <li lang="en-GB-wa">This list item should be green because its language
        is British English (Wales)</li>
</ul>
<ol>
  <li lang="en-US">This list item should NOT be green because its language
       is US English</li>
  <li lang="fr">This list item should NOT be green because its language is
       French</li>
</ol>
','endTag' => '</ol>','date' => '12-november-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li lang="en-GB">This list item should be green because its language is
        British English</li>
  <li lang="en-GB-wa">This list item should be green because its language
        is British English (Wales)</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li lang="en-US">This list item should NOT be green because its language
       is US English</li>
  <li lang="fr">This list item should NOT be green because its language is
       French</li>
</ol>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li lang=&quot;en-GB&quot;&gt;This list item should be green because its language is
        British English&lt;/li&gt;
  &lt;li lang=&quot;en-GB-wa&quot;&gt;This list item should be green because its language
        is British English (Wales)&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li lang=&quot;en-US&quot;&gt;This list item should NOT be green because its language
       is US English&lt;/li&gt;
  &lt;li lang=&quot;fr&quot;&gt;This list item should NOT be green because its language is
       French&lt;/li&gt;
&lt;/ol&gt;
','code-xhtml' => '
<ul>
  <li lang="en-GB">This list item should be green because its language is
        British English</li>
  <li lang="en-GB-wa">This list item should be green because its language
        is British English (Wales)</li>
</ul>
<ol>
  <li lang="en-US">This list item should NOT be green because its language
       is US English</li>
  <li lang="fr">This list item should NOT be green because its language is
       French</li>
</ol>
'},'css3-modsel-23' => {'rev' => '1.0','escapedcode-xml' => '
&lt;button xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;A button (enabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/br&gt;
&lt;input xmlns=&quot;http://www.w3.org/1999/xhtml&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (enabled) with green background&quot;&gt;&lt;/input&gt;
','escapedcode-css' => 'button { background-color : red }
input { background-color : red }
button:enabled { background-color : lime }
input:enabled { background-color : lime }','escapedcode-html' => '
&lt;button&gt;A button (enabled) with green background&lt;/button&gt;
&lt;br&gt;
&lt;input type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (enabled) with green background&quot;&gt;
','def' => ':enabled pseudo-class','number' => '23','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'button { background-color : red }
input { background-color : red }
button:enabled { background-color : lime }
input:enabled { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<button>A button (enabled) with green background</button>
<br>
<input type="text" size="36" value="a text area (enabled) with green background">
','endTag' => '</input>','date' => '22-october-2001','code-xml' => '
<button xmlns="http://www.w3.org/1999/xhtml">A button (enabled) with green background</button>
<br xmlns="http://www.w3.org/1999/xhtml"></br>
<input xmlns="http://www.w3.org/1999/xhtml" type="text" size="36" value="a text area (enabled) with green background"></input>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;button&gt;A button (enabled) with green background&lt;/button&gt;
&lt;br&gt;&lt;/br&gt;
&lt;input type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (enabled) with green background&quot;&gt;&lt;/input&gt;
','code-xhtml' => '
<button>A button (enabled) with green background</button>
<br></br>
<input type="text" size="36" value="a text area (enabled) with green background"></input>
'},'css3-modsel-24' => {'rev' => '1.0','escapedcode-xml' => '
&lt;button xmlns=&quot;http://www.w3.org/1999/xhtml&quot; disabled=&quot;disabled&quot;&gt;A button (disabled) with green background&lt;/button&gt;
&lt;br xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/br&gt;
&lt;input xmlns=&quot;http://www.w3.org/1999/xhtml&quot; disabled=&quot;disabled&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (disabled) with green background&quot;&gt;&lt;/input&gt;
','escapedcode-css' => 'button { background-color : red }
input { background-color : red }
button:disabled { background-color : lime }
input:disabled { background-color : lime }','escapedcode-html' => '
&lt;button disabled=&quot;disabled&quot;&gt;A button (disabled) with green background&lt;/button&gt;
&lt;br&gt;
&lt;input disabled=&quot;disabled&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (disabled) with green background&quot;&gt;
','def' => ':disabled pseudo-class','number' => '24','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'button { background-color : red }
input { background-color : red }
button:disabled { background-color : lime }
input:disabled { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<button disabled="disabled">A button (disabled) with green background</button>
<br>
<input disabled="disabled" type="text" size="36" value="a text area (disabled) with green background">
','endTag' => '</input>','date' => '22-october-2001','code-xml' => '
<button xmlns="http://www.w3.org/1999/xhtml" disabled="disabled">A button (disabled) with green background</button>
<br xmlns="http://www.w3.org/1999/xhtml"></br>
<input xmlns="http://www.w3.org/1999/xhtml" disabled="disabled" type="text" size="36" value="a text area (disabled) with green background"></input>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;button disabled=&quot;disabled&quot;&gt;A button (disabled) with green background&lt;/button&gt;
&lt;br&gt;&lt;/br&gt;
&lt;input disabled=&quot;disabled&quot; type=&quot;text&quot; size=&quot;36&quot; value=&quot;a text area (disabled) with green background&quot;&gt;&lt;/input&gt;
','code-xhtml' => '
<button disabled="disabled">A button (disabled) with green background</button>
<br></br>
<input disabled="disabled" type="text" size="36" value="a text area (disabled) with green background"></input>
'},'css3-modsel-25' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot;&gt;&lt;/input&gt; The checkbox should have a green background&lt;/p&gt;
','escapedcode-css' => 'input { background-color : red }
input:checked { background-color : lime}','escapedcode-html' => '
&lt;p&gt;
&lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot;&gt; The checkbox should have a green background&lt;/p&gt;
','def' => ':checked pseudo-class','number' => '25','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'input { background-color : red }
input:checked { background-color : lime}','author' => ['Daniel Glazman'],'code-html' => '
<p>
<input type="checkbox" checked="checked"> The checkbox should have a green background</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">
<input type="checkbox" checked="checked"></input> The checkbox should have a green background</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;
&lt;input type=&quot;checkbox&quot; checked=&quot;checked&quot;&gt;&lt;/input&gt; The checkbox should have a green background&lt;/p&gt;
','code-xhtml' => '
<p>
<input type="checkbox" checked="checked"></input> The checkbox should have a green background</p>
'},'css3-modsel-131b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
div.stub *|*:not([*|title=&quot;si on chantait&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute value selector with universal namespace','number' => '131b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : lime ! important }
div.stub *|*:not([*|title="si on chantait"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
'},'css3-modsel-27' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;The background of the document should be green&lt;/p&gt;
','escapedcode-css' => 'html { background-color : red }
*:root { background-color: lime }','escapedcode-html' => '
&lt;p&gt;The background of the document should be green&lt;/p&gt;
','def' => ':root pseudo-class','number' => '27','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'html { background-color : red }
*:root { background-color: lime }','author' => ['Daniel Glazman'],'code-html' => '
<p>The background of the document should be green</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">The background of the document should be green</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;The background of the document should be green&lt;/p&gt;
','code-xhtml' => '
<p>The background of the document should be green</p>
'},'css3-modsel-28' => {'rev' => '1.0','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;red&quot; foo=&quot;foo&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
ul &gt; li:nth-child(odd) { background-color : lime }
ol &gt; li:nth-child(even) { background-color : lime }
table.t1 tr:nth-child(-n+4) { background-color : lime }
table.t2 td:nth-child(3n+1) { background-color : lime }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li class=&quot;red&quot; foo=&quot;foo&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => ':nth-child() pseudo-class','number' => '28','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
ul > li:nth-child(odd) { background-color : lime }
ol > li:nth-child(even) { background-color : lime }
table.t1 tr:nth-child(-n+4) { background-color : lime }
table.t2 td:nth-child(3n+1) { background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<ul>
  <li class="red" foo="foo">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="red">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="red">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="red">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="red">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="red">green cell</td>
<td>1.2</td>
<td>1.3</td>
      <td class="red">green cell</td>
<td>1.5</td>
<td>1.6</td>
      <td class="red">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>2.2</td>
<td>2.3</td>
      <td class="red">green cell</td>
<td>2.5</td>
<td>2.6</td>
      <td class="red">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>3.2</td>
<td>3.3</td>
      <td class="red">green cell</td>
<td>3.5</td>
<td>3.6</td>
      <td class="red">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li class="red" foo="foo">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr class="red">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="red">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="red">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="red">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="red">green cell</td>
<td>1.2</td>
<td>1.3</td>
      <td class="red">green cell</td>
<td>1.5</td>
<td>1.6</td>
      <td class="red">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>2.2</td>
<td>2.3</td>
      <td class="red">green cell</td>
<td>2.5</td>
<td>2.6</td>
      <td class="red">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>3.2</td>
<td>3.3</td>
      <td class="red">green cell</td>
<td>3.5</td>
<td>3.6</td>
      <td class="red">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li class=&quot;red&quot; foo=&quot;foo&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li class="red" foo="foo">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="red">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="red">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="red">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="red">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="red">green cell</td>
<td>1.2</td>
<td>1.3</td>
      <td class="red">green cell</td>
<td>1.5</td>
<td>1.6</td>
      <td class="red">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>2.2</td>
<td>2.3</td>
      <td class="red">green cell</td>
<td>2.5</td>
<td>2.6</td>
      <td class="red">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="red">green cell</td>
<td>3.2</td>
<td>3.3</td>
      <td class="red">green cell</td>
<td>3.5</td>
<td>3.6</td>
      <td class="red">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
'},'css3-modsel-124b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
div.stub *:not([a|title=&quot;foo&quot;]) {background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute value selector with declared namespace','number' => '124','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
div.stub *:not([a|title="foo"]) {background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p title="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q>
<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s>
<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p title="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q>
<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s>
<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foo&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;s xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;foobar&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p title="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q>
<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s>
<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r>
</div>
'},'css3-modsel-29' => {'rev' => '1.1','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
ul &gt; li:nth-last-child(odd) { background-color : green }
ol &gt; li:nth-last-child(even) { background-color : green }
table.t1 tr:nth-last-child(-n+4) { background-color : green }
table.t2 td:nth-last-child(3n+1) { background-color : green }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => ':nth-last-child() pseudo-class','number' => '29','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
ul > li:nth-last-child(odd) { background-color : green }
ol > li:nth-last-child(even) { background-color : green }
table.t1 tr:nth-last-child(-n+4) { background-color : green }
table.t2 td:nth-last-child(3n+1) { background-color : green }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<ul>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="red">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="red">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="red">
<td>Green row : 5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr class="red">
<td>Green row : 6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="red">green cell</td>
<td>1.3</td>
      <td>1.4</td>
<td class="red">green cell</td>
<td>1.6</td>
      <td>1.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="red">green cell</td>
<td>2.3</td>
      <td>2.4</td>
<td class="red">green cell</td>
<td>2.6</td>
      <td>2.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="red">green cell</td>
<td>3.3</td>
      <td>3.4</td>
<td class="red">green cell</td>
<td>3.6</td>
      <td>3.7</td>
<td class="red">green cell</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="red">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="red">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="red">
<td>Green row : 5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr class="red">
<td>Green row : 6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="red">green cell</td>
<td>1.3</td>
      <td>1.4</td>
<td class="red">green cell</td>
<td>1.6</td>
      <td>1.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="red">green cell</td>
<td>2.3</td>
      <td>2.4</td>
<td class="red">green cell</td>
<td>2.6</td>
      <td>2.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="red">green cell</td>
<td>3.3</td>
      <td>3.4</td>
<td class="red">green cell</td>
<td>3.6</td>
      <td>3.7</td>
<td class="red">green cell</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;red&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;red&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;red&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li>First list item</li>
  <li class="red">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="red">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="red">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="red">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="red">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="red">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="red">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="red">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="red">
<td>Green row : 5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr class="red">
<td>Green row : 6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="red">green cell</td>
<td>1.3</td>
      <td>1.4</td>
<td class="red">green cell</td>
<td>1.6</td>
      <td>1.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="red">green cell</td>
<td>2.3</td>
      <td>2.4</td>
<td class="red">green cell</td>
<td>2.6</td>
      <td>2.7</td>
<td class="red">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="red">green cell</td>
<td>3.3</td>
      <td>3.4</td>
<td class="red">green cell</td>
<td>3.6</td>
      <td>3.7</td>
<td class="red">green cell</td>
</tr>
</table>
</div>
'},'css3-modsel-117b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title*=&quot;on ch&quot;] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on middle without declared namespace','number' => '117b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title*="on ch"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
'},'css3-modsel-28b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;green&quot; foo=&quot;foo&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
ul &gt; li:nth-child(odd) { background-color : red }
ol &gt; li:nth-child(even) { background-color : red }
table.t1 tr:nth-child(-n+4) { background-color : red }
table.t2 td:nth-child(3n+1) { background-color : red }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li class=&quot;green&quot; foo=&quot;foo&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => ':nth-child() pseudo-class','number' => '28b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
ul > li:nth-child(odd) { background-color : red }
ol > li:nth-child(even) { background-color : red }
table.t1 tr:nth-child(-n+4) { background-color : red }
table.t2 td:nth-child(3n+1) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<ul>
  <li class="green" foo="foo">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="green">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="green">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="green">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="green">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="green">green cell</td>
<td>1.2</td>
<td>1.3</td>
      <td class="green">green cell</td>
<td>1.5</td>
<td>1.6</td>
      <td class="green">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>2.2</td>
<td>2.3</td>
      <td class="green">green cell</td>
<td>2.5</td>
<td>2.6</td>
      <td class="green">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>3.2</td>
<td>3.3</td>
      <td class="green">green cell</td>
<td>3.5</td>
<td>3.6</td>
      <td class="green">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li class="green" foo="foo">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr class="green">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="green">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="green">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="green">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="green">green cell</td>
<td>1.2</td>
<td>1.3</td>
      <td class="green">green cell</td>
<td>1.5</td>
<td>1.6</td>
      <td class="green">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>2.2</td>
<td>2.3</td>
      <td class="green">green cell</td>
<td>2.5</td>
<td>2.6</td>
      <td class="green">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>3.2</td>
<td>3.3</td>
      <td class="green">green cell</td>
<td>3.5</td>
<td>3.6</td>
      <td class="green">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li class=&quot;green&quot; foo=&quot;foo&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li class="green" foo="foo">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ul>
<ol>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr class="green">
<td>Green row : 1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr class="green">
<td>Green row : 2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="green">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="green">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr>
<td>5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr>
<td>6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td class="green">green cell</td>
<td>1.2</td>
<td>1.3</td>
      <td class="green">green cell</td>
<td>1.5</td>
<td>1.6</td>
      <td class="green">green cell</td>
<td>1.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>2.2</td>
<td>2.3</td>
      <td class="green">green cell</td>
<td>2.5</td>
<td>2.6</td>
      <td class="green">green cell</td>
<td>2.8</td>
</tr>
  <tr>
<td class="green">green cell</td>
<td>3.2</td>
<td>3.3</td>
      <td class="green">green cell</td>
<td>3.5</td>
<td>3.6</td>
      <td class="green">green cell</td>
<td>3.8</td>
</tr>
</table>
</div>
'},'css3-modsel-146a' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','escapedcode-css' => '
  line { display: block; }
  [type~=match] { background: red; }
  line:nth-child(3n-1) { bacground: lime; }
  [hidden] { display: none; }
','escapedcode-html' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','def' => ':nth-child() pseudo-class with hidden elements','number' => '146a','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  line { display: block; }
  [type~=match] { background: red; }
  line:nth-child(3n-1) { bacground: lime; }
  [hidden] { display: none; }
','author' => ['Ian Hickson'],'code-html' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','endTag' => '</test>','date' => '14-november-2001','code-xml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','code-xhtml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
'},'css3-modsel-146b' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','escapedcode-css' => '
  line { display: block; }
  [type~=match] { background: lime ! important; }
  line:nth-child(3n-1) { bacground: red; }
  [hidden] { display: none; }
','escapedcode-html' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','def' => ':nth-child() pseudo-class with hidden elements','number' => '146b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  line { display: block; }
  [type~=match] { background: lime ! important; }
  line:nth-child(3n-1) { bacground: red; }
  [hidden] { display: none; }
','author' => ['Ian Hickson'],'code-html' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','endTag' => '</test>','date' => '14-november-2001','code-xml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','code-xhtml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
'},'css3-modsel-150' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;!-- --&gt;&lt;?test random PI?&gt;&lt;/address&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','escapedcode-css' => '
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
','escapedcode-html' => '
 &lt;address&gt;&lt;!-- --&gt;&lt;?test random PI&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','def' => ':empty pseudo-class and XML/SGML constructs','number' => '150','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
','author' => ['Ian Hickson'],'code-html' => '
 <address><!-- --><?test random PI></address>
 <div class="text">This line should have a green background.</div>
','endTag' => '</div>','date' => '15-november-2001','code-xml' => '
 <address xmlns="http://www.w3.org/1999/xhtml"><!-- --><?test random PI?></address>
 <div xmlns="http://www.w3.org/1999/xhtml" class="text">This line should have a green background.</div>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;address&gt;&lt;!-- --&gt;&lt;?test random PI?&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','code-xhtml' => '
 <address><!-- --><?test random PI?></address>
 <div class="text">This line should have a green background.</div>
'},'css3-modsel-139b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : lime ! important }
div.stub *|*:not([|class~=&quot;foo&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute space-separated value selector without declared namespace','number' => '139b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : lime ! important }
div.stub *|*:not([|class~="foo"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p class="bar foo toto">This paragraph should be unstyled.</p>
<address class="bar foofoo toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p class="bar foo toto">This paragraph should be unstyled.</p>
<address class="bar foofoo toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address class=&quot;bar foofoo toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; class=&quot;bar foo toto&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:class=&quot;bar foo toto&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p class="bar foo toto">This paragraph should be unstyled.</p>
<address class="bar foofoo toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r>
</div>
'},'css3-modsel-151' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;/address&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','escapedcode-css' => '
 address { background: lime; margin: 0; height: 1em; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
','escapedcode-html' => '
 &lt;address&gt; &lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','def' => ':empty pseudo-class and whitespace','number' => '151','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
 address { background: lime; margin: 0; height: 1em; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
','author' => ['Ian Hickson'],'code-html' => '
 <address> </address>
 <div class="text">This line should have a green background.</div>
','endTag' => '</div>','date' => '15-november-2001','code-xml' => '
 <address xmlns="http://www.w3.org/1999/xhtml"> </address>
 <div xmlns="http://www.w3.org/1999/xhtml" class="text">This line should have a green background.</div>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;address&gt; &lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','code-xhtml' => '
 <address> </address>
 <div class="text">This line should have a green background.</div>
'},'css3-modsel-152' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/address&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','escapedcode-css' => '
 address { background: lime; margin: 0; height: 1em; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
','escapedcode-html' => '
 &lt;address&gt;&lt;span&gt;&lt;/span&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','def' => ':empty pseudo-class and elements','number' => '152','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
 address { background: lime; margin: 0; height: 1em; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
','author' => ['Ian Hickson'],'code-html' => '
 <address><span></span></address>
 <div class="text">This line should have a green background.</div>
','endTag' => '</div>','date' => '15-november-2001','code-xml' => '
 <address xmlns="http://www.w3.org/1999/xhtml"><span></span></address>
 <div xmlns="http://www.w3.org/1999/xhtml" class="text">This line should have a green background.</div>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;address&gt;&lt;span&gt;&lt;/span&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','code-xhtml' => '
 <address><span></span></address>
 <div class="text">This line should have a green background.</div>
'},'css3-modsel-153' => {'rev' => '1.0','escapedcode-css' => '
 address { background: lime; margin: 0; height: 1em; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
','escapedcode-html' => '
 &lt;address&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','def' => ':empty pseudo-class and CDATA','number' => '153','code-html' => '
 <address></address>
 <div class="text">This line should have a green background.</div>
','endTag' => '</div>','date' => '15-november-2001','code-xml' => '
 <address xmlns="http://www.w3.org/1999/xhtml"><![CDATA[]]></address>
 <div xmlns="http://www.w3.org/1999/xhtml" class="text">This line should have a green background.</div>
','namespaces' => '','code-xhtml' => '
 <address><![CDATA[]]></address>
 <div class="text">This line should have a green background.</div>
','escapedcode-xml' => '
 &lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;![CDATA[]]&gt;&lt;/address&gt;
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
','modulename' => 'css3-modsel','cssrules' => '
 address { background: lime; margin: 0; height: 1em; }
 address:empty { background: red; }
 .text { margin: -1em 0 0 0; }
','module' => 'W3C Selectors','cdata' => 0,'author' => ['Ian Hickson'],'escapedcode-xhtml' => '
 &lt;address&gt;&lt;![CDATA[]]&gt;&lt;/address&gt;
 &lt;div class=&quot;text&quot;&gt;This line should have a green background.&lt;/div&gt;
'},'css3-modsel-57b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This a:q element should be unstyled.&lt;/q&gt;
  &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This b:r element should have a green background.&lt;/r&gt;
 &lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
div.stub *:not([a|title]) {background-color : red }
','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This a:q element should be unstyled.&lt;/q&gt;
  &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This b:r element should have a green background.&lt;/r&gt;
 &lt;/div&gt;
','def' => 'NEGATED Attribute existence selector with declared namespace','number' => '57b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
*|p, *|q, *|r { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
div.stub *:not([a|title]) {background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q>
  <p title="a paragraph">This paragraph should have a green background.</p>
  <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q>
  <p title="a paragraph">This paragraph should have a green background.</p>
  <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;a paragraph&quot;&gt;This a:q element should be unstyled.&lt;/q&gt;
  &lt;p title=&quot;a paragraph&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
  &lt;r xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;a paragraph&quot;&gt;This b:r element should have a green background.&lt;/r&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q>
  <p title="a paragraph">This paragraph should have a green background.</p>
  <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r>
 </div>
'},'css3-modsel-154' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  p { background: lime; }
  p, { background: red; }
','escapedcode-html' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing','number' => '154','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  p { background: lime; }
  p, { background: red; }
','author' => ['Ian Hickson'],'code-html' => '
 <p>This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p>This line should have a green background.</p>
'},'css3-modsel-155' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  p { background: green; }
  .5cm { background: red; }
','escapedcode-html' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing','number' => '155','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  p { background: green; }
  .5cm { background: red; }
','author' => ['Ian Hickson'],'code-html' => '
 <p class="5cm">This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="5cm">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p class="5cm">This line should have a green background.</p>
'},'css3-modsel-156' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  p { background: lime; }
  foo &amp; address, p { background: red; }
','escapedcode-html' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing','number' => '156','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  p { background: lime; }
  foo & address, p { background: red; }
','author' => ['Ian Hickson'],'code-html' => '
 <p class="5cm">This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="5cm">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p class=&quot;5cm&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p class="5cm">This line should have a green background.</p>
'},'css3-modsel-157' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  p { background: lime; }
  [*=test] { background: red; }
','escapedcode-html' => '
 &lt;p class=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing','number' => '157','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  p { background: lime; }
  [*=test] { background: red; }
','author' => ['Ian Hickson'],'code-html' => '
 <p class="test">This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="test">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p class=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p class="test">This line should have a green background.</p>
'},'css3-modsel-158' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  p { background: lime; }
  [*|*=test] { background: red; }
','escapedcode-html' => '
 &lt;p class=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing','number' => '158','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  p { background: lime; }
  [*|*=test] { background: red; }
','author' => ['Ian Hickson'],'code-html' => '
 <p class="test">This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml" class="test">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p class=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p class="test">This line should have a green background.</p>
'},'css3-modsel-110b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title*=&quot;on ch&quot;] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Substring matching attribute selector on middle with universal namespace','number' => '110b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title*="on ch"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; b:ti=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s>
<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t>
'},'css3-modsel-159' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Try selecting some text in this document. It should be the green.&lt;/p&gt;
','escapedcode-css' => '
  ::selection { background: lime; }
  :selection { background: red; }
','escapedcode-html' => '
 &lt;p&gt;Try selecting some text in this document. It should be the green.&lt;/p&gt;
','def' => 'Syntax and parsing of new pseudo-elements','number' => '159','modulename' => 'css3-modsel','cssrules' => '
  ::selection { background: lime; }
  :selection { background: red; }
','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
 <p>Try selecting some text in this document. It should be the green.</p>
','author' => ['Ian Hickson'],'code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml">Try selecting some text in this document. It should be the green.</p>
','date' => '20-november-2001','namespaces' => '','escapedcode-xhtml' => '
 &lt;p&gt;Try selecting some text in this document. It should be the green.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
 <p>Try selecting some text in this document. It should be the green.</p>
'},'css3-modsel-103b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|title*=&quot;hanta&quot;], *|*[html|title*=&quot;hanta&quot;] { background-color : red }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','def' => 'Substring matching attribute value selector on middle with declared namespace','number' => '103','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[a|title*="hanta"], *|*[html|title*="hanta"] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
'},'css3-modsel-30' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph is here only to fill space in the DOM&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;And this address too..&lt;/address&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;So does this paragraph !&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;But this one should have green background&lt;/p&gt;
&lt;dl xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;dt class=&quot;red&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;First definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Second definition term&lt;/dt&gt;
    &lt;dd&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fourth definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fifth definition term&lt;/dt&gt;
    &lt;dd&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','escapedcode-css' => '.red { background-color : red }
p:nth-of-type(3) { background-color : lime }
dl &gt; :nth-of-type(3n+1) { background-color : lime }
','escapedcode-html' => '
&lt;p&gt;This paragraph is here only to fill space in the DOM&lt;/p&gt;
&lt;address&gt;And this address too..&lt;/address&gt;
&lt;p&gt;So does this paragraph !&lt;/p&gt;
&lt;p class=&quot;red&quot;&gt;But this one should have green background&lt;/p&gt;
&lt;dl&gt;
  &lt;dt class=&quot;red&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;First definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Second definition term&lt;/dt&gt;
    &lt;dd&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fourth definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fifth definition term&lt;/dt&gt;
    &lt;dd&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','def' => ':nth-of-type() pseudo-class','number' => '30','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
p:nth-of-type(3) { background-color : lime }
dl > :nth-of-type(3n+1) { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<p>This paragraph is here only to fill space in the DOM</p>
<address>And this address too..</address>
<p>So does this paragraph !</p>
<p class="red">But this one should have green background</p>
<dl>
  <dt class="red">First definition term that should have green background</dt>
    <dd class="red">First definition that should have green background</dd>
  <dt>Second definition term</dt>
    <dd>Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="red">Fourth definition term that should have green background</dt>
    <dd class="red">Fourth definition that should have green background</dd>
  <dt>Fifth definition term</dt>
    <dd>Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
','endTag' => '</dl>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph is here only to fill space in the DOM</p>
<address xmlns="http://www.w3.org/1999/xhtml">And this address too..</address>
<p xmlns="http://www.w3.org/1999/xhtml">So does this paragraph !</p>
<p xmlns="http://www.w3.org/1999/xhtml" class="red">But this one should have green background</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt class="red">First definition term that should have green background</dt>
    <dd class="red">First definition that should have green background</dd>
  <dt>Second definition term</dt>
    <dd>Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="red">Fourth definition term that should have green background</dt>
    <dd class="red">Fourth definition that should have green background</dd>
  <dt>Fifth definition term</dt>
    <dd>Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This paragraph is here only to fill space in the DOM&lt;/p&gt;
&lt;address&gt;And this address too..&lt;/address&gt;
&lt;p&gt;So does this paragraph !&lt;/p&gt;
&lt;p class=&quot;red&quot;&gt;But this one should have green background&lt;/p&gt;
&lt;dl&gt;
  &lt;dt class=&quot;red&quot;&gt;First definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;First definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Second definition term&lt;/dt&gt;
    &lt;dd&gt;Second definition&lt;/dd&gt;
  &lt;dt&gt;Third definition term&lt;/dt&gt;
    &lt;dd&gt;Third definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Fourth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Fourth definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fifth definition term&lt;/dt&gt;
    &lt;dd&gt;Fifth definition&lt;/dd&gt;
  &lt;dt&gt;Sixth definition term&lt;/dt&gt;
    &lt;dd&gt;Sixth definition&lt;/dd&gt;
&lt;/dl&gt;
','code-xhtml' => '
<p>This paragraph is here only to fill space in the DOM</p>
<address>And this address too..</address>
<p>So does this paragraph !</p>
<p class="red">But this one should have green background</p>
<dl>
  <dt class="red">First definition term that should have green background</dt>
    <dd class="red">First definition that should have green background</dd>
  <dt>Second definition term</dt>
    <dd>Second definition</dd>
  <dt>Third definition term</dt>
    <dd>Third definition</dd>
  <dt class="red">Fourth definition term that should have green background</dt>
    <dd class="red">Fourth definition that should have green background</dd>
  <dt>Fifth definition term</dt>
    <dd>Fifth definition</dd>
  <dt>Sixth definition term</dt>
    <dd>Sixth definition</dd>
</dl>
'},'css3-modsel-31' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;But this address is here only to fill space in the dom..&lt;/address&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;So does this paragraph !&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;And so does this one too.&lt;/p&gt;
&lt;dl xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt&gt;Second definition term&lt;/dt&gt;
    &lt;dd&gt;Second definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt&gt;Fifth definition term&lt;/dt&gt;
    &lt;dd&gt;Fifth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','escapedcode-css' => '.red { background-color : red }
p:nth-last-of-type(3) { background-color : lime }
dl &gt; :nth-last-of-type(3n+1) { background-color : lime }
','escapedcode-html' => '
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address&gt;But this address is here only to fill space in the dom..&lt;/address&gt;
&lt;p&gt;So does this paragraph !&lt;/p&gt;
&lt;p&gt;And so does this one too.&lt;/p&gt;
&lt;dl&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt&gt;Second definition term&lt;/dt&gt;
    &lt;dd&gt;Second definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt&gt;Fifth definition term&lt;/dt&gt;
    &lt;dd&gt;Fifth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','def' => ':nth-last-of-type() pseudo-class','number' => '31','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
p:nth-last-of-type(3) { background-color : lime }
dl > :nth-last-of-type(3n+1) { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<p class="red">This paragraph should have green background</p>
<address>But this address is here only to fill space in the dom..</address>
<p>So does this paragraph !</p>
<p>And so does this one too.</p>
<dl>
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt>Second definition term</dt>
    <dd>Second definition</dd>
  <dt class="red">Third definition term that should have green background</dt>
    <dd class="red">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt>Fifth definition term</dt>
    <dd>Fifth definition</dd>
  <dt class="red">Sixth definition term that should have green background</dt>
    <dd class="red">Sixth definition that should have green background</dd>
</dl>
','endTag' => '</dl>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" class="red">This paragraph should have green background</p>
<address xmlns="http://www.w3.org/1999/xhtml">But this address is here only to fill space in the dom..</address>
<p xmlns="http://www.w3.org/1999/xhtml">So does this paragraph !</p>
<p xmlns="http://www.w3.org/1999/xhtml">And so does this one too.</p>
<dl xmlns="http://www.w3.org/1999/xhtml">
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt>Second definition term</dt>
    <dd>Second definition</dd>
  <dt class="red">Third definition term that should have green background</dt>
    <dd class="red">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt>Fifth definition term</dt>
    <dd>Fifth definition</dd>
  <dt class="red">Sixth definition term that should have green background</dt>
    <dd class="red">Sixth definition that should have green background</dd>
</dl>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;address&gt;But this address is here only to fill space in the dom..&lt;/address&gt;
&lt;p&gt;So does this paragraph !&lt;/p&gt;
&lt;p&gt;And so does this one too.&lt;/p&gt;
&lt;dl&gt;
  &lt;dt&gt;First definition term&lt;/dt&gt;
    &lt;dd&gt;First definition&lt;/dd&gt;
  &lt;dt&gt;Second definition term&lt;/dt&gt;
    &lt;dd&gt;Second definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Third definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Third definition that should have green background&lt;/dd&gt;
  &lt;dt&gt;Fourth definition term&lt;/dt&gt;
    &lt;dd&gt;Fourth definition&lt;/dd&gt;
  &lt;dt&gt;Fifth definition term&lt;/dt&gt;
    &lt;dd&gt;Fifth definition&lt;/dd&gt;
  &lt;dt class=&quot;red&quot;&gt;Sixth definition term that should have green background&lt;/dt&gt;
    &lt;dd class=&quot;red&quot;&gt;Sixth definition that should have green background&lt;/dd&gt;
&lt;/dl&gt;
','code-xhtml' => '
<p class="red">This paragraph should have green background</p>
<address>But this address is here only to fill space in the dom..</address>
<p>So does this paragraph !</p>
<p>And so does this one too.</p>
<dl>
  <dt>First definition term</dt>
    <dd>First definition</dd>
  <dt>Second definition term</dt>
    <dd>Second definition</dd>
  <dt class="red">Third definition term that should have green background</dt>
    <dd class="red">Third definition that should have green background</dd>
  <dt>Fourth definition term</dt>
    <dd>Fourth definition</dd>
  <dt>Fifth definition term</dt>
    <dd>Fifth definition</dd>
  <dt class="red">Sixth definition term that should have green background</dt>
    <dd class="red">Sixth definition that should have green background</dd>
</dl>
'},'css3-modsel-21b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should be green.&lt;/p&gt;
','escapedcode-css' => 'p { background-color: lime; }
p:target { background-color: red; }','escapedcode-html' => '
 &lt;p&gt;This paragraph should be green.&lt;/p&gt;
','def' => ':target pseudo-class','number' => '21b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color: lime; }
p:target { background-color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p>This paragraph should be green.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml">This paragraph should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;p&gt;This paragraph should be green.&lt;/p&gt;
','code-xhtml' => '
 <p>This paragraph should be green.</p>
'},'css3-modsel-32' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.2&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.2&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.2&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph contains some text
          &lt;span&gt;and a span that should have a green background&lt;/span&gt;
&lt;/p&gt;
','escapedcode-css' => '.red { background-color : red }
.t1 td:first-child { background-color : lime }
p &gt; *:first-child { background-color : lime }
','escapedcode-html' => '
&lt;div align=&quot;center&quot;&gt;
&lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.2&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.2&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.2&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;This paragraph contains some text
          &lt;span&gt;and a span that should have a green background&lt;/span&gt;
&lt;/p&gt;
','def' => ':first-child pseudo-class','number' => '32','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
.t1 td:first-child { background-color : lime }
p > *:first-child { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div align="center">
<table class="t1" border="1">
  <tr>
    <td class="red">green cell</td>
    <td>1.2</td>
    <td>1.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td>2.2</td>
    <td>2.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td>3.2</td>
    <td>3.3</td>
  </tr>
</table>
</div>
<p>This paragraph contains some text
          <span>and a span that should have a green background</span>
</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table class="t1" border="1">
  <tr>
    <td class="red">green cell</td>
    <td>1.2</td>
    <td>1.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td>2.2</td>
    <td>2.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td>3.2</td>
    <td>3.3</td>
  </tr>
</table>
</div>
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph contains some text
          <span>and a span that should have a green background</span>
</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div align=&quot;center&quot;&gt;
&lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;1.2&lt;/td&gt;
    &lt;td&gt;1.3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;2.2&lt;/td&gt;
    &lt;td&gt;2.3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
    &lt;td&gt;3.2&lt;/td&gt;
    &lt;td&gt;3.3&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;This paragraph contains some text
          &lt;span&gt;and a span that should have a green background&lt;/span&gt;
&lt;/p&gt;
','code-xhtml' => '
<div align="center">
<table class="t1" border="1">
  <tr>
    <td class="red">green cell</td>
    <td>1.2</td>
    <td>1.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td>2.2</td>
    <td>2.3</td>
  </tr>
  <tr>
    <td class="red">green cell</td>
    <td>3.2</td>
    <td>3.3</td>
  </tr>
</table>
</div>
<p>This paragraph contains some text
          <span>and a span that should have a green background</span>
</p>
'},'css3-modsel-21c' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This page should be green.&lt;/p&gt;
','escapedcode-css' => ':root { background-color: red; }
:target { background-color: green; }','escapedcode-html' => '
 &lt;p&gt;This page should be green.&lt;/p&gt;
','def' => ':target pseudo-class','number' => '21c','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => ':root { background-color: red; }
:target { background-color: green; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <p>This page should be green.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml">This page should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;p&gt;This page should be green.&lt;/p&gt;
','code-xhtml' => '
 <p>This page should be green.</p>
'},'css3-modsel-33' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td&gt;1.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td&gt;2.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td&gt;3.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;span&gt;This paragraph contains a span that should
     have a green background&lt;/span&gt; and some text after it.&lt;/p&gt;
','escapedcode-css' => '.red { background-color : red }
.t1 td:last-child { background-color : lime }
p &gt; *:last-child { background-color : lime }
','escapedcode-html' => '
&lt;div align=&quot;center&quot;&gt;
&lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td&gt;1.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td&gt;2.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td&gt;3.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;
&lt;span&gt;This paragraph contains a span that should
     have a green background&lt;/span&gt; and some text after it.&lt;/p&gt;
','def' => ':last-child pseudo-class','number' => '33','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
.t1 td:last-child { background-color : lime }
p > *:last-child { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div align="center">
<table class="t1" border="1">
  <tr>
    <td>1.1</td>
    <td>1.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>2.1</td>
    <td>2.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>3.1</td>
    <td>3.2</td>
    <td class="red">green cell</td>
  </tr>
</table>
</div>
<p>
<span>This paragraph contains a span that should
     have a green background</span> and some text after it.</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table class="t1" border="1">
  <tr>
    <td>1.1</td>
    <td>1.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>2.1</td>
    <td>2.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>3.1</td>
    <td>3.2</td>
    <td class="red">green cell</td>
  </tr>
</table>
</div>
<p xmlns="http://www.w3.org/1999/xhtml">
<span>This paragraph contains a span that should
     have a green background</span> and some text after it.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div align=&quot;center&quot;&gt;
&lt;table class=&quot;t1&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;1.1&lt;/td&gt;
    &lt;td&gt;1.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;2.1&lt;/td&gt;
    &lt;td&gt;2.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;3.1&lt;/td&gt;
    &lt;td&gt;3.2&lt;/td&gt;
    &lt;td class=&quot;red&quot;&gt;green cell&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;
&lt;span&gt;This paragraph contains a span that should
     have a green background&lt;/span&gt; and some text after it.&lt;/p&gt;
','code-xhtml' => '
<div align="center">
<table class="t1" border="1">
  <tr>
    <td>1.1</td>
    <td>1.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>2.1</td>
    <td>2.2</td>
    <td class="red">green cell</td>
  </tr>
  <tr>
    <td>3.1</td>
    <td>3.2</td>
    <td class="red">green cell</td>
  </tr>
</table>
</div>
<p>
<span>This paragraph contains a span that should
     have a green background</span> and some text after it.</p>
'},'css3-modsel-34' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This div contains 3 addresses:
&lt;address class=&quot;red&quot;&gt;A first address that should have a green background&lt;/address&gt;
&lt;address&gt;A second address with normal background&lt;/address&gt;
&lt;address&gt;A third address with normal background&lt;/address&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:first-of-type { background-color : lime }
','escapedcode-html' => '
&lt;div&gt;This div contains 3 addresses:
&lt;address class=&quot;red&quot;&gt;A first address that should have a green background&lt;/address&gt;
&lt;address&gt;A second address with normal background&lt;/address&gt;
&lt;address&gt;A third address with normal background&lt;/address&gt;
&lt;/div&gt;
','def' => ':first-of-type pseudo-class','number' => '34','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:first-of-type { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div>This div contains 3 addresses:
<address class="red">A first address that should have a green background</address>
<address>A second address with normal background</address>
<address>A third address with normal background</address>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml">This div contains 3 addresses:
<address class="red">A first address that should have a green background</address>
<address>A second address with normal background</address>
<address>A third address with normal background</address>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div&gt;This div contains 3 addresses:
&lt;address class=&quot;red&quot;&gt;A first address that should have a green background&lt;/address&gt;
&lt;address&gt;A second address with normal background&lt;/address&gt;
&lt;address&gt;A third address with normal background&lt;/address&gt;
&lt;/div&gt;
','code-xhtml' => '
<div>This div contains 3 addresses:
<address class="red">A first address that should have a green background</address>
<address>A second address with normal background</address>
<address>A third address with normal background</address>
</div>
'},'css3-modsel-35' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;address&gt;A first address with normal background&lt;/address&gt;
&lt;address&gt;A second address with normal background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A third address that should have a green background&lt;/address&gt;
This div contains 3 addresses above this sentence.&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:last-of-type { background-color : lime }
','escapedcode-html' => '
&lt;div&gt;
&lt;address&gt;A first address with normal background&lt;/address&gt;
&lt;address&gt;A second address with normal background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A third address that should have a green background&lt;/address&gt;
This div contains 3 addresses above this sentence.&lt;/div&gt;
','def' => ':last-of-type pseudo-class','number' => '35','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:last-of-type { background-color : lime }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div>
<address>A first address with normal background</address>
<address>A second address with normal background</address>
<address class="red">A third address that should have a green background</address>
This div contains 3 addresses above this sentence.</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml">
<address>A first address with normal background</address>
<address>A second address with normal background</address>
<address class="red">A third address that should have a green background</address>
This div contains 3 addresses above this sentence.</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div&gt;
&lt;address&gt;A first address with normal background&lt;/address&gt;
&lt;address&gt;A second address with normal background&lt;/address&gt;
&lt;address class=&quot;red&quot;&gt;A third address that should have a green background&lt;/address&gt;
This div contains 3 addresses above this sentence.&lt;/div&gt;
','code-xhtml' => '
<div>
<address>A first address with normal background</address>
<address>A second address with normal background</address>
<address class="red">A third address that should have a green background</address>
This div contains 3 addresses above this sentence.</div>
'},'css3-modsel-132b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
&lt;p class=&quot;un deu trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.deu, *|q { background-color : lime ! important }
div.stub html|*:not([*|class~=&quot;deux&quot;]),
   div.stub *|*:not(html|*):not([*|foo~=&quot;deux&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
&lt;p class=&quot;un deu trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute space-separated value selector with universal namespace','number' => '132b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.deu, *|q { background-color : lime ! important }
div.stub html|*:not([*|class~="deux"]),
   div.stub *|*:not(html|*):not([*|foo~="deux"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p class="un deux trois">This paragraph should be unstyled</p>
<p class="un deu trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p class="un deux trois">This paragraph should be unstyled</p>
<p class="un deu trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p class=&quot;un deux trois&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
&lt;p class=&quot;un deu trois&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:bar=&quot;un deux trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un second deuxieme trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un deux trois&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p class="un deux trois">This paragraph should be unstyled</p>
<p class="un deu trois">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s>
</div>
'},'css3-modsel-36' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should have normal background&lt;/p&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This div contains only one paragraph
    &lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
p:only-child { background-color : lime }
div.testText &gt; div &gt; p { margin-left : 1em }
','escapedcode-html' => '
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;div&gt;This div contains only one paragraph
    &lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;/div&gt;
','def' => ':only-child pseudo-class','number' => '36','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
p:only-child { background-color : lime }
div.testText > div > p { margin-left : 1em }
','author' => ['Daniel Glazman'],'code-html' => '
<p>This paragraph should have normal background</p>
<div>This div contains only one paragraph
    <p class="red">This paragraph should have green background</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have normal background</p>
<div xmlns="http://www.w3.org/1999/xhtml">This div contains only one paragraph
    <p class="red">This paragraph should have green background</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;div&gt;This div contains only one paragraph
    &lt;p class=&quot;red&quot;&gt;This paragraph should have green background&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<p>This paragraph should have normal background</p>
<div>This div contains only one paragraph
    <p class="red">This paragraph should have green background</p>
</div>
'},'css3-modsel-37' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t1&quot;&gt;
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;address class=&quot;red&quot;&gt;But this address should have green background&lt;/address&gt;
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
.t1 :only-of-type { background-color : lime }
','escapedcode-html' => '
&lt;div class=&quot;t1&quot;&gt;
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;address class=&quot;red&quot;&gt;But this address should have green background&lt;/address&gt;
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;/div&gt;
','def' => ':only-of-type pseudo-class','number' => '37','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
.t1 :only-of-type { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<div class="t1">
<p>This paragraph should have normal background</p>
<address class="red">But this address should have green background</address>
<p>This paragraph should have normal background</p>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="t1">
<p>This paragraph should have normal background</p>
<address class="red">But this address should have green background</address>
<p>This paragraph should have normal background</p>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;div class=&quot;t1&quot;&gt;
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;address class=&quot;red&quot;&gt;But this address should have green background&lt;/address&gt;
&lt;p&gt;This paragraph should have normal background&lt;/p&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="t1">
<p>This paragraph should have normal background</p>
<address class="red">But this address should have green background</address>
<p>This paragraph should have normal background</p>
</div>
'},'css3-modsel-38' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This very long paragraph should have a
      first line with green background. This very long paragraph should have a first
      line with green background.  This very long paragraph should have a first line
      with green background. This very long paragraph should have a first line with
      green background. This very long paragraph should have a first line with green
      background. This very long paragraph should have a first line with green background.
      This very long paragraph should have a first line with green background.&lt;/p&gt;
','escapedcode-css' => 'p:first-line { background-color : lime }
','escapedcode-html' => '
&lt;p&gt;This very long paragraph should have a
      first line with green background. This very long paragraph should have a first
      line with green background.  This very long paragraph should have a first line
      with green background. This very long paragraph should have a first line with
      green background. This very long paragraph should have a first line with green
      background. This very long paragraph should have a first line with green background.
      This very long paragraph should have a first line with green background.&lt;/p&gt;
','def' => '::first-line pseudo-element','number' => '38','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p:first-line { background-color : lime }
','author' => ['Daniel Glazman'],'code-html' => '
<p>This very long paragraph should have a
      first line with green background. This very long paragraph should have a first
      line with green background.  This very long paragraph should have a first line
      with green background. This very long paragraph should have a first line with
      green background. This very long paragraph should have a first line with green
      background. This very long paragraph should have a first line with green background.
      This very long paragraph should have a first line with green background.</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This very long paragraph should have a
      first line with green background. This very long paragraph should have a first
      line with green background.  This very long paragraph should have a first line
      with green background. This very long paragraph should have a first line with
      green background. This very long paragraph should have a first line with green
      background. This very long paragraph should have a first line with green background.
      This very long paragraph should have a first line with green background.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This very long paragraph should have a
      first line with green background. This very long paragraph should have a first
      line with green background.  This very long paragraph should have a first line
      with green background. This very long paragraph should have a first line with
      green background. This very long paragraph should have a first line with green
      background. This very long paragraph should have a first line with green background.
      This very long paragraph should have a first line with green background.&lt;/p&gt;
','code-xhtml' => '
<p>This very long paragraph should have a
      first line with green background. This very long paragraph should have a first
      line with green background.  This very long paragraph should have a first line
      with green background. This very long paragraph should have a first line with
      green background. This very long paragraph should have a first line with green
      background. This very long paragraph should have a first line with green background.
      This very long paragraph should have a first line with green background.</p>
'},'css3-modsel-125b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|foo~=&quot;bar&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute space-separated value selector with declared namespace','number' => '125b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|foo~="bar"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bardot f&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;hgt bar f&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;hgt bar f&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-39' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This very long paragraph should have a first letter
       with green background.&lt;/p&gt;
','escapedcode-css' => 'p:first-letter { font-size : xx-large ; background-color : lime }','escapedcode-html' => '
&lt;p&gt;This very long paragraph should have a first letter
       with green background.&lt;/p&gt;
','def' => '::first-letter pseudo-element','number' => '39','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p:first-letter { font-size : xx-large ; background-color : lime }','author' => ['Daniel Glazman'],'code-html' => '
<p>This very long paragraph should have a first letter
       with green background.</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This very long paragraph should have a first letter
       with green background.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This very long paragraph should have a first letter
       with green background.&lt;/p&gt;
','code-xhtml' => '
<p>This very long paragraph should have a first letter
       with green background.</p>
'},'css3-modsel-43b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t1&quot;&gt;
  &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
  &lt;table&gt;
   &lt;tbody&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','escapedcode-css' => '.white { background-color: transparent ! important; }
.green { background-color: lime; }
div.t1 p { background-color: red; }','escapedcode-html' => '
 &lt;div class=&quot;t1&quot;&gt;
  &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
  &lt;table&gt;
   &lt;tbody&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','def' => 'Descendant combinator','number' => '43b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.white { background-color: transparent ! important; }
.green { background-color: lime; }
div.t1 p { background-color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="t1">
  <p class="white">This paragraph should be unstyled</p>
  <table>
   <tbody>
    <tr>
     <td>
      <p class="white">This paragraph should be unstyled</p>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="green">This paragraph should have a green background</p>
    </td>
   </tr>
  </tbody>
 </table>
','endTag' => '</table>','date' => '05-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="t1">
  <p class="white">This paragraph should be unstyled</p>
  <table>
   <tbody>
    <tr>
     <td>
      <p class="white">This paragraph should be unstyled</p>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
 <table xmlns="http://www.w3.org/1999/xhtml">
  <tbody>
   <tr>
    <td>
     <p class="green">This paragraph should have a green background</p>
    </td>
   </tr>
  </tbody>
 </table>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;t1&quot;&gt;
  &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
  &lt;table&gt;
   &lt;tbody&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled&lt;/p&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;green&quot;&gt;This paragraph should have a green background&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','code-xhtml' => '
 <div class="t1">
  <p class="white">This paragraph should be unstyled</p>
  <table>
   <tbody>
    <tr>
     <td>
      <p class="white">This paragraph should be unstyled</p>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="green">This paragraph should have a green background</p>
    </td>
   </tr>
  </tbody>
 </table>
'},'css3-modsel-29b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime ! important }
ul &gt; li:nth-last-child(odd) { background-color : red }
ol &gt; li:nth-last-child(even) { background-color : red }
table.t1 tr:nth-last-child(-n+4) { background-color : red }
table.t2 td:nth-last-child(3n+1) { background-color : red }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => ':nth-last-child() pseudo-class','number' => '29b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important }
ul > li:nth-last-child(odd) { background-color : red }
ol > li:nth-last-child(even) { background-color : red }
table.t1 tr:nth-last-child(-n+4) { background-color : red }
table.t2 td:nth-last-child(3n+1) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<ul>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="green">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="green">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="green">
<td>Green row : 5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr class="green">
<td>Green row : 6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="green">green cell</td>
<td>1.3</td>
      <td>1.4</td>
<td class="green">green cell</td>
<td>1.6</td>
      <td>1.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="green">green cell</td>
<td>2.3</td>
      <td>2.4</td>
<td class="green">green cell</td>
<td>2.6</td>
      <td>2.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="green">green cell</td>
<td>3.3</td>
      <td>3.4</td>
<td class="green">green cell</td>
<td>3.6</td>
      <td>3.7</td>
<td class="green">green cell</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="green">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="green">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="green">
<td>Green row : 5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr class="green">
<td>Green row : 6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="green">green cell</td>
<td>1.3</td>
      <td>1.4</td>
<td class="green">green cell</td>
<td>1.6</td>
      <td>1.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="green">green cell</td>
<td>2.3</td>
      <td>2.4</td>
<td class="green">green cell</td>
<td>2.6</td>
      <td>2.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="green">green cell</td>
<td>3.3</td>
      <td>3.4</td>
<td class="green">green cell</td>
<td>3.6</td>
      <td>3.7</td>
<td class="green">green cell</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
      &lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
      &lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.3&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;1.6&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.3&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;2.6&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.3&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list item</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr class="green">
<td>Green row : 3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr class="green">
<td>Green row : 4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="green">
<td>Green row : 5.1</td>
<td>5.2</td>
      <td>5.3</td>
</tr>
  <tr class="green">
<td>Green row : 6.1</td>
<td>6.2</td>
      <td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="green">green cell</td>
<td>1.3</td>
      <td>1.4</td>
<td class="green">green cell</td>
<td>1.6</td>
      <td>1.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="green">green cell</td>
<td>2.3</td>
      <td>2.4</td>
<td class="green">green cell</td>
<td>2.6</td>
      <td>2.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="green">green cell</td>
<td>3.3</td>
      <td>3.4</td>
<td class="green">green cell</td>
<td>3.6</td>
      <td>3.7</td>
<td class="green">green cell</td>
</tr>
</table>
</div>
'},'css3-modsel-147a' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','escapedcode-css' => '
  line { display: block; }
  [type~=match] { background: red; }
  line:last-nth-of-type(3n-1) { bacground: lime; }
  [hidden] { visibility: collapse; }
','escapedcode-html' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','def' => ':last-nth-of-type() pseudo-class with collapsed elements','number' => '147','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  line { display: block; }
  [type~=match] { background: red; }
  line:last-nth-of-type(3n-1) { bacground: lime; }
  [hidden] { visibility: collapse; }
','author' => ['Ian Hickson'],'code-html' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','endTag' => '</test>','date' => '14-november-2001','code-xml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','code-xhtml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
'},'css3-modsel-147b' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','escapedcode-css' => '
  line { display: block; }
  [type~=match] { background: lime ! important; }
  line:last-nth-of-type(3n-1) { bacground: red; }
  [hidden] { visibility: collapse; }
','escapedcode-html' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','def' => ':last-nth-of-type() pseudo-class with collapsed elements','number' => '147b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  line { display: block; }
  [type~=match] { background: lime ! important; }
  line:last-nth-of-type(3n-1) { bacground: red; }
  [hidden] { visibility: collapse; }
','author' => ['Ian Hickson'],'code-html' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','endTag' => '</test>','date' => '14-november-2001','code-xml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
','namespaces' => '','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;test xmlns=&quot;http://www.example.org/&quot;&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot; hidden=&quot;hidden&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot; hidden=&quot;hidden&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
  &lt;line type=&quot;match&quot;&gt;This line should be green.&lt;/line&gt;
  &lt;line type=&quot;&quot;&gt;This line should be unstyled.&lt;/line&gt;
 &lt;/test&gt; 
','code-xhtml' => '
 <test xmlns="http://www.example.org/">
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match" hidden="hidden">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="" hidden="hidden">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
  <line type="">This line should be unstyled.</line>
  <line type="match">This line should be green.</line>
  <line type="">This line should be unstyled.</line>
 </test> 
'},'css3-modsel-160' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '
  p { background: lime; }
  p:subject { background: red; } /* this is not valid CSS, and if UAs implemented the experimental :subject pseudo-class they should have used the :-vnd-property syntax. */
','escapedcode-html' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Syntax and parsing of unknown psuedo-classes','number' => '160','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  p { background: lime; }
  p:subject { background: red; } /* this is not valid CSS, and if UAs implemented the experimental :subject pseudo-class they should have used the :-vnd-property syntax. */
','author' => ['Ian Hickson'],'code-html' => '
 <p>This line should have a green background.</p>
','endTag' => '</p>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml">This line should have a green background.</p>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
 <p>This line should have a green background.</p>
'},'css3-modsel-161' => {'rev' => '1.0','escapedcode-xml' => '
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This line should have a green background.&lt;/p&gt;
 &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
  &lt;select size=&quot;1&quot;&gt;
   &lt;option&gt;This should&lt;/option&gt;
   &lt;option&gt;have a green&lt;/option&gt;
   &lt;option&gt;background.&lt;/option&gt;
  &lt;/select&gt;
 &lt;/p&gt;
 &lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;tr&gt;&lt;td&gt;This line should have a green background.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
','escapedcode-css' => '
  p, p *, p ~ * { background: lime; }

  /* let&#39;s try some pseudos that are not valid CSS but are likely to
  be implemented as extensions in some UAs. These should not be
  recognised, as UAs implementing such extensions should use the
  :-vnd-ident syntax. */

  :canvas { background: red; }
  :viewport { background: red; }
  :window { background: red; }
  :menu { background: red; }
  :table { background: red; }
  :select { background: red; }
  ::canvas { background: red; }
  ::viewport { background: red; }
  ::window { background: red; }
  ::menu { background: red; }
  ::table { background: red; }
  ::select { background: red; }
','escapedcode-html' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
 &lt;p&gt;
  UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
  &lt;select size=&quot;1&quot;&gt;
   &lt;option&gt;This should&lt;/option&gt;
   &lt;option&gt;have a green&lt;/option&gt;
   &lt;option&gt;background.&lt;/option&gt;
  &lt;/select&gt;
 &lt;/p&gt;
 &lt;table&gt;&lt;tr&gt;&lt;td&gt;This line should have a green background.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
','def' => 'Syntax and parsing of unknown psuedo-classes and pseudo-elements','number' => '161','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  p, p *, p ~ * { background: lime; }

  /* let\'s try some pseudos that are not valid CSS but are likely to
  be implemented as extensions in some UAs. These should not be
  recognised, as UAs implementing such extensions should use the
  :-vnd-ident syntax. */

  :canvas { background: red; }
  :viewport { background: red; }
  :window { background: red; }
  :menu { background: red; }
  :table { background: red; }
  :select { background: red; }
  ::canvas { background: red; }
  ::viewport { background: red; }
  ::window { background: red; }
  ::menu { background: red; }
  ::table { background: red; }
  ::select { background: red; }
','author' => ['Ian Hickson'],'code-html' => '
 <p>This line should have a green background.</p>
 <p>
  UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
  <select size="1">
   <option>This should</option>
   <option>have a green</option>
   <option>background.</option>
  </select>
 </p>
 <table><tr><td>This line should have a green background.</td></tr></table>
','endTag' => '</table>','date' => '20-november-2001','code-xml' => '
 <p xmlns="http://www.w3.org/1999/xhtml">This line should have a green background.</p>
 <p xmlns="http://www.w3.org/1999/xhtml">
  UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
  <select size="1">
   <option>This should</option>
   <option>have a green</option>
   <option>background.</option>
  </select>
 </p>
 <table xmlns="http://www.w3.org/1999/xhtml"><tr><td>This line should have a green background.</td></tr></table>
','namespaces' => '','escapedcode-xhtml' => '
 &lt;p&gt;This line should have a green background.&lt;/p&gt;
 &lt;p&gt;
  UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
  &lt;select size=&quot;1&quot;&gt;
   &lt;option&gt;This should&lt;/option&gt;
   &lt;option&gt;have a green&lt;/option&gt;
   &lt;option&gt;background.&lt;/option&gt;
  &lt;/select&gt;
 &lt;/p&gt;
 &lt;table&gt;&lt;tr&gt;&lt;td&gt;This line should have a green background.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
','code-xhtml' => '
 <p>This line should have a green background.</p>
 <p>
  UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
  <select size="1">
   <option>This should</option>
   <option>have a green</option>
   <option>background.</option>
  </select>
 </p>
 <table><tr><td>This line should have a green background.</td></tr></table>
'},'css3-modsel-162' => {'rev' => '1.0','escapedcode-xml' => '
  &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

   &lt;p&gt;Select everything in this document. The following two constructs
   (in the thick black borders) should end up looking identical. You
   should also check that the cursor is the same on equivalent parts
   (in particular the cursor should be a crosshair over &amp;quot;Tree&amp;quot; and the
   default everywhere else.)&lt;/p&gt;

   &lt;table&gt;
    &lt;tr&gt;
     &lt;td class=&quot;test&quot;&gt;

      &lt;div&gt;
       &lt;span&gt;Cascadable&lt;/span&gt;
       &lt;span id=&quot;b&quot;&gt;Advanced&lt;/span&gt;
       &lt;span&gt;Tree&lt;/span&gt;
       &lt;span&gt;Selectors&lt;/span&gt;
       &lt;span&gt;&lt;!-- empty --&gt;&lt;/span&gt;
       &lt;span&gt;for &lt;strong&gt;CSS&lt;/strong&gt;&lt;/span&gt;
      &lt;/div&gt;

     &lt;/td&gt;
     &lt;td class=&quot;control&quot;&gt;

      &lt;div&gt;
       &lt;span class=&quot;a green&quot;&gt;Cascadable&lt;/span&gt;
       &lt;span class=&quot;b yellow&quot;&gt;Advanced&lt;/span&gt;
       &lt;span class=&quot;c green&quot;&gt;Tree&lt;/span&gt;
       &lt;span class=&quot;d yellow&quot;&gt;Selectors&lt;/span&gt;
       &lt;span class=&quot;e blue&quot;&gt;&lt;/span&gt;
       &lt;span class=&quot;f yellow&quot;&gt;for &lt;strong&gt;CSS&lt;/strong&gt;&lt;/span&gt;
      &lt;/div&gt;

     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/table&gt;
  &lt;/div&gt;
','escapedcode-css' => '



  td &gt; div { border: solid thick black; padding: 1em; line-height: 2; }
  td &gt; div &gt; span { padding: 0.25em; }

  /* test version */
  .test &gt; *|* { background: aqua; }
  .test &gt; div &gt; ::selection { outline: solid thick green; }
  .test &gt; div &gt; :nth-child(even)::selection { outline: solid thick yellow; }
  .test &gt; div &gt; :empty::selection { outline: solid thick blue; background: red; }
  .test &gt; div *|*::selection { background: transparent; } /* applies to spans 4 to 6 and the strong */
  .test span:first-child::selection { background: white; } /* selects &quot;Cascadable&quot; */
  .test span[id=b]::selection { background: silver; } /* selects &quot;Advanced&quot; */
  .test #b + * + * { background: green; color: white; } /* affects &quot;Tree&quot;&#39;s span, whose selection inherits the background-color */
  .test span[id=b] ~ ::selection { background: inherit; color: inherit; } /* selects &quot;Tree&quot;, &quot;Selectors&quot; and &quot;for CSS&quot; but is overriden for &quot;Tree&quot; and &quot;for CSS&quot; */
  .test span[id=b] + ::selection { background: yellow; cursor: crosshair; } /* selects &quot;Tree&quot; */
  .test :not(#b):last-child::selection { background: transparent; } /* selects &quot;for CSS&quot; and &quot;CSS&quot; */
  .test ::selection { color: black; } /* applies to all spans and the strong */
  .test::selection { background: red ! important; } /* applies to the text in the cell and the div... so nothing. */
  .test::selection { color: red ! important; background: aqua; } /* should end up doing nothing - no text at that level and background is aqua is already the background */
  .test strong { color: red ! important; } /* should also end up doing nothing */

  /* control version */
  .control::selection { background: transparent; color: inherit; cursor: inherit; outline: none; }
  .control &gt; div { background: aqua; color: black; }
  .control &gt; div &gt; span { padding: 0; margin: 0.25em; }
  .control &gt; div &gt; span.a { background: white; }
  .control &gt; div &gt; span.b { background: silver; }
  .control &gt; div &gt; span.c { background: yellow; cursor: crosshair; }
  .control &gt; div &gt; span.d { background: green; color: white; padding: 0.25em; margin: 0; }
  .control &gt; div &gt; span.green { outline: solid thick green; }
  .control &gt; div &gt; span.yellow { outline: solid thick yellow; }
  .control &gt; div &gt; span.blue { outline: solid thick blue; background: red; }

','escapedcode-html' => '
  &lt;div&gt;

   &lt;p&gt;Select everything in this document. The following two constructs
   (in the thick black borders) should end up looking identical. You
   should also check that the cursor is the same on equivalent parts
   (in particular the cursor should be a crosshair over &amp;quot;Tree&amp;quot; and the
   default everywhere else.)&lt;/p&gt;

   &lt;table&gt;
    &lt;tr&gt;
     &lt;td class=&quot;test&quot;&gt;

      &lt;div&gt;
       &lt;span&gt;Cascadable&lt;/span&gt;
       &lt;span id=&quot;b&quot;&gt;Advanced&lt;/span&gt;
       &lt;span&gt;Tree&lt;/span&gt;
       &lt;span&gt;Selectors&lt;/span&gt;
       &lt;span&gt;&lt;!-- empty --&gt;&lt;/span&gt;
       &lt;span&gt;for &lt;strong&gt;CSS&lt;/strong&gt;&lt;/span&gt;
      &lt;/div&gt;

     &lt;/td&gt;
     &lt;td class=&quot;control&quot;&gt;

      &lt;div&gt;
       &lt;span class=&quot;a green&quot;&gt;Cascadable&lt;/span&gt;
       &lt;span class=&quot;b yellow&quot;&gt;Advanced&lt;/span&gt;
       &lt;span class=&quot;c green&quot;&gt;Tree&lt;/span&gt;
       &lt;span class=&quot;d yellow&quot;&gt;Selectors&lt;/span&gt;
       &lt;span class=&quot;e blue&quot;&gt;&lt;/span&gt;
       &lt;span class=&quot;f yellow&quot;&gt;for &lt;strong&gt;CSS&lt;/strong&gt;&lt;/span&gt;
      &lt;/div&gt;

     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/table&gt;
  &lt;/div&gt;
','def' => 'Contextual ::selection','number' => '162','modulename' => 'css3-modsel','cssrules' => '



  td > div { border: solid thick black; padding: 1em; line-height: 2; }
  td > div > span { padding: 0.25em; }

  /* test version */
  .test > *|* { background: aqua; }
  .test > div > ::selection { outline: solid thick green; }
  .test > div > :nth-child(even)::selection { outline: solid thick yellow; }
  .test > div > :empty::selection { outline: solid thick blue; background: red; }
  .test > div *|*::selection { background: transparent; } /* applies to spans 4 to 6 and the strong */
  .test span:first-child::selection { background: white; } /* selects "Cascadable" */
  .test span[id=b]::selection { background: silver; } /* selects "Advanced" */
  .test #b + * + * { background: green; color: white; } /* affects "Tree"\'s span, whose selection inherits the background-color */
  .test span[id=b] ~ ::selection { background: inherit; color: inherit; } /* selects "Tree", "Selectors" and "for CSS" but is overriden for "Tree" and "for CSS" */
  .test span[id=b] + ::selection { background: yellow; cursor: crosshair; } /* selects "Tree" */
  .test :not(#b):last-child::selection { background: transparent; } /* selects "for CSS" and "CSS" */
  .test ::selection { color: black; } /* applies to all spans and the strong */
  .test::selection { background: red ! important; } /* applies to the text in the cell and the div... so nothing. */
  .test::selection { color: red ! important; background: aqua; } /* should end up doing nothing - no text at that level and background is aqua is already the background */
  .test strong { color: red ! important; } /* should also end up doing nothing */

  /* control version */
  .control::selection { background: transparent; color: inherit; cursor: inherit; outline: none; }
  .control > div { background: aqua; color: black; }
  .control > div > span { padding: 0; margin: 0.25em; }
  .control > div > span.a { background: white; }
  .control > div > span.b { background: silver; }
  .control > div > span.c { background: yellow; cursor: crosshair; }
  .control > div > span.d { background: green; color: white; padding: 0.25em; margin: 0; }
  .control > div > span.green { outline: solid thick green; }
  .control > div > span.yellow { outline: solid thick yellow; }
  .control > div > span.blue { outline: solid thick blue; background: red; }

','module' => 'W3C Selectors','endTag' => '</div>','code-html' => '
  <div>

   <p>Select everything in this document. The following two constructs
   (in the thick black borders) should end up looking identical. You
   should also check that the cursor is the same on equivalent parts
   (in particular the cursor should be a crosshair over &quot;Tree&quot; and the
   default everywhere else.)</p>

   <table>
    <tr>
     <td class="test">

      <div>
       <span>Cascadable</span>
       <span id="b">Advanced</span>
       <span>Tree</span>
       <span>Selectors</span>
       <span><!-- empty --></span>
       <span>for <strong>CSS</strong></span>
      </div>

     </td>
     <td class="control">

      <div>
       <span class="a green">Cascadable</span>
       <span class="b yellow">Advanced</span>
       <span class="c green">Tree</span>
       <span class="d yellow">Selectors</span>
       <span class="e blue"></span>
       <span class="f yellow">for <strong>CSS</strong></span>
      </div>

     </td>
    </tr>
   </table>
  </div>
','author' => ['Ian Hickson'],'code-xml' => '
  <div xmlns="http://www.w3.org/1999/xhtml">

   <p>Select everything in this document. The following two constructs
   (in the thick black borders) should end up looking identical. You
   should also check that the cursor is the same on equivalent parts
   (in particular the cursor should be a crosshair over &quot;Tree&quot; and the
   default everywhere else.)</p>

   <table>
    <tr>
     <td class="test">

      <div>
       <span>Cascadable</span>
       <span id="b">Advanced</span>
       <span>Tree</span>
       <span>Selectors</span>
       <span><!-- empty --></span>
       <span>for <strong>CSS</strong></span>
      </div>

     </td>
     <td class="control">

      <div>
       <span class="a green">Cascadable</span>
       <span class="b yellow">Advanced</span>
       <span class="c green">Tree</span>
       <span class="d yellow">Selectors</span>
       <span class="e blue"></span>
       <span class="f yellow">for <strong>CSS</strong></span>
      </div>

     </td>
    </tr>
   </table>
  </div>
','date' => '20-november-2001','namespaces' => '','escapedcode-xhtml' => '
  &lt;div&gt;

   &lt;p&gt;Select everything in this document. The following two constructs
   (in the thick black borders) should end up looking identical. You
   should also check that the cursor is the same on equivalent parts
   (in particular the cursor should be a crosshair over &amp;quot;Tree&amp;quot; and the
   default everywhere else.)&lt;/p&gt;

   &lt;table&gt;
    &lt;tr&gt;
     &lt;td class=&quot;test&quot;&gt;

      &lt;div&gt;
       &lt;span&gt;Cascadable&lt;/span&gt;
       &lt;span id=&quot;b&quot;&gt;Advanced&lt;/span&gt;
       &lt;span&gt;Tree&lt;/span&gt;
       &lt;span&gt;Selectors&lt;/span&gt;
       &lt;span&gt;&lt;!-- empty --&gt;&lt;/span&gt;
       &lt;span&gt;for &lt;strong&gt;CSS&lt;/strong&gt;&lt;/span&gt;
      &lt;/div&gt;

     &lt;/td&gt;
     &lt;td class=&quot;control&quot;&gt;

      &lt;div&gt;
       &lt;span class=&quot;a green&quot;&gt;Cascadable&lt;/span&gt;
       &lt;span class=&quot;b yellow&quot;&gt;Advanced&lt;/span&gt;
       &lt;span class=&quot;c green&quot;&gt;Tree&lt;/span&gt;
       &lt;span class=&quot;d yellow&quot;&gt;Selectors&lt;/span&gt;
       &lt;span class=&quot;e blue&quot;&gt;&lt;/span&gt;
       &lt;span class=&quot;f yellow&quot;&gt;for &lt;strong&gt;CSS&lt;/strong&gt;&lt;/span&gt;
      &lt;/div&gt;

     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/table&gt;
  &lt;/div&gt;
','interactive' => 1,'code-xhtml' => '
  <div>

   <p>Select everything in this document. The following two constructs
   (in the thick black borders) should end up looking identical. You
   should also check that the cursor is the same on equivalent parts
   (in particular the cursor should be a crosshair over &quot;Tree&quot; and the
   default everywhere else.)</p>

   <table>
    <tr>
     <td class="test">

      <div>
       <span>Cascadable</span>
       <span id="b">Advanced</span>
       <span>Tree</span>
       <span>Selectors</span>
       <span><!-- empty --></span>
       <span>for <strong>CSS</strong></span>
      </div>

     </td>
     <td class="control">

      <div>
       <span class="a green">Cascadable</span>
       <span class="b yellow">Advanced</span>
       <span class="c green">Tree</span>
       <span class="d yellow">Selectors</span>
       <span class="e blue"></span>
       <span class="f yellow">for <strong>CSS</strong></span>
      </div>

     </td>
    </tr>
   </table>
  </div>
'},'css3-modsel-163' => {'rev' => '1.0','escapedcode-xml' => '
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;float&quot;&gt;TEST&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;TEST&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;strong&gt;TEST&lt;/strong&gt;&lt;/p&gt;
  &lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;tr&gt;&lt;td&gt;TEST&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;While you hover over any of the instances of the word TEST above this paragraph should turn green.&lt;/p&gt;
','escapedcode-css' => '
  .float { float: right; }
  :hover ~ :contains(&#39;green&#39;) { background: green; }
','escapedcode-html' => '
  &lt;p class=&quot;float&quot;&gt;TEST&lt;/p&gt;
  &lt;p&gt;TEST&lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;TEST&lt;/strong&gt;&lt;/p&gt;
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;TEST&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;p&gt;While you hover over any of the instances of the word TEST above this paragraph should turn green.&lt;/p&gt;
','def' => 'Contextual :contains','number' => '163','modulename' => 'css3-modsel','cssrules' => '
  .float { float: right; }
  :hover ~ :contains(\'green\') { background: green; }
','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
  <p class="float">TEST</p>
  <p>TEST</p>
  <p><strong>TEST</strong></p>
  <table><tr><td>TEST</td></tr></table>
  <p>While you hover over any of the instances of the word TEST above this paragraph should turn green.</p>
','author' => ['Ian Hickson'],'code-xml' => '
  <p xmlns="http://www.w3.org/1999/xhtml" class="float">TEST</p>
  <p xmlns="http://www.w3.org/1999/xhtml">TEST</p>
  <p xmlns="http://www.w3.org/1999/xhtml"><strong>TEST</strong></p>
  <table xmlns="http://www.w3.org/1999/xhtml"><tr><td>TEST</td></tr></table>
  <p xmlns="http://www.w3.org/1999/xhtml">While you hover over any of the instances of the word TEST above this paragraph should turn green.</p>
','date' => '21-november-2001','namespaces' => '','escapedcode-xhtml' => '
  &lt;p class=&quot;float&quot;&gt;TEST&lt;/p&gt;
  &lt;p&gt;TEST&lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;TEST&lt;/strong&gt;&lt;/p&gt;
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;TEST&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;p&gt;While you hover over any of the instances of the word TEST above this paragraph should turn green.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
  <p class="float">TEST</p>
  <p>TEST</p>
  <p><strong>TEST</strong></p>
  <table><tr><td>TEST</td></tr></table>
  <p>While you hover over any of the instances of the word TEST above this paragraph should turn green.</p>
'},'css3-modsel-164' => {'rev' => '1.0','escapedcode-xml' => '
   &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;textarea rows=&quot;5&quot; cols=&quot;70&quot;&gt;Select some of this text, then change the focus around. While this
text is focussed, the selection should be green. While the focus is
elsewhere, the selection should be silver. The border should at all
times be a darker colour than the selection&amp;#39;s background. Repeat the
test with everything selected.&lt;/textarea&gt;&lt;/p&gt;

','escapedcode-css' => '
  textarea { border: solid thick gray; }
  textarea:focus { border: solid thick green; }
  textarea::selection { background: silver; color: black; }
  textarea:focus::selection { background: lime; color: black; }
','escapedcode-html' => '
   &lt;p&gt;&lt;textarea rows=&quot;5&quot; cols=&quot;70&quot;&gt;Select some of this text, then change the focus around. While this
text is focussed, the selection should be green. While the focus is
elsewhere, the selection should be silver. The border should at all
times be a darker colour than the selection&amp;#39;s background. Repeat the
test with everything selected.&lt;/textarea&gt;&lt;/p&gt;

','def' => ':focus with ::selection','number' => '164','modulename' => 'css3-modsel','cssrules' => '
  textarea { border: solid thick gray; }
  textarea:focus { border: solid thick green; }
  textarea::selection { background: silver; color: black; }
  textarea:focus::selection { background: lime; color: black; }
','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
   <p><textarea rows="5" cols="70">Select some of this text, then change the focus around. While this
text is focussed, the selection should be green. While the focus is
elsewhere, the selection should be silver. The border should at all
times be a darker colour than the selection&#39;s background. Repeat the
test with everything selected.</textarea></p>

','author' => ['Ian Hickson'],'code-xml' => '
   <p xmlns="http://www.w3.org/1999/xhtml"><textarea rows="5" cols="70">Select some of this text, then change the focus around. While this
text is focussed, the selection should be green. While the focus is
elsewhere, the selection should be silver. The border should at all
times be a darker colour than the selection&#39;s background. Repeat the
test with everything selected.</textarea></p>

','date' => '21-november-2001','namespaces' => '','escapedcode-xhtml' => '
   &lt;p&gt;&lt;textarea rows=&quot;5&quot; cols=&quot;70&quot;&gt;Select some of this text, then change the focus around. While this
text is focussed, the selection should be green. While the focus is
elsewhere, the selection should be silver. The border should at all
times be a darker colour than the selection&amp;#39;s background. Repeat the
test with everything selected.&lt;/textarea&gt;&lt;/p&gt;

','interactive' => 1,'code-xhtml' => '
   <p><textarea rows="5" cols="70">Select some of this text, then change the focus around. While this
text is focussed, the selection should be green. While the focus is
elsewhere, the selection should be silver. The border should at all
times be a darker colour than the selection&#39;s background. Repeat the
test with everything selected.</textarea></p>

'},'css3-modsel-165' => {'rev' => '1.0','escapedcode-xml' => '
   &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&amp;#39;s border should at all times be a darker colour than the
   selection&amp;#39;s background. Repeat the test with everything
   selected.&lt;/p&gt;
','escapedcode-css' => '
  p { border: solid thick gray; }
  p:hover { border: solid thick green; }
  p::selection { background: silver; color: black; }
  p:hover::selection { background: lime; color: black; }
','escapedcode-html' => '
   &lt;p&gt;Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&amp;#39;s border should at all times be a darker colour than the
   selection&amp;#39;s background. Repeat the test with everything
   selected.&lt;/p&gt;
','def' => ':hover with ::selection','number' => '165','modulename' => 'css3-modsel','cssrules' => '
  p { border: solid thick gray; }
  p:hover { border: solid thick green; }
  p::selection { background: silver; color: black; }
  p:hover::selection { background: lime; color: black; }
','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
   <p>Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&#39;s border should at all times be a darker colour than the
   selection&#39;s background. Repeat the test with everything
   selected.</p>
','author' => ['Ian Hickson'],'code-xml' => '
   <p xmlns="http://www.w3.org/1999/xhtml">Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&#39;s border should at all times be a darker colour than the
   selection&#39;s background. Repeat the test with everything
   selected.</p>
','date' => '21-november-2001','namespaces' => '','escapedcode-xhtml' => '
   &lt;p&gt;Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&amp;#39;s border should at all times be a darker colour than the
   selection&amp;#39;s background. Repeat the test with everything
   selected.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
   <p>Select some of this
   paragraph, then move your pointing device around. While it is above
   the paragraph, the selection should be green. While the pointing
   device is elsewhere, the selection should be silver. The
   paragraph&#39;s border should at all times be a darker colour than the
   selection&#39;s background. Repeat the test with everything
   selected.</p>
'},'css3-modsel-94b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This line should be unstyled.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/q&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyleed.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
p, q { display : block ; margin-bottom : 1em }
b|* { background-color : red }
[test] { background-color: lime; }','escapedcode-html' => '
&lt;p&gt;This line should be unstyled.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/q&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyleed.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','def' => 'Universal selector with declared namespace','number' => '94b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
p, q { display : block ; margin-bottom : 1em }
b|* { background-color : red }
[test] { background-color: lime; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p>This line should be unstyled.</p>
<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p>
<q xmlns="http://www.example.org/b" test="test">This line should have a green background.</q>
<p xmlns="http://www.example.org/a">This line should be unstyleed.</p>
<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This line should be unstyled.</p>
<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p>
<q xmlns="http://www.example.org/b" test="test">This line should have a green background.</q>
<p xmlns="http://www.example.org/a">This line should be unstyleed.</p>
<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p&gt;This line should be unstyled.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/q&gt;
&lt;p xmlns=&quot;http://www.example.org/a&quot;&gt;This line should be unstyleed.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.example.org/b&quot; test=&quot;test&quot;&gt;This line should have a green background.&lt;/p&gt;
','code-xhtml' => '
<p>This line should be unstyled.</p>
<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p>
<q xmlns="http://www.example.org/b" test="test">This line should have a green background.</q>
<p xmlns="http://www.example.org/a">This line should be unstyleed.</p>
<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p>
'},'css3-modsel-111b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
','def' => 'Attribute existence selector without declared namespace','number' => '111b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r>
','endTag' => '</r>','date' => '12-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r>
'},'css3-modsel-87b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;blockquote xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be unstyled.&lt;/div&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This text should be green.&lt;/p&gt;
','escapedcode-css' => 'p { color: green ! important; }
blockquote + div ~ p { color: red; }','escapedcode-html' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','def' => 'Nondeterministic matching of direct and indirect adjacent combinators','number' => '87b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { color: green ! important; }
blockquote + div ~ p { color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
','endTag' => '</p>','date' => '12-november-2001','code-xml' => '
<blockquote xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</blockquote>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<div xmlns="http://www.w3.org/1999/xhtml">This text should be unstyled.</div>
<p xmlns="http://www.w3.org/1999/xhtml">This text should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;blockquote&gt;This text should be unstyled.&lt;/blockquote&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;div&gt;This text should be unstyled.&lt;/div&gt;
&lt;p&gt;This text should be green.&lt;/p&gt;
','code-xhtml' => '
<blockquote>This text should be unstyled.</blockquote>
<div>This text should be unstyled.</div>
<div>This text should be unstyled.</div>
<p>This text should be green.</p>
'},'css3-modsel-104b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/s&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title] { background-color : red }
','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/s&gt;
','def' => 'Attribute existence selector with universal namespace','number' => '104','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p, *|r, *|s { background-color : lime ! important }
*|*[*|title] { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s>
','endTag' => '</s>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should have a green background&lt;/s&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background</p>
<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s>
'},'css3-modsel-40' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.&lt;/p&gt;
','escapedcode-css' => 'p::selection { background-color : lime }
','escapedcode-html' => '
&lt;p&gt;Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.&lt;/p&gt;
','def' => '::selection pseudo-element','number' => '40','modulename' => 'css3-modsel','cssrules' => 'p::selection { background-color : lime }
','module' => 'W3C Selectors','endTag' => '</p>','code-html' => '
<p>Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.</p>
','author' => ['Daniel Glazman','Ian Hickson'],'code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.</p>
','date' => '20-november-2001','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.&lt;/p&gt;
','interactive' => 1,'code-xhtml' => '
<p>Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.</p>
'},'css3-modsel-41' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;You should see before this paragraph the words GENERATED CONTENT over green background&lt;/p&gt;
','escapedcode-css' => 'p::before { background-color : lime ; content : &quot;GENERATED CONTENT &quot;}
','escapedcode-html' => '
&lt;p&gt;You should see before this paragraph the words GENERATED CONTENT over green background&lt;/p&gt;
','def' => '::before pseudo-element','number' => '41','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p::before { background-color : lime ; content : "GENERATED CONTENT "}
','author' => ['Daniel Glazman'],'code-html' => '
<p>You should see before this paragraph the words GENERATED CONTENT over green background</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">You should see before this paragraph the words GENERATED CONTENT over green background</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;You should see before this paragraph the words GENERATED CONTENT over green background&lt;/p&gt;
','code-xhtml' => '
<p>You should see before this paragraph the words GENERATED CONTENT over green background</p>
'},'css3-modsel-42' => {'rev' => '1.0','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;You should see after this paragraph the words GENERATED CONTENT over green background&lt;/p&gt;
','escapedcode-css' => 'p::after { background-color : lime ; content : &quot;GENERATED CONTENT &quot;}
','escapedcode-html' => '
&lt;p&gt;You should see after this paragraph the words GENERATED CONTENT over green background&lt;/p&gt;
','def' => '::after pseudo-element','number' => '42','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p::after { background-color : lime ; content : "GENERATED CONTENT "}
','author' => ['Daniel Glazman'],'code-html' => '
<p>You should see after this paragraph the words GENERATED CONTENT over green background</p>
','endTag' => '</p>','date' => '11-july-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">You should see after this paragraph the words GENERATED CONTENT over green background</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;You should see after this paragraph the words GENERATED CONTENT over green background&lt;/p&gt;
','code-xhtml' => '
<p>You should see after this paragraph the words GENERATED CONTENT over green background</p>
'},'css3-modsel-140b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : lime ! important }
div.stub *|*:not([|lang|=&quot;foo-bar&quot;]) { background-color : red }','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute dash-separated value selector without declared namespace','number' => '140b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em }
*|address, *|r { background-color : lime ! important }
div.stub *|*:not([|lang|="foo-bar"]) { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p lang="foo-bar">This paragraph should be unstyled.</p>
<address lang="foo-b">This address should have a green background.</address>
<address lang="foo-barbar-toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p lang="foo-bar">This paragraph should be unstyled.</p>
<address lang="foo-b">This address should have a green background.</address>
<address lang="foo-barbar-toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;address lang=&quot;foo-b&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;address lang=&quot;foo-barbar-toto&quot;&gt;This address should have a green background.&lt;/address&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; lang=&quot;foo-bar&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/b&quot; b:lang=&quot;foo-bar&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p lang="foo-bar">This paragraph should be unstyled.</p>
<address lang="foo-b">This address should have a green background.</address>
<address lang="foo-barbar-toto">This address should have a green background.</address>
<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r>
</div>
'},'css3-modsel-43' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;t1&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;table&gt;
   &lt;tbody&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','escapedcode-css' => '.white { background-color: transparent ! important; }
.red { background-color: red; }
div.t1 p { background-color: lime; }','escapedcode-html' => '
 &lt;div class=&quot;t1&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;table&gt;
   &lt;tbody&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','def' => 'Descendant combinator','number' => '43','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.white { background-color: transparent ! important; }
.red { background-color: red; }
div.t1 p { background-color: lime; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="t1">
  <p class="red">This paragraph should have a green background</p>
  <table>
   <tbody>
    <tr>
     <td>
      <p class="red">This paragraph should have a green background</p>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="white">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>
','endTag' => '</table>','date' => '05-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="t1">
  <p class="red">This paragraph should have a green background</p>
  <table>
   <tbody>
    <tr>
     <td>
      <p class="red">This paragraph should have a green background</p>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
 <table xmlns="http://www.w3.org/1999/xhtml">
  <tbody>
   <tr>
    <td>
     <p class="white">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;t1&quot;&gt;
  &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;table&gt;
   &lt;tbody&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
  &lt;/table&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;white&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','code-xhtml' => '
 <div class="t1">
  <p class="red">This paragraph should have a green background</p>
  <table>
   <tbody>
    <tr>
     <td>
      <p class="red">This paragraph should have a green background</p>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="white">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>
'},'css3-modsel-44' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;p class=&quot;red test&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;div&gt;
   &lt;p class=&quot;red test&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;/div&gt;
 &lt;/div&gt;
 &lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','escapedcode-css' => '.white { backround-image: transparent ! important; }
.red { background-color: red; }
div &gt; p.test { background-color: lime; }','escapedcode-html' => '
 &lt;div&gt;
  &lt;p class=&quot;red test&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;div&gt;
   &lt;p class=&quot;red test&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;/div&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','def' => 'Child combinator','number' => '44','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.white { backround-image: transparent ! important; }
.red { background-color: red; }
div > p.test { background-color: lime; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div>
  <p class="red test">This paragraph should have a green background</p>
  <div>
   <p class="red test">This paragraph should have a green background</p>
  </div>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="white test">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>
','endTag' => '</table>','date' => '05-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml">
  <p class="red test">This paragraph should have a green background</p>
  <div>
   <p class="red test">This paragraph should have a green background</p>
  </div>
 </div>
 <table xmlns="http://www.w3.org/1999/xhtml">
  <tbody>
   <tr>
    <td>
     <p class="white test">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div&gt;
  &lt;p class=&quot;red test&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;div&gt;
   &lt;p class=&quot;red test&quot;&gt;This paragraph should have a green background&lt;/p&gt;
  &lt;/div&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','code-xhtml' => '
 <div>
  <p class="red test">This paragraph should have a green background</p>
  <div>
   <p class="red test">This paragraph should have a green background</p>
  </div>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="white test">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>
'},'css3-modsel-45' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;But this one should have a green background.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;And this one should also have a green background.&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs.&lt;/address&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
div.stub &gt; p + p { background-color : lime }','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;But this one should have a green background.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;And this one should also have a green background.&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs.&lt;/address&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','def' => 'Direct adjacent combinator','number' => '45','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
div.stub > p + p { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="red">But this one should have a green background.</p>
  <p class="red">And this one should also have a green background.</p>
  <address>This address is only here to fill some space between two paragraphs.</address>
  <p>This paragraph should be unstyled.</p>
 </div>
','endTag' => '</div>','date' => '05-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="red">But this one should have a green background.</p>
  <p class="red">And this one should also have a green background.</p>
  <address>This address is only here to fill some space between two paragraphs.</address>
  <p>This paragraph should be unstyled.</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;But this one should have a green background.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;And this one should also have a green background.&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs.&lt;/address&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="red">But this one should have a green background.</p>
  <p class="red">And this one should also have a green background.</p>
  <address>This address is only here to fill some space between two paragraphs.</address>
  <p>This paragraph should be unstyled.</p>
 </div>
'},'css3-modsel-133b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p lang=&quot;fr&quot; class=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.foo, *|q, *|s { background-color : lime ! important }
div.stub html|*:not([*|lang|=&quot;en&quot;]),
  div.stub *|*:not(html|*):not([a|foo|=&quot;un-d&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p lang=&quot;fr&quot; class=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute dash-separated value selector with universal namespace','number' => '133b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|p.foo, *|q, *|s { background-color : lime ! important }
div.stub html|*:not([*|lang|="en"]),
  div.stub *|*:not(html|*):not([a|foo|="un-d"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<p lang="en-us">This paragraph should be unstyled.</p>
<p lang="fr" class="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<p lang="en-us">This paragraph should be unstyled.</p>
<p lang="fr" class="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;p lang=&quot;en-us&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
&lt;p lang=&quot;fr&quot; class=&quot;foo&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-deux-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-second-deuxieme-trois&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;un-d-trois&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;un-d-trois&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<p lang="en-us">This paragraph should be unstyled.</p>
<p lang="fr" class="foo">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q>
<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-46' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;But this one should have a green background&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;And this one should also have a green background&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs&lt;/address&gt;
 &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => '.red { background-color : red }
div.stub &gt; p ~ p { background-color : lime }','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;But this one should have a green background&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;And this one should also have a green background&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs&lt;/address&gt;
 &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
 &lt;/div&gt;
','def' => 'Indirect adjacent combinator','number' => '46','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.red { background-color : red }
div.stub > p ~ p { background-color : lime }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="red">But this one should have a green background</p>
  <p class="red">And this one should also have a green background</p>
  <address>This address is only here to fill some space between two paragraphs</address>
 <p class="red">This paragraph should have a green background</p>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="red">But this one should have a green background</p>
  <p class="red">And this one should also have a green background</p>
  <address>This address is only here to fill some space between two paragraphs</address>
 <p class="red">This paragraph should have a green background</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;But this one should have a green background&lt;/p&gt;
  &lt;p class=&quot;red&quot;&gt;And this one should also have a green background&lt;/p&gt;
  &lt;address&gt;This address is only here to fill some space between two paragraphs&lt;/address&gt;
 &lt;p class=&quot;red&quot;&gt;This paragraph should have a green background&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <p>This paragraph should be unstyled.</p>
  <p class="red">But this one should have a green background</p>
  <p class="red">And this one should also have a green background</p>
  <address>This address is only here to fill some space between two paragraphs</address>
 <p class="red">This paragraph should have a green background</p>
 </div>
'},'css3-modsel-47' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
  &lt;p&gt;
   &lt;span&gt;The text in this paragraph should have a green background&lt;/span&gt;
  &lt;/p&gt;
  &lt;address&gt;This address should have a green background&lt;/address&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot;&gt;This element in another namespace should have a green background.&lt;/q&gt;
  &lt;r xmlns=&quot;&quot;&gt;This element without a namespace should have a green background.&lt;/r&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','escapedcode-css' => 'div.stub span, div.stub address, div.stub *|q, div.stub *|r { background-color: red; }
address, *|q, *|r { display: block; margin: 1em; }
div.stub *:not(p) { background-color: lime; }','escapedcode-html' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;
   &lt;span&gt;The text in this paragraph should have a green background&lt;/span&gt;
  &lt;/p&gt;
  &lt;address&gt;This address should have a green background&lt;/address&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot;&gt;This element in another namespace should have a green background.&lt;/q&gt;
  &lt;r xmlns=&quot;&quot;&gt;This element without a namespace should have a green background.&lt;/r&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','def' => 'NEGATED type element selector','number' => '47','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'div.stub span, div.stub address, div.stub *|q, div.stub *|r { background-color: red; }
address, *|q, *|r { display: block; margin: 1em; }
div.stub *:not(p) { background-color: lime; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div class="stub">
  <p>
   <span>The text in this paragraph should have a green background</span>
  </p>
  <address>This address should have a green background</address>
  <q xmlns="http://www.example.org/a">This element in another namespace should have a green background.</q>
  <r xmlns="">This element without a namespace should have a green background.</r>
  <p>This paragraph should be unstyled.</p>
 </div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml" class="stub">
  <p>
   <span>The text in this paragraph should have a green background</span>
  </p>
  <address>This address should have a green background</address>
  <q xmlns="http://www.example.org/a">This element in another namespace should have a green background.</q>
  <r xmlns="">This element without a namespace should have a green background.</r>
  <p>This paragraph should be unstyled.</p>
 </div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
 &lt;div class=&quot;stub&quot;&gt;
  &lt;p&gt;
   &lt;span&gt;The text in this paragraph should have a green background&lt;/span&gt;
  &lt;/p&gt;
  &lt;address&gt;This address should have a green background&lt;/address&gt;
  &lt;q xmlns=&quot;http://www.example.org/a&quot;&gt;This element in another namespace should have a green background.&lt;/q&gt;
  &lt;r xmlns=&quot;&quot;&gt;This element without a namespace should have a green background.&lt;/r&gt;
  &lt;p&gt;This paragraph should be unstyled.&lt;/p&gt;
 &lt;/div&gt;
','code-xhtml' => '
 <div class="stub">
  <p>
   <span>The text in this paragraph should have a green background</span>
  </p>
  <address>This address should have a green background</address>
  <q xmlns="http://www.example.org/a">This element in another namespace should have a green background.</q>
  <r xmlns="">This element without a namespace should have a green background.</r>
  <p>This paragraph should be unstyled.</p>
 </div>
'},'css3-modsel-48' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub &gt; *|* { background-color : lime ; display : block ;
                 margin-bottom : 1em }
div.stub &gt; *|*:not(*) { background-color : red }
/* yes, the rule just above selects nothing... That&#39;s the point */
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','def' => 'NEGATED universal selector','number' => '48','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub > *|* { background-color : lime ; display : block ;
                 margin-bottom : 1em }
div.stub > *|*:not(*) { background-color : red }
/* yes, the rule just above selects nothing... That\'s the point */
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
'},'css3-modsel-126b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|foo|=&quot;bar&quot;]) { background-color : red }
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','def' => 'NEGATED Attribute dash-separated value selector with declared namespace','number' => '126','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q, *|s { background-color : lime ! important }
div.stub *|*:not([a|foo|="bar"]) { background-color : red }
','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s>
</div>
','endTag' => '</div>','date' => '13-november-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bargain-trash&quot;&gt;This paragraph should have a green background.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; a:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should be unstyled.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:foo=&quot;bar-drink-glass&quot;&gt;This paragraph should have a green background.&lt;/s&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q>
<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r>
<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s>
</div>
'},'css3-modsel-49' => {'rev' => '1.0','escapedcode-xml' => '
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','escapedcode-css' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub &gt; *|* { background-color : lime ; display : block ;
                 margin-bottom : 1em }
div.stub &gt; *|*:not() { background-color : red }
/* yes, the rule just above selects nothing... That&#39;s the point */
','escapedcode-html' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','def' => 'NEGATED omitted universal selector is forbidden','number' => '49','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace html url(http://www.w3.org/1999/xhtml);
@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
div.stub > *|* { background-color : lime ; display : block ;
                 margin-bottom : 1em }
div.stub > *|*:not() { background-color : red }
/* yes, the rule just above selects nothing... That\'s the point */
','author' => ['Daniel Glazman'],'code-html' => '
<div class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
','endTag' => '</div>','date' => '11-july-2001','code-xml' => '
<div xmlns="http://www.w3.org/1999/xhtml" class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;div class=&quot;stub&quot;&gt;
&lt;address&gt;This address should have a green background&lt;/address&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot;&gt;This paragraph should have a green background&lt;/s&gt;
&lt;t xmlns=&quot;&quot;&gt;This paragraph should have a green background&lt;/t&gt;
&lt;u xmlns=&quot;http://www.example.org/a&quot;&gt;This paragraph should have a green background&lt;/u&gt;
&lt;/div&gt;
','code-xhtml' => '
<div class="stub">
<address>This address should have a green background</address>
<s xmlns="http://www.example.org/b">This paragraph should have a green background</s>
<t xmlns="">This paragraph should have a green background</t>
<u xmlns="http://www.example.org/a">This paragraph should have a green background</u>
</div>
'},'css3-modsel-44b' => {'rev' => '1.1','escapedcode-xml' => '
 &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;div&gt;
   &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;/div&gt;
 &lt;/div&gt;
 &lt;table xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;green test&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','escapedcode-css' => '.white { background-color: transparent ! important; }
.green { background-color: lime; }
div &gt; p.test { background-color: red; }','escapedcode-html' => '
 &lt;div&gt;
  &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;div&gt;
   &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;/div&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;green test&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','def' => 'Child combinator','number' => '44b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.white { background-color: transparent ! important; }
.green { background-color: lime; }
div > p.test { background-color: red; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
 <div>
  <p class="white test">This paragraph should be unstyled.</p>
  <div>
   <p class="white test">This paragraph should be unstyled.</p>
  </div>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="green test">This paragraph should have a green background.</p>
    </td>
   </tr>
  </tbody>
 </table>
','endTag' => '</table>','date' => '05-november-2001','code-xml' => '
 <div xmlns="http://www.w3.org/1999/xhtml">
  <p class="white test">This paragraph should be unstyled.</p>
  <div>
   <p class="white test">This paragraph should be unstyled.</p>
  </div>
 </div>
 <table xmlns="http://www.w3.org/1999/xhtml">
  <tbody>
   <tr>
    <td>
     <p class="green test">This paragraph should have a green background.</p>
    </td>
   </tr>
  </tbody>
 </table>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
 &lt;div&gt;
  &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;div&gt;
   &lt;p class=&quot;white test&quot;&gt;This paragraph should be unstyled.&lt;/p&gt;
  &lt;/div&gt;
 &lt;/div&gt;
 &lt;table&gt;
  &lt;tbody&gt;
   &lt;tr&gt;
    &lt;td&gt;
     &lt;p class=&quot;green test&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/tbody&gt;
 &lt;/table&gt;
','code-xhtml' => '
 <div>
  <p class="white test">This paragraph should be unstyled.</p>
  <div>
   <p class="white test">This paragraph should be unstyled.</p>
  </div>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="green test">This paragraph should have a green background.</p>
    </td>
   </tr>
  </tbody>
 </table>
'},'css3-modsel-44c' => {'rev' => '1.0','escapedcode-xml' => '
  &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; This should be unstyled. &lt;/div&gt;
  &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;control&quot;&gt; This should have a green background. &lt;/div&gt;
','escapedcode-css' => '
  .fail &gt; div { background: red; }
  .control { background: green; }
','escapedcode-html' => '
  &lt;div&gt; This should be unstyled. &lt;/div&gt;
  &lt;div class=&quot;control&quot;&gt; This should have a green background. &lt;/div&gt;
','def' => 'Child combinator and classes','number' => '44c','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  .fail > div { background: red; }
  .control { background: green; }
','author' => ['Ian Hickson'],'code-html' => '
  <div> This should be unstyled. </div>
  <div class="control"> This should have a green background. </div>
','endTag' => '</div>','date' => '21-november-2001','code-xml' => '
  <div xmlns="http://www.w3.org/1999/xhtml"> This should be unstyled. </div>
  <div xmlns="http://www.w3.org/1999/xhtml" class="control"> This should have a green background. </div>
','namespaces' => '','escapedcode-xhtml' => '
  &lt;div&gt; This should be unstyled. &lt;/div&gt;
  &lt;div class=&quot;control&quot;&gt; This should have a green background. &lt;/div&gt;
','code-xhtml' => '
  <div> This should be unstyled. </div>
  <div class="control"> This should have a green background. </div>
'},'css3-modsel-44d' => {'rev' => '1.0','escapedcode-xml' => '
  &lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; This should be unstyled. &lt;/div&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; This should have a green background. &lt;/p&gt;
','escapedcode-css' => '
  #fail &gt; div { background: red; }
  p { background: green; }
','escapedcode-html' => '
  &lt;div&gt; This should be unstyled. &lt;/div&gt;
  &lt;p&gt; This should have a green background. &lt;/p&gt;
','def' => 'Child combinatior and IDs','number' => '44d','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '
  #fail > div { background: red; }
  p { background: green; }
','author' => ['Ian Hickson'],'code-html' => '
  <div> This should be unstyled. </div>
  <p> This should have a green background. </p>
','endTag' => '</p>','date' => '21-november-2001','code-xml' => '
  <div xmlns="http://www.w3.org/1999/xhtml"> This should be unstyled. </div>
  <p xmlns="http://www.w3.org/1999/xhtml"> This should have a green background. </p>
','namespaces' => '','escapedcode-xhtml' => '
  &lt;div&gt; This should be unstyled. &lt;/div&gt;
  &lt;p&gt; This should have a green background. &lt;/p&gt;
','code-xhtml' => '
  <div> This should be unstyled. </div>
  <p> This should have a green background. </p>
'},'css3-modsel-73b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;ul xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','escapedcode-css' => '.green { background-color : lime ! important; }
ul &gt; li:not(:nth-child(odd)) { background-color : red }
ol &gt; li:not(:nth-child(even)) { background-color : red }
table.t1 tr:not(:nth-child(-n+4)) { background-color : red }
table.t2 td:not(:nth-child(3n+1)) { background-color : red }
table.t1 td, table.t2 td { border : thin black solid }','escapedcode-html' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','def' => 'NEGATED :nth-child() pseudo-class','number' => '73b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '.green { background-color : lime ! important; }
ul > li:not(:nth-child(odd)) { background-color : red }
ol > li:not(:nth-child(even)) { background-color : red }
table.t1 tr:not(:nth-child(-n+4)) { background-color : red }
table.t2 td:not(:nth-child(3n+1)) { background-color : red }
table.t1 td, table.t2 td { border : thin black solid }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<ul>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="green">
<td>Green row : 5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr class="green">
<td>Green row : 6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>1.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>1.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>2.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>2.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>3.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>3.7</td>
<td class="green">green cell</td>
</tr>
</table>
</div>
','endTag' => '</div>','date' => '12-november-2001','code-xml' => '
<ul xmlns="http://www.w3.org/1999/xhtml">
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ul>
<ol xmlns="http://www.w3.org/1999/xhtml">
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div xmlns="http://www.w3.org/1999/xhtml" align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="green">
<td>Green row : 5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr class="green">
<td>Green row : 6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>1.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>1.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>2.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>2.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>3.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>3.7</td>
<td class="green">green cell</td>
</tr>
</table>
</div>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;ul&gt;
  &lt;li&gt;First list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This second list item should have a green background&lt;/li&gt;
  &lt;li&gt;Third list&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fourth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fifth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This sixth list item should have a green background&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
  &lt;li class=&quot;green&quot;&gt;This first list item should have a green background&lt;/li&gt;
  &lt;li&gt;Second list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This third list item should have a green background&lt;/li&gt;
  &lt;li&gt;Fourth list item&lt;/li&gt;
  &lt;li class=&quot;green&quot;&gt;This fifth list item should have a green background&lt;/li&gt;
  &lt;li&gt;Sixth list item&lt;/li&gt;
&lt;/ol&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;1&quot; class=&quot;t1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td&gt;1.2&lt;/td&gt;
     &lt;td&gt;1.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td&gt;2.2&lt;/td&gt;
     &lt;td&gt;2.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;3.2&lt;/td&gt;
     &lt;td&gt;3.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;4.1&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
      &lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 5.1&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr class=&quot;green&quot;&gt;
&lt;td&gt;Green row : 6.1&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;t2&quot; border=&quot;1&quot;&gt;
  &lt;tr&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;1.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;2.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;2.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
  &lt;tr&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.4&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
      &lt;td&gt;3.7&lt;/td&gt;
&lt;td class=&quot;green&quot;&gt;green cell&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
','code-xhtml' => '
<ul>
  <li>First list item</li>
  <li class="green">This second list item should have a green background</li>
  <li>Third list</li>
  <li class="green">This fourth list item should have a green background</li>
  <li>Fifth list item</li>
  <li class="green">This sixth list item should have a green background</li>
</ul>
<ol>
  <li class="green">This first list item should have a green background</li>
  <li>Second list item</li>
  <li class="green">This third list item should have a green background</li>
  <li>Fourth list item</li>
  <li class="green">This fifth list item should have a green background</li>
  <li>Sixth list item</li>
</ol>
<div align="center">
<table border="1" class="t1">
  <tr>
<td>1.1</td>
<td>1.2</td>
     <td>1.3</td>
</tr>
  <tr>
<td>2.1</td>
<td>2.2</td>
     <td>2.3</td>
</tr>
  <tr>
<td>3.1</td>
<td>3.2</td>
     <td>3.3</td>
</tr>
  <tr>
<td>4.1</td>
<td>4.2</td>
      <td>4.3</td>
</tr>
  <tr class="green">
<td>Green row : 5.1</td>
<td>5.2</td>
<td>5.3</td>
</tr>
  <tr class="green">
<td>Green row : 6.1</td>
<td>6.2</td>
<td>6.3</td>
</tr>
</table>
<p></p>
<table class="t2" border="1">
  <tr>
<td>1.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>1.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>1.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>2.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>2.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>2.7</td>
<td class="green">green cell</td>
</tr>
  <tr>
<td>3.1</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>3.4</td>
<td class="green">green cell</td>
<td class="green">green cell</td>
      <td>3.7</td>
<td class="green">green cell</td>
</tr>
</table>
</div>
'},'css3-modsel-66b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;This paragraph should be green.&lt;/p&gt;
','escapedcode-css' => 'p { background-color: red; }
p:not(:target) { background-color: lime; }','escapedcode-html' => '
&lt;p&gt;This paragraph should be green.&lt;/p&gt;
','def' => 'NEGATED :target pseudo-class','number' => '66b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => 'p { background-color: red; }
p:not(:target) { background-color: lime; }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p>This paragraph should be green.</p>
','endTag' => '</p>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml">This paragraph should be green.</p>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','escapedcode-xhtml' => '
&lt;p&gt;This paragraph should be green.&lt;/p&gt;
','code-xhtml' => '
<p>This paragraph should be green.</p>
'},'css3-modsel-112b' => {'rev' => '1.1','escapedcode-xml' => '
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','escapedcode-css' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title=&quot;si on chantait&quot;] { background-color : red }','escapedcode-html' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','def' => 'Attribute value selector without declared namespace','number' => '112b','modulename' => 'css3-modsel','module' => 'W3C Selectors','cssrules' => '@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em }
*|p, *|r { background-color : lime ! important }
*|*[|title="si on chantait"] { background-color : red }','author' => ['Daniel Glazman','Ian Hickson'],'code-html' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','endTag' => '</t>','date' => '13-november-2001','code-xml' => '
<p xmlns="http://www.w3.org/1999/xhtml" title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
','namespaces' => ' xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"','namespaced' => 1,'escapedcode-xhtml' => '
&lt;p title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/p&gt;
&lt;q xmlns=&quot;http://www.example.org/a&quot; a:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/q&gt;
&lt;r xmlns=&quot;http://www.example.org/a&quot; title=&quot;si on chantait&quot;&gt;This paragraph should have a green background.&lt;/r&gt;
&lt;s xmlns=&quot;http://www.example.org/b&quot; b:title=&quot;si on chantait&quot;&gt;This paragraph should be unstyled.&lt;/s&gt;
&lt;t xmlns=&quot;http://www.example.org/b&quot; title=&quot;si nous chantions&quot;&gt;This paragraph should be unstyled.&lt;/t&gt;
','code-xhtml' => '
<p title="si on chantait">This paragraph should have a green background.</p>
<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q>
<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r>
<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t>
'}}