6 |
form { |
form { |
7 |
display: block; |
display: block; |
8 |
position: relative; |
position: relative; |
9 |
height: 20em; |
height: 30em; |
10 |
margin-left: 1em; |
margin-left: 1em; |
11 |
margin-right: 1em; |
margin-right: 1em; |
12 |
} |
} |
19 |
border-style: none; |
border-style: none; |
20 |
padding: 0; |
padding: 0; |
21 |
} |
} |
22 |
iframe { |
#result-para { |
23 |
display: block; |
display: block; |
24 |
position: absolute; |
position: absolute; |
25 |
top: 0; right: 0; |
top: 0; right: 0; |
26 |
width: 40%; bottom: 0; |
width: 40%; bottom: 0; |
27 |
margin: 0; |
margin: 0; |
28 |
} |
} |
29 |
|
iframe { |
30 |
|
display: block; |
31 |
|
width: 100%; |
32 |
|
height: 100%; |
33 |
|
} |
34 |
textarea { |
textarea { |
35 |
width: 100%; |
width: 100%; |
36 |
height: 19em; |
height: 19em; |
76 |
if (document.getElementById ('html5').checked) { |
if (document.getElementById ('html5').checked) { |
77 |
uri += 'html/'; |
uri += 'html/'; |
78 |
uri += document.getElementById ('element').value + '/'; |
uri += document.getElementById ('element').value + '/'; |
79 |
|
} else if (document.getElementById ('xml1').checked) { |
80 |
|
uri += 'xml1/'; |
81 |
|
uri += document.getElementById ('element').value + '/'; |
82 |
|
} else if (document.getElementById ('swml').checked) { |
83 |
|
uri += 'swml/'; |
84 |
|
uri += document.getElementById ('element').value + '/'; |
85 |
} else if (document.getElementById ('h2h').checked) { |
} else if (document.getElementById ('h2h').checked) { |
86 |
uri += 'h2h/'; |
uri += 'h2h/'; |
87 |
uri += document.getElementById ('element').value + '/'; |
uri += document.getElementById ('element').value + '/'; |
91 |
} |
} |
92 |
if (document.getElementById ('format-test').checked) { |
if (document.getElementById ('format-test').checked) { |
93 |
this.action = uri + 'test'; |
this.action = uri + 'test'; |
94 |
|
} else if (document.getElementById ('format-xml').checked) { |
95 |
|
this.action = uri + 'xml'; |
96 |
} else { |
} else { |
97 |
this.action = uri + 'html'; |
this.action = uri + 'html'; |
98 |
} |
} |
111 |
<fieldset> |
<fieldset> |
112 |
<p><label title="Show any HTML5 parse errors if checked"><input type="radio" name="input-format" id="html5" onchange="element.disabled = false" checked> HTML5</label></p> |
<p><label title="Show any HTML5 parse errors if checked"><input type="radio" name="input-format" id="html5" onchange="element.disabled = false" checked> HTML5</label></p> |
113 |
<p><label title="Show any XML 1.0/1.1 parse errors if checked (using a non-validating parser)"><input type="radio" name="input-format" onchange="element.disabled = true" id="xhtml5"> XHTML5</label></p> |
<p><label title="Show any XML 1.0/1.1 parse errors if checked (using a non-validating parser)"><input type="radio" name="input-format" onchange="element.disabled = true" id="xhtml5"> XHTML5</label></p> |
114 |
|
<p><label title="Show any XML 1.0/1.1 parse errors if checked (using a non-validating parser)"><input type="radio" name="input-format" onchange="element.disabled = true" id="xml1"> XML1 (work in progress)</label></p> |
115 |
|
|
116 |
|
<p><label title="Parse as SWML text serialization document if checked"><input |
117 |
|
type="radio" name="input-format" id="swml" |
118 |
|
onchange="element.disabled = true"> SWML</label></p> |
119 |
|
|
120 |
<p><label title="Parse as H2H document if checked"><input type="radio" name="input-format" id="h2h" onchange="element.disabled = true"> H2H</label></p> |
<p><label title="Parse as H2H document if checked"><input type="radio" name="input-format" id="h2h" onchange="element.disabled = true"> H2H</label></p> |
121 |
|
|
122 |
<p><input type="text" name="element" id="element" value="" title="If specified, the input is parsed by the fragment parsing (innerHTML) algorithm."></p> |
<p><input type="text" name="element" id="element" value="" title="If specified, the input is parsed by the fragment parsing (innerHTML) algorithm."></p> |
123 |
<p><label title="Show any conformance error of the parsed DOM tree if checked"><input type="checkbox" name="dom5"> DOM5 HTML</label></p> |
<p><label title="Show any conformance error of the parsed DOM tree if checked"><input type="checkbox" name="dom5"> DOM5 HTML</label></p> |
124 |
</fieldset> |
</fieldset> |
125 |
<fieldset> |
<fieldset> |
126 |
<legend>Output format</legend> |
<legend>Output format</legend> |
127 |
<p><label title="Show the value of |document.innerHTML| if checked"><input type="radio" name="format" value="html" checked id="format-html"> |
<p><label title="Show the value of |document.innerHTML| (in HTML) if checked"><input type="radio" name="format" value="html" checked id="format-html"> |
128 |
<code>innerHTML</code></label></p> |
<code>innerHTML</code> (HTML)</label></p> |
129 |
|
<p><label title="Show the value of |document.innerHTML| (in XML) if checked"><input type="radio" name="format" value="xml" id="format-xml"> |
130 |
|
<code>innerHTML</code> (XML)</label></p> |
131 |
<p><label title="Show the parsed DOM in the format used in html5lib tests"><input type="radio" name="format" value="test" id="format-test"> |
<p><label title="Show the parsed DOM in the format used in html5lib tests"><input type="radio" name="format" value="test" id="format-test"> |
132 |
parser test</label></p> |
parser test</label></p> |
133 |
</fieldset> |
</fieldset> |
135 |
|
|
136 |
</fieldset> |
</fieldset> |
137 |
|
|
138 |
<p><iframe name="result" src="about:blank"></iframe></p> |
<p id=result-para><iframe name="result" src="about:blank"></iframe></p> |
139 |
</form> |
</form> |
140 |
|
|
141 |
<address>Powered by |
<address>Powered by |