/[suikacvs]/www/test/html/form/hidden/value-crlf-charref.html
Suika

Contents of /www/test/html/form/hidden/value-crlf-charref.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, 3 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 CRLF References</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 Input with <code>CRLF</code> References</h1>
14     <form action="../asis" method="post">
15     <input type="hidden" name="hidden1" value="abcdefg&#x0D;&#x0A;ABCDEFG"
16     onchange="
17     setResult ('domValue', this.value);
18     setResult ('domDefaultValue', this.defaultValue);
19     setResult ('domGetAttributeValue', this.getAttribute ('value'));
20     ">
21     <input type="submit">
22     </form>
23    
24     <h2>Source Code</h2>
25    
26     <p><code>value="abcdefg&amp;#x0D;&amp;#x0A;ABCDEFG"</code></p>
27    
28     <h2>DOM <code>value</code></h2>
29    
30     <p id="domValue"></p>
31    
32     <h2>DOM <code>defaultValue</code></h2>
33    
34     <p id="domDefaultValue"></p>
35    
36     <h2>DOM <code>getAttribute ('value')</code></h2>
37    
38     <p id="domGetAttributeValue"></p>
39    
40     </body>
41     </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24