<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-15c.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Multiple IDs</title>
 <author>Ian Hickson</author>
 <metadata>
  <item> <name>CSS 3 Module</name> <data>W3C Selectors</data> </item>
  <item> <name>Next</name> <data xlink:type="simple" xlink:href="css3-modsel-16.xml">:link pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-15b.xml">Multiple ID selectors</data> </item>
  <item> <name>Test #</name> <data>22 of 296</data> </item>
  <item> <name>Testing</name> <data>Multiple IDs</data> </item>
  <item> <name>ID</name> <data>15c</data> </item>
  <item> <name>Date</name> <data>2005-02-24</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
   <requirement>The UA must support namespaces for this test.</requirement>
  <content>
  <p xmlns="http://www.w3.org/1999/xhtml" class="warning">This test requires support for two or more of XHTML, xml:id, and DOM3 Core.</p>
<div xmlns="http://www.w3.org/1999/xhtml" id="Aone" xml:id="Atwo" title="Athree">This line should be green.</div>
  <p xmlns="http://www.w3.org/1999/xhtml" id="Bone">This line should be green.</p>
  <p xmlns="http://www.w3.org/1999/xhtml" xml:id="Ctwo">This line should be green.</p>
  <p xmlns="http://www.w3.org/1999/xhtml" title="Dthree">This line should be green.</p>
 <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript">
  document.getElementsByTagNameNS(&#39;http://www.w3.org/1999/xhtml&#39;, &#39;div&#39;)[0].setIdAttribute(&#39;title&#39;, true);
  document.getElementsByTagNameNS(&#39;http://www.w3.org/1999/xhtml&#39;, &#39;p&#39;)[3].setIdAttribute(&#39;title&#39;, true);
 </script>
 <!-- This test could also be done using a custom DOCTYPE with an internal subset, which would
      then work in any XHTML UA. However, that requires massive changes to the generator scripts.
      Better, if we need such a test, would be to special-case it and have 15d be a separate file. -->
</content>
  <source>
   <css>
.warning { color: navy; }
div { color: red; }
#Aone#Atwo, #Aone#Athree, #Atwo#Athree { color: green; }
p { color: green; }
#Bone#Btwo, #Bone#Bthree, #Btwo#Bthree { color: red; }
#Cone#Ctwo, #Cone#Cthree, #Ctwo#Cthree { color: red; }
#Done#Dtwo, #Done#Dthree, #Dtwo#Dthree { color: red; }
</css>
   <xml>
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;warning&quot;&gt;This test requires support for two or more of XHTML, xml:id, and DOM3 Core.&lt;/p&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;Aone&quot; xml:id=&quot;Atwo&quot; title=&quot;Athree&quot;&gt;This line should be green.&lt;/div&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;Bone&quot;&gt;This line should be green.&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:id=&quot;Ctwo&quot;&gt;This line should be green.&lt;/p&gt;
  &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; title=&quot;Dthree&quot;&gt;This line should be green.&lt;/p&gt;
 &lt;script xmlns=&quot;http://www.w3.org/1999/xhtml&quot; type=&quot;text/javascript&quot;&gt;
  document.getElementsByTagNameNS(&amp;#39;http://www.w3.org/1999/xhtml&amp;#39;, &amp;#39;div&amp;#39;)[0].setIdAttribute(&amp;#39;title&amp;#39;, true);
  document.getElementsByTagNameNS(&amp;#39;http://www.w3.org/1999/xhtml&amp;#39;, &amp;#39;p&amp;#39;)[3].setIdAttribute(&amp;#39;title&amp;#39;, true);
 &lt;/script&gt;
 &lt;!-- This test could also be done using a custom DOCTYPE with an internal subset, which would
      then work in any XHTML UA. However, that requires massive changes to the generator scripts.
      Better, if we need such a test, would be to special-case it and have 15d be a separate file. --&gt;
</xml>
  </source>
</test>