1 <?xml-stylesheet href="css3-modsel-15c.css" type="text/css"?>
3 <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>
4 <div xmlns="http://www.w3.org/1999/xhtml" id="Aone" xml:id="Atwo" title="Athree">This line should be green.</div>
5 <p xmlns="http://www.w3.org/1999/xhtml" id="Bone">This line should be green.</p>
6 <p xmlns="http://www.w3.org/1999/xhtml" xml:id="Ctwo">This line should be green.</p>
7 <p xmlns="http://www.w3.org/1999/xhtml" title="Dthree">This line should be green.</p>
8 <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript">
9 document.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'div')[0].setIdAttribute('title', true);
10 document.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'p')[3].setIdAttribute('title', true);
12 <!-- This test could also be done using a custom DOCTYPE with an internal subset, which would
13 then work in any XHTML UA. However, that requires massive changes to the generator scripts.
14 Better, if we need such a test, would be to special-case it and have 15d be a separate file. -->