| 55 |
margin-top: 0; |
margin-top: 0; |
| 56 |
margin-bottom: 0; |
margin-bottom: 0; |
| 57 |
} |
} |
| 58 |
|
#element { |
| 59 |
|
width: 5em; |
| 60 |
|
} |
| 61 |
</style> |
</style> |
| 62 |
</head> |
</head> |
| 63 |
<body> |
<body onload="document.getElementById('element').disabled=!document.getElementById('html5').checked"> |
| 64 |
<h1>HTML5 Parser (<em>beta</em>) Web Interface |
<h1>HTML5 Parser (<em>beta</em>) Web Interface |
| 65 |
(manakai Version)</h1> |
(manakai Version)</h1> |
| 66 |
|
|
| 70 |
var uri = 'parser-manakai/'; |
var uri = 'parser-manakai/'; |
| 71 |
if (document.getElementById ('html5').checked) { |
if (document.getElementById ('html5').checked) { |
| 72 |
uri += 'html/'; |
uri += 'html/'; |
| 73 |
|
uri += document.getElementById ('element').value + '/'; |
| 74 |
} else { |
} else { |
| 75 |
uri += 'xhtml/'; |
uri += 'xhtml/'; |
| 76 |
|
uri += '/'; |
| 77 |
} |
} |
| 78 |
if (document.getElementById ('format-test').checked) { |
if (document.getElementById ('format-test').checked) { |
| 79 |
this.action = uri + 'test'; |
this.action = uri + 'test'; |
| 93 |
<p><button type="submit">Parse</button></p> |
<p><button type="submit">Parse</button></p> |
| 94 |
<fieldset> |
<fieldset> |
| 95 |
<fieldset> |
<fieldset> |
| 96 |
<p><label title="Show any HTML5 parse errors if checked"><input type="radio" name="input-format" id="html5" 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> |
| 97 |
<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" id="xhtml5"> XHTML5</label> |
<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> |
| 98 |
(<em>slow</em>)</p> |
<p><input type="text" name="element" id="element" value="" title="If specified, the input is parsed by the fragment parsing (innerHTML) algorithm."></p> |
| 99 |
<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> |
| 100 |
</fieldset> |
</fieldset> |
| 101 |
<fieldset> |
<fieldset> |