CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 22 of 276 of the static tests category | |
Testing | Date | Revision |
Multiple IDs (ID #15c) | 2005-02-24 | 1.1 |
NOTE: The UA must support namespaces for this test.
This test requires support for two or more of XHTML, xml:id, and DOM3 Core.
This line should be green.
This line should be green.
This line should be green.
.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; }
<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('http://www.w3.org/1999/xhtml', 'div')[0].setIdAttribute('title', true); document.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'p')[3].setIdAttribute('title', 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. -->