Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255

This commit is contained in:
James Graham 2015-03-27 09:15:38 +00:00
parent b2a5225831
commit 1a81b18b9f
12321 changed files with 544385 additions and 6 deletions

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid empty value for a/@name</title>
</head>
<body>
<a name=''></a>
</body>
</html>

View file

@ -0,0 +1,15 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;address&gt;</title>
</head>
<body>
<!-- is block -->
<address class="class" id="id" xml:lang="en">text</address>
<!-- can contain interactive -->
<address><a>text</a></address>
<!-- can contain strict inline -->
<address>text <em>elem</em></address>
</body>
</html>

View file

@ -0,0 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base/>
<title>base element missing href and target attribute</title>
</head>
<body>
<iframe sandbox="aLLOw-TOp-nAVIGAtion"></iframe>
</body>
</html>

View file

@ -0,0 +1,16 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;blockquote&gt;</title>
</head>
<body>
<!-- is block, contains blocks -->
<blockquote cite="url" class="class" id="id" xml:lang="en">
<h2>header</h2>
<p>text</p>
<p>text2</p>
</blockquote>
<!-- can contain interactive -->
<blockquote><p><a>text</a></p></blockquote>
</body>
</html>

View file

@ -0,0 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;code&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><code class="class" xml:lang="en">text</code></p>
<!-- is strictly inline -->
<p><dfn><code class="class" xml:lang="en">text</code></dfn></p>
<!-- can be empty -->
<p>text <code></code></p>
<p>text <dfn><code></code></dfn></p>
<!-- can contain interactive -->
<p><code><a>text</a></code></p>
<p><dfn><code><a>text</a></code></dfn></p>
</body>
</html>

View file

@ -0,0 +1,32 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;del&gt;</title>
</head>
<body>
<!-- can contain inline while in inline context -->
<p>paragraph
<del>
<em>some</em>
</del>
</p>
<!-- can contain strictly inline while in strictly inline context -->
<p><dfn>strictly inline
<del>
<em>text</em>
</del>
</dfn></p>
<!-- can contain interactive if ancestor does not forbid it -->
<p>paragraph
<del>
<a>link</a>
</del>
</p>
<p><dfn>strictly inline
<del>
<a>link</a>
</del>
</dfn></p>
</body>
</html>

View file

@ -0,0 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;dialog&gt;</title>
</head>
<body>
<dialog>
<dt>Foo</dt>
<dt>Bar</dt>
<dd><p>Blah</p></dd>
<dd><p>Bleh</p></dd>
</dialog>
</body>
</html>

View file

@ -0,0 +1,53 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Definition List: &lt;dl&gt; &lt;dt&gt; &lt;dd&gt;</title>
</head>
<body>
<!-- is block -->
<dl class="class" id="id" xml:lang="en">
<dt class="class" id="id2" xml:lang="en">text</dt>
<dd class="class" id="id3" xml:lang="en">text</dd>
</dl>
<!-- can be empty -->
<dl></dl>
<dl>
<dt></dt>
<dd></dd>
</dl>
<!-- multiple groups, but always (dt+,dd+) -->
<dl>
<dt>text</dt>
<dd>more text</dd>
<dt>text</dt>
<dd>more text</dd>
<dd>more text</dd>
<dt>text</dt>
<dt>text</dt>
<dt>text</dt>
<dd>more text</dd>
</dl>
<!-- dd can contain structured inline, dt strictly inline -->
<dl>
<dt>some <em>text</em></dt>
<dd>more <pre>text</pre></dd>
</dl>
<!-- dd can contain blocks -->
<dl>
<dt>some <em>text</em></dt>
<dd>
<p>more</p>
<p>text</p>
</dd>
</dl>
<!-- can contain interactive -->
<dl>
<dt>some <a>text</a></dt>
<dd>more <a>text</a></dd>
</dl>
</body>
</html>

View file

@ -0,0 +1,21 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;em&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><em class="class" xml:lang="en">text</em></p>
<!-- is strictly inline -->
<p><dfn><em class="class" xml:lang="en">text</em></dfn></p>
<!-- can be empty -->
<p>text <em></em></p>
<p>text <dfn><em></em></dfn></p>
<!-- can contain interactive -->
<p><em><a>text</a></em></p>
<p><dfn><em><a>text</a></em></dfn></p>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>element embed with bad height value</title>
</head>
<body>
<embed height="20%"/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>element embed with bad type value</title>
</head>
<body>
<embed type="foo"/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>element embed with bad width value</title>
</head>
<body>
<embed width="20%"/>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Element before figcaption and text after</title>
</head>
<body>
<figure>
<img src='foo' alt='bar'/>
<figcaption>Bar</figcaption>
text
</figure>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Text before legend and element after</title>
</head>
<body>
<figure>
text
<figcaption>Bar</figcaption>
<img src='foo' alt='bar'/>
</figure>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Element before figcaption and text after</title>
</head>
<body>
<figure>
<img src='foo' alt='bar'/>
<figcaption>Bar</figcaption>
text
</figure>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Text before figcaption and text after</title>
</head>
<body>
<figure>
text
<figcaption>Bar</figcaption>
text
</figure>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Element before figcaption and element after</title>
</head>
<body>
<figure>
<img src='foo' alt='bar'/>
<figcaption>Bar</figcaption>
<img src='foo' alt='bar'/>
</figure>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Element before figcaption and element after</title>
</head>
<body>
<figure>
<img src='foo' alt='bar'/>
<figcaption>Bar</figcaption>
<img src='foo' alt='bar'/>
</figure>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>"footer" with "footer" descendant</title>
</head>
<body>
<footer>
<footer></footer>
</footer>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>"footer" with "header" descendant</title>
</head>
<body>
<footer>
<header></header>
</footer>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>"header" with "footer" descendant</title>
</head>
<body>
<header>
<footer></footer>
</header>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>"header" with "header" descendant</title>
</head>
<body>
<header>
<header></header>
</header>
</body>
</html>

View file

@ -0,0 +1,19 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;iframe&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><iframe
src="uri"
class="class"
xml:lang="en"></iframe></p>
<!-- is strictly inline -->
<p><dfn><iframe
src="uri"
class="class"
xml:lang="en"></iframe></dfn></p>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The iframe element must be empty in XML documents</title>
</head>
<body>
<iframe>text</iframe>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid ismap</title>
</head>
<body>
<p><img src='foo' alt='bar' ismap='ismap'/></p>
</body>
</html>

View file

@ -0,0 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid img@usemap as descendant of &lt;a> element</title>
</head>
<body>
<map name="bar"/>
<p id="foo"><a href="#foo"><img src="http://www.w3.org/Icons/w3c_main.png" usemap="#bar" alt=""/></a></p>
</body>
</html>

View file

@ -0,0 +1,29 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;img&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><a href='foo'><img
src="url"
alt="text"
width="42"
height="095"
ismap="ismap"
class="class"
xml:lang="en"></img></a></p>
<!-- is strictly inline -->
<p><a href='foo'><dfn><img
src="url"
alt="text"
width="42"
height="095"
ismap="ismap"
class="class"
xml:lang="en"></img></dfn></a></p>
<!-- src and alt are required, others optional -->
<p><img src="ur" alt="text"></img></p>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>img with 0 value for width and height</title>
</head>
<body>
<img src="url" width="0" height="0" alt="bar"/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>img with 0 value for width and height</title>
</head>
<body>
<img src="url" width="-1" height="-1"/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>img with positive values for width and height</title>
</head>
<body>
<img src="url" width="10" height="10" alt="bar"/>
</body>
</html>

View file

@ -0,0 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>valid img@usemap</title>
</head>
<body>
<map name="bar"/>
<p><img src="foo.png" usemap="#bar" alt="bar"/></p>
</body>
</html>

View file

@ -0,0 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>valid input/@list reference to datalist/@id</title>
</head>
<body>
<datalist id="foo"></datalist>
<input type="text" list="bar"></input>
</body>
</html>

View file

@ -0,0 +1,25 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;ins&gt;</title>
</head>
<body>
<!-- can contain strictly inline while in strictly inline context -->
<p><dfn>strictly inline
<ins>
<em>text</em>
</ins>
</dfn></p>
<!-- can contain interactive if ancestor does not forbid it -->
<p>paragraph
<ins>
<a>link</a>
</ins>
</p>
<p><dfn>strictly inline
<ins>
<a>link</a>
</ins>
</dfn></p>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>empty keygen with no attributes</title>
</head>
<body>
<keygen></keygen>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>no-void keygen</title>
</head>
<body>
<keygen>foo</keygen>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen with "challenge" attribute</title>
</head>
<body>
<keygen challenge="123456"/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen with "keytype" attribute</title>
</head>
<body>
<keygen keytype="rsa"/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen with invalid value for "keytype" attribute</title>
</head>
<body>
<keygen keytype="dsa"/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen with empty "challenge" attribute</title>
</head>
<body>
<keygen challenge=""/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen with invalid empty "keytype" attribute</title>
</head>
<body>
<keygen keytype=""/>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as &lt;label descendant</title>
</head>
<body>
<label for="foo">
<keygen id="foo"/>
</label>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as &lt;label descendant, with wrong ID</title>
</head>
<body>
<label for="foo">
<keygen id="bar"/>
</label>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as &lt;label descendant, with no ID</title>
</head>
<body>
<label for="foo">
<keygen/>
</label>
</body>
</html>

View file

@ -0,0 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as redundant &lt;label descendant</title>
</head>
<body>
<label for="foo">
<input id="foo"/>
<keygen/>
</label>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as an invalid &lt;a> descendant</title>
</head>
<body>
<a href="url">
<keygen/>
</a>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>no-void keygen</title>
</head>
<body>
<keygen>foo</keygen>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen with invalid empty "keytype" attribute</title>
</head>
<body>
<keygen keytype=""/>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as &lt;label descendant, with no ID</title>
</head>
<body>
<label for="foo">
<keygen/>
</label>
</body>
</html>

View file

@ -0,0 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as redundant &lt;label descendant</title>
</head>
<body>
<label for="foo">
<input id="foo"/>
<keygen/>
</label>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>keygen as an invalid &lt;a> descendant</title>
</head>
<body>
<a href="url">
<keygen/>
</a>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>link element missing href attribute</title>
<link rel="stylesheet"/>
</head>
<body>
</body>
</html>

View file

@ -0,0 +1,21 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;map&gt;</title>
</head>
<body>
<!-- is block, contains blocks and <area> -->
<map class="class" id="id" name="id" xml:lang="en">
<h2>header</h2>
<p><area alt="text" coords="1,2,3,4" href='foo'></area>p</p>
<p>text</p>
<p><area alt="text" coords="3,2,5,4" href='foo'></area>p</p>
<p>text2</p>
</map>
<!-- can contain interactive -->
<map id='foo' name='foo'>
<p><a>text</a></p>
<p><area alt="text" coords="3,2,5,4" href='foo'></area>p</p>
</map>
</body>
</html>

View file

@ -0,0 +1,21 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;m&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><mark class="class" xml:lang="en">text</mark></p>
<!-- is strictly inline -->
<p><dfn><mark class="class" xml:lang="en">text</mark></dfn></p>
<!-- can be empty -->
<p>text <mark></mark></p>
<p>text <dfn><mark></mark></dfn></p>
<!-- can contain interactive -->
<p><mark><a>text</a></mark></p>
<p><dfn><mark><a>text</a></mark></dfn></p>
</body>
</html>

View file

@ -0,0 +1,21 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>valid contextmenus</title>
</head>
<body>
<menu id='foo'>
<menuitem id='com' label='The Command'/>
</menu>
<menu id='bar'>
<menuitem id='com2' label='The Command'/>
</menu>
<menu id='foo2'>
<menuitem id='com3' label='The Command'/>
</menu>
<menu id='bar2'>
<menuitem id='com4' label='The Command'/>
</menu>
<p contextmenu='foo'>foo</p>
<p contextmenu='bar'>bar</p>
</body>
</html>

View file

@ -0,0 +1,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid contextmenu</title>
</head>
<body>
<menu id='foo'>
<menuitem id='com' label='The Command'/>
</menu>
<menu id='bar'>
<menuitem id='com2' label='The Command'/>
</menu>
<p contextmenu='baz'>foo</p>
</body>
</html>

View file

@ -0,0 +1,26 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;t&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><meter value='0.5'>text</meter></p>
<!-- is strictly inline -->
<p><dfn><meter value='0.5'>text</meter></dfn></p>
<!-- can be empty -->
<p>text <meter value='0.5'></meter></p>
<p>text <dfn><meter value='0.5'></meter></dfn></p>
<!-- can contain interactive -->
<p><meter value='0.5'><a>text</a></meter></p>
<p><dfn><meter value='0.5'><a>text</a></meter></dfn></p>
<!-- textContent -->
<!-- * <p><meter>text 1.88 text 33.881 text</meter></p> -->
<!-- * <p><meter>text 1.88 % text</meter></p> -->
<!-- * <p><meter>text 1.88 &#x2031; text</meter></p> -->
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>valid meter</title>
</head>
<body>
<meter min='0.0' value='0.1' low='0.2' optimum='0.3' high='0.4' max='0.5'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid meter</title>
</head>
<body>
<meter min='0.2' value='0.1'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid meter</title>
</head>
<body>
<meter min='0.3' low='0.2'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid meter</title>
</head>
<body>
<meter min='0.4' optimum='0.3'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid meter</title>
</head>
<body>
<meter min='0.2' value='0.1'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid meter</title>
</head>
<body>
<meter min='0.4' optimum='0.3'/>
</body>
</html>

View file

@ -0,0 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>object element missing data and type attributes</title>
</head>
<body>
<object></object>
</body>
</html>

View file

@ -0,0 +1,75 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;object&gt;</title>
</head>
<body>
<map name="idref"></map>
<!-- is structured inline -->
<p><object
data="uri"
height="40"
usemap="#idref"
width="40"
class="class"
xml:lang="en"></object></p>
<!-- is strictly inline -->
<p><dfn><object
data="uri"
height="40"
usemap="#idref"
width="40"
class="class"
xml:lang="en"></object></dfn></p>
<!-- can contain inline while in inline context, but param must come first -->
<p>paragraph
<object data='bar.ogg'>
<em>some</em>
</object>
</p>
<p>paragraph
<object data='bar.ogg'>
<param name="foo" value='bar'></param><param name="bar" value='foo'></param>
<em>some</em>
</object>
</p>
<!-- can contain strictly inline while in strictly inline context, but param must come first -->
<p><dfn>strictly inline
<object data='bar.ogg'>
<em>text</em>
</object>
</dfn></p>
<p><dfn>strictly inline
<object data='bar.ogg'>
<param name="foo" value='bar'></param><param name="bar" value='foo'></param>
<em>text</em>
</object>
</dfn></p>
<!-- can contain interactive if ancestor does not forbid it, but param must come first -->
<p>paragraph
<object data='bar.ogg'>
<a>link</a>
</object>
</p>
<p>paragraph
<object data='bar.ogg'>
<param name="foo" value='bar'></param><param name="bar" value='foo'></param>
<a>link</a>
</object>
</p>
<p><dfn>strictly inline
<object data='foo.mov'>
<a>link</a>
</object>
</dfn></p>
<p><dfn>strictly inline
<object type='text/plain'>
<param name="foo" value='bar'></param><param name="bar" value='foo'></param>
<a>link</a>
</object>
</dfn></p>
</body>
</html>

View file

@ -0,0 +1,36 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Ordered List: &lt;ol&gt; &lt;li&gt;</title>
</head>
<body>
<!-- is block -->
<ol class="class" id="id" xml:lang="en" start="05">
<li class="class" id="id2" xml:lang="en" value="9">text</li>
</ol>
<!-- can be empty -->
<ol></ol>
<ol>
<li></li>
<li></li>
</ol>
<!-- can contain structured inline -->
<ol>
<li>some <em>text</em>
<pre>more text</pre>
</li>
</ol>
<!-- can contain blocks -->
<ol>
<li>
<p>some</p>
<p>text</p>
</li>
</ol>
<!-- can contain interactive -->
<ol><li><a>text</a></li></ol>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;p&gt;</title>
</head>
<body>
<!-- is block -->
<p class="class" id="id" xml:lang="en">text</p>
<!-- can contain interactive -->
<p><a>text</a></p>
</body>
</html>

View file

@ -0,0 +1,15 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;pre&gt;</title>
</head>
<body>
<!-- is block -->
<pre class="class" id="id" xml:lang="en">text</pre>
<!-- can contain interactive -->
<pre><a>text</a></pre>
<!-- can contain strictly inline -->
<pre>text <em>elem</em></pre>
</body>
</html>

View file

@ -0,0 +1,10 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>valid progress</title>
</head>
<body>
<progress value='0.5'/>
<progress value='2.05' max='2.1' />
<progress value='2.05' max='2.05' />
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid progress</title>
</head>
<body>
<progress value='1.1'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid progress</title>
</head>
<body>
<progress value='0.9' max='0.5'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid progress</title>
</head>
<body>
<progress value='1.1'/>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>invalid progress</title>
</head>
<body>
<progress value='0.9' max='0.5'/>
</body>
</html>

View file

@ -0,0 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;q&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><q cite="url" class="class" xml:lang="en">text</q></p>
<!-- is strictly inline -->
<p><dfn><q cite="url" class="class" xml:lang="en">text</q></dfn></p>
<!-- can be empty -->
<p>text <q></q></p>
<p>text <dfn><q></q></dfn></p>
<!-- can contain interactive -->
<p><q><a>text</a></q></p>
<p><dfn><q><a>text</a></q></dfn></p>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ruby element missing rt child</title>
</head>
<body>
<ruby></ruby>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ruby element missing rt child</title>
</head>
<body>
<ruby><rt></rt><rp></rp><rp></rp></ruby>
</body>
</html>

View file

@ -0,0 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;samp&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><samp class="class" xml:lang="en">text</samp></p>
<!-- is strictly inline -->
<p><dfn><samp class="class" xml:lang="en">text</samp></dfn></p>
<!-- can be empty -->
<p>text <samp></samp></p>
<p>text <dfn><samp></samp></dfn></p>
<!-- can contain interactive -->
<p><samp><a>text</a></samp></p>
<p><dfn><samp><a>text</a></samp></dfn></p>
</body>
</html>

View file

@ -0,0 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>the "language" attribute is obsolete</title>
</head>
<body>
<script language="vbscript"></script>
</body>
</html>

View file

@ -0,0 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;span&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><span class="class" xml:lang="en">text</span></p>
<!-- is strictly inline -->
<p><dfn><span class="class" xml:lang="en">text</span></dfn></p>
<!-- can be empty -->
<p>text <span></span></p>
<p>text <dfn><span></span></dfn></p>
<!-- can contain interactive -->
<p><span><a>text</a></span></p>
<p><dfn><span><a>text</a></span></dfn></p>
</body>
</html>

View file

@ -0,0 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;strong&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><strong class="class" xml:lang="en">text</strong></p>
<!-- is strictly inline -->
<p><dfn><strong class="class" xml:lang="en">text</strong></dfn></p>
<!-- can be empty -->
<p>text <strong></strong></p>
<p>text <dfn><strong></strong></dfn></p>
<!-- can contain interactive -->
<p><strong><a>text</a></strong></p>
<p><dfn><strong><a>text</a></strong></dfn></p>
</body>
</html>

View file

@ -0,0 +1,20 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;small&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><small class="class" xml:lang="en">text</small></p>
<!-- is strictly inline -->
<p><dfn><small class="class" xml:lang="en">text</small></dfn></p>
<!-- can be empty -->
<p>text <small></small></p>
<p>text <dfn><small></small></dfn></p>
<!-- can contain interactive -->
<p><small><a>text</a></small></p>
<p><dfn><small><a>text</a></small></dfn></p>
</body>
</html>

View file

@ -0,0 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming HTML table</title>
</head>
<body>
<table>
<tbody>
<tr><td>1</td><td>2</td></tr>
<tr><td>3</td><td>4</td></tr>
</tbody>
</table>
</body>
</html>

View file

@ -0,0 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Non-Conforming HTML table (rowspan past end of row group)</title>
</head>
<body>
<table>
<tbody><tr><td>1</td><td rowspan="2">2</td><td>3</td><td>4</td></tr></tbody>
<tbody><tr><td>5</td><td>6</td><td>7</td></tr></tbody>
</table>
</body>
</html>

View file

@ -0,0 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming HTML table</title>
</head>
<body>
<table>
<tr><td colspan='2'>1</td><td>2</td></tr>
<tr><td>3</td><td colspan='2'>4</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Non-Conforming HTML table (Cell 5 overlaps cell 2)</title>
</head>
<body>
<table>
<tr><td>1</td><td rowspan="2">2</td><td>3</td><td>4</td></tr>
<tr><td colspan="2">5</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming HTML table</title>
</head>
<body>
<table>
<tr><td rowspan='2'>1</td><td>2</td></tr>
<tr><td rowspan='2'>3</td></tr>
<tr><td>4</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Non-Conforming HTML table (no cell starts in 3rd column)</title>
</head>
<body>
<table>
<tr><td colspan='3'>1</td><td>2</td></tr>
<tr><td>3</td><td colspan='3'>4</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Non-Conforming HTML table (3rd row has no cells beginning in it)</title>
</head>
<body>
<table>
<tr><td rowspan='3'>1</td><td>2</td></tr>
<tr><td rowspan='3'>3</td></tr>
<tr></tr>
<tr><td>4</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Conforming HTML table</title>
</head>
<body>
<table>
<col/><col/><col/>
<tr><td rowspan='0'>1</td><td>2</td></tr>
<tr><td rowspan='2'>3</td></tr>
<tr><td>4</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,55 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&lt;t&gt;</title>
</head>
<body>
<!-- is structured inline -->
<p><time datetime='2006-11-20'>text</time></p>
<!-- is strictly inline -->
<p><dfn><time datetime='2006-11-20'>text</time></dfn></p>
<!-- can be empty -->
<p>text <time datetime='2006-11-20'></time></p>
<p>text <dfn><time datetime='2006-11-20'></time></dfn></p>
<!-- can contain interactive -->
<p><time datetime='2006-11-20'><a>text</a></time></p>
<p><dfn><time datetime='2006-11-20'><a>text</a></time></dfn></p>
<!-- vague moment of time in attribute -->
<p><time datetime='2006-11-20T16:24'>text</time></p>
<p><time datetime='2006-11-20T16:24:33'>text</time></p>
<p><time datetime='2006-11-20T16:24:33.89'>text</time></p>
<p><time datetime='2006-11-20T16:24Z'>text</time></p>
<p><time datetime='2006-11-20T16:24:33Z'>text</time></p>
<p><time datetime='2006-11-20T16:24:33.89Z'>text</time></p>
<p><time datetime='2006-11-20T16:24+02:00'>text</time></p>
<p><time datetime='2006-11-20T16:24:33+02:00'>text</time></p>
<p><time datetime='2006-11-20T16:24:33.89+02:00'>text</time></p>
<p><time datetime='16:24'>text</time></p>
<p><time datetime='16:24:33'>text</time></p>
<p><time datetime='16:24:33.89'>text</time></p>
<!-- vague moment of time in content -->
<p><time>2006-11-20T16:24</time></p>
<p><time>2006-11-20T16:24:33</time></p>
<p><time>2006-11-20T16:24:33.89</time></p>
<p><time>2006-11-20T16:24Z</time></p>
<p><time>2006-11-20T16:24:33Z</time></p>
<p><time>2006-11-20T16:24:33.89Z</time></p>
<p><time>2006-11-20T16:24+02:00</time></p>
<p><time>2006-11-20T16:24:33+02:00</time></p>
<p><time>2006-11-20T16:24:33.89+02:00</time></p>
<p><time>16:24</time></p>
<p><time>16:24:33</time></p>
<p><time>16:24:33.89</time></p>
</body>
</html>

View file

@ -0,0 +1,35 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Unordered List: &lt;ul&gt; &lt;li&gt;</title>
</head>
<body>
<!-- is block -->
<ul class="class" id="id" xml:lang="en">
<li class="class" id="id2" xml:lang="en">text</li>
</ul>
<!-- can be empty -->
<ul></ul>
<ul>
<li></li>
<li></li>
</ul>
<!-- can contain structured inline -->
<ul>
<li>some <em>text</em>
<pre>more text</pre>
</li>
</ul>
<!-- can contain blocks -->
<ul>
<li>
<p>some</p>
<p>text</p>
</li>
</ul>
<!-- can contain interactive -->
<ul><li><a>text</a></li></ul>
</body>
</html>