/[suikacvs]/www/test/dom/form/textarea/value/nbsp-value-1.html
Suika

Contents of /www/test/dom/form/textarea/value/nbsp-value-1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Thu Aug 23 06:48:19 2007 UTC (18 years, 10 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests

1 wakaba 1.1 <!DOCTYPE HTML>
2     <html>
3     <head>
4     <title>NBSP and &lt;textarea>.value</title>
5     </head>
6     <body>
7     <p id=result class=FAIL>FAIL (noscript)</p>
8     <p><textarea>&nbsp;</textarea></p>
9     <script>
10     var result = document.getElementById ('result');
11     result.firstChild.data = 'FAIL';
12    
13     var ta = document.getElementsByTagName ('textarea')[0];
14     var index = ta.value.indexOf ('\u00A0');
15     if (index == 0) {
16     result.firstChild.data = 'PASS';
17     result.className = 'PASS';
18     } else {
19     result.firstChild.data = 'FAIL (' + index + ', 0 = 0x' + ta.value.charCodeAt (0).toString (16).toUpperCase () + ')';
20     }
21     </script>
22     </body>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24