/[suikacvs]/www/test/dom/xpath/html/boolean-attr-value-3.xhtml
Suika

Contents of /www/test/dom/xpath/html/boolean-attr-value-3.xhtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Feb 13 14:36:11 2007 UTC (18 years, 5 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
New tests

1 wakaba 1.1 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
2     <head>
3     <title>DOM3 XPath vs XHTML Document</title>
4     </head>
5     <body>
6     <h1>DOM3 XPath vs XHTML Document</h1>
7    
8     <dl compact="compact"><dt>An element with <code>compact=compact</code>.</dt></dl>
9    
10     <dl compact=" compact "><dt>An element with <code>compact=" compact "</code>.</dt></dl>
11    
12     <p id="status"></p>
13    
14     <script type="text/javascript"><![CDATA[
15     document.getElementById ('status').appendChild
16     (document.createTextNode ('FAIL'));
17     var nl = document.evaluate ('//*[@compact = "compact"]', document, null,
18     XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
19     for (var i = 0; i < nl.snapshotLength; i++) {
20     nl.snapshotItem (i).style.color = 'blue';
21     }
22     document.getElementById ('status').firstChild.data
23     = '"//*[@compact = "compact"]" elements are colored blue.';
24     ]]></script>
25     <noscript>NOSCRIPT</noscript>
26    
27     </body>
28     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24