/[suikacvs]/www/test/dom/node/local-name/dom1-element-local-name-3.svg
Suika

Contents of /www/test/dom/node/local-name/dom1-element-local-name-3.svg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Jun 15 15:30:19 2007 UTC (17 years, 10 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: image/svg+xml
Firefox 1.5: uppercase in HTML, otherwise as is; Opera 9: as is

1 <svg xmlns="http://www.w3.org/2000/svg">
2 <text id="result" x="1" y="20">FAIL (not executed)</text>
3 <script type="text/javascript">
4 var result = document.getElementById ('result');
5 result.firstChild.data = 'FAIL';
6 var el = document.createElement ('elementName');
7 if (typeof (el.localName) == 'undefined') {
8 result.firstChild.data = 'FAIL (undefined)';
9 } else if (el.localName == null) {
10 result.firstChild.data = 'PASS (as per DOM3)';
11 } else if (el.localName == 'elementname') {
12 result.firstChild.data = 'FAIL (lowercase)';
13 } else if (el.localName == 'elementName') {
14 result.firstChild.data = 'FAIL (as is)';
15 } else if (el.localName == 'ELEMENTNAME') {
16 result.firstChild.data = 'FAIL (uppercase)';
17 } else {
18 result.firstChild.data = 'FAIL';
19 }
20 </script>
21 </svg>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24