<?xml-stylesheet href="../../../style/xhtml-full.css" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Multiple IDs</title>
  <meta name="author" content="Ian Hickson"/>
  <link rel="stylesheet" type="text/css" href="../../../style/xhtml-full.css"/> <!-- yes this means compliant UAs get to import this twice -->
  <style type="text/css"><![CDATA[
.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; }
]]></style>
  <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
  <link rel="prev" href="css3-modsel-15b.xml" title="Multiple ID selectors"/>
  <link rel="next" href="css3-modsel-16.xml" title=":link pseudo-class"/>
  <link rel="last" href="css3-modsel-184f.xml" title="NEGATED contains attribute selector with empty value"/>
  <link rel="up" href="./index.html"/>
  <link rel="top" href="../../../index.html"/>
 </head>
 <body>
  <table class="testDescription">
   <tr>
    <th class="b">CSS 3 Module</th> <!-- XXX hard coded to say CSS 3 -->
    <th class="c" colspan="2">
     <a href="css3-modsel-15b.xml" title="Multiple ID selectors">&lt;==</a>
     Test #
     <a href="css3-modsel-16.xml" title=":link pseudo-class">==&gt;</a>
    </th>
   </tr>
   <tr>
    <td class="b">W3C Selectors</td>
    <td class="c" colspan="2">22 of 276 of the static tests category</td>
   </tr>
   <tr>
    <th class="b">Testing</th>
    <th class="a">Date</th>
    <th class="a">Revision</th>
   </tr>
   <tr>
    <td class="b">Multiple IDs (ID #15c)</td>
    <td class="a">2005-02-24</td>
    <td class="a">1.1</td>
   </tr>
  </table>
  <p class="WARNING">NOTE: The UA must support namespaces for this test.</p>
  <div class="testSource">
   <div class="testText">
  <p class="warning">This test requires support for two or more of XHTML, xml:id, and DOM3 Core.</p>
<div id="Aone" xml:id="Atwo" title="Athree">This line should be green.</div>
  <p id="Bone">This line should be green.</p>
  <p xml:id="Ctwo">This line should be green.</p>
  <p title="Dthree">This line should be green.</p>
 <script 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. -->
</div>
   <pre class="rules">
.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; }
</pre>
   <pre class="rules">
  &lt;p 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 id=&quot;Aone&quot; xml:id=&quot;Atwo&quot; title=&quot;Athree&quot;&gt;This line should be green.&lt;/div&gt;
  &lt;p id=&quot;Bone&quot;&gt;This line should be green.&lt;/p&gt;
  &lt;p xml:id=&quot;Ctwo&quot;&gt;This line should be green.&lt;/p&gt;
  &lt;p title=&quot;Dthree&quot;&gt;This line should be green.&lt;/p&gt;
 &lt;script 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;
</pre>
  </div>
 </body>
</html>