| 71 |
if (document.getElementById ('html5').checked) { |
if (document.getElementById ('html5').checked) { |
| 72 |
uri += 'html/'; |
uri += 'html/'; |
| 73 |
uri += document.getElementById ('element').value + '/'; |
uri += document.getElementById ('element').value + '/'; |
| 74 |
|
} else if (document.getElementById ('h2h').checked) { |
| 75 |
|
uri += 'h2h/'; |
| 76 |
|
uri += document.getElementById ('element').value + '/'; |
| 77 |
} else { |
} else { |
| 78 |
uri += 'xhtml/'; |
uri += 'xhtml/'; |
| 79 |
uri += '/'; |
uri += '/'; |
| 80 |
} |
} |
| 81 |
if (document.getElementById ('format-test').checked) { |
if (document.getElementById ('format-test').checked) { |
| 82 |
this.action = uri + 'test'; |
this.action = uri + 'test'; |
| 83 |
|
} else if (document.getElementById ('format-xml').checked) { |
| 84 |
|
this.action = uri + 'xml'; |
| 85 |
} else { |
} else { |
| 86 |
this.action = uri + 'html'; |
this.action = uri + 'html'; |
| 87 |
} |
} |
| 100 |
<fieldset> |
<fieldset> |
| 101 |
<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> |
| 102 |
<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> |
| 103 |
|
<p><label title="Parse as H2H document if checked"><input type="radio" name="input-format" id="h2h" onchange="element.disabled = true"> H2H</label></p> |
| 104 |
<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> |
| 105 |
<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> |
| 106 |
</fieldset> |
</fieldset> |
| 107 |
<fieldset> |
<fieldset> |
| 108 |
<legend>Output format</legend> |
<legend>Output format</legend> |
| 109 |
<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"> |
| 110 |
<code>innerHTML</code></label></p> |
<code>innerHTML</code> (HTML)</label></p> |
| 111 |
|
<p><label title="Show the value of |document.innerHTML| (in XML) if checked"><input type="radio" name="format" value="xml" id="format-xml"> |
| 112 |
|
<code>innerHTML</code> (XML)</label></p> |
| 113 |
<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"> |
| 114 |
parser test</label></p> |
parser test</label></p> |
| 115 |
</fieldset> |
</fieldset> |