/[suikacvs]/www/test/html/form/hidden/value-nl-bare.html
Suika

Contents of /www/test/html/form/hidden/value-nl-bare.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sat May 27 09:07:02 2006 UTC (20 years, 2 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
++ test/html/form/text/ChangeLog	27 May 2006 09:05:36 -0000
	* value-with-crlf-charref.html: Charref was incorrect.

2006-05-27  Wakaba  <wakaba@suika.fam.cx>

++ test/html/form/ChangeLog	27 May 2006 08:34:07 -0000
	* hidden/: New directory.

2006-05-27  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 <!DOCTYPE html>
2     <html lang="en">
3     <head>
4     <title>Hidden Control with New Line</title>
5     <script type="text/javascript" src="../../../support/result.js"></script>
6     </head>
7     <body onload="
8     var iel = document.getElementsByTagName ('input')[0];
9     setResult ('domValue', iel.value);
10     setResult ('domDefaultValue', iel.defaultValue);
11     setResult ('domGetAttributeValue', iel.getAttribute ('value'));
12     ">
13     <h1>Hidden Control with New Line</h1>
14     <form action="../asis" method="post">
15     <input type="hidden" name="hidden1" value="abcdefg
16     ABCDEFG"
17     onchange="
18     setResult ('domValue', this.value);
19     setResult ('domDefaultValue', this.defaultValue);
20     setResult ('domGetAttributeValue', this.getAttribute ('value'));
21     ">
22     <input type="submit">
23     </form>
24    
25     <h2>Source Code</h2>
26    
27     <p><code>value="abcdefg<br>ABCDEFG"</code></p>
28    
29     <h2>DOM <code>value</code></h2>
30    
31     <p id="domValue"></p>
32    
33     <h2>DOM <code>defaultValue</code></h2>
34    
35     <p id="domDefaultValue"></p>
36    
37     <h2>DOM <code>getAttribute ('value')</code></h2>
38    
39     <p id="domGetAttributeValue"></p>
40    
41     </body>
42     </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24