<body xmlns="http://www.w3.org/1999/xhtml" xmlns:daizu="http://www.daizucms.org/ns/html-extension/" xmlns:xi="http://www.w3.org/2001/XInclude" xml:base="daizu:///daizucms.org/_index.html">

<p id="sec-foo" name="sec-foo">This <span id="wont-clash">paragraph</span>
 has some IDs <em xml:id="sec-foo-bar">already</em> in use, which
 of course the HeaderAnchor plugin shouldn't reuse.</p>

<h3 id="already-1">Already got an ID in the heading element</h3>

<h3><a name="already-2"></a>Got one in anchor with 'name' attribute</h3>
<h3><a id="already-3"></a>Got one in anchor with 'id' attribute</h3>
<h3><a id="sec-got-one"></a><a xml:id="already-4"></a>Got one in anchor with 'xml:id' attribute, but that's not good enough</h3>

<h4><a id="sec-no-id-provided"></a>No ID provided</h4>
<h5><a id="sec-words-with-whitespace"></a>WORDS
with
	 whitespace
</h5>

<p>Ignore this</p>

<h1><a id="sec-unnamed"></a>... %%% %^&amp; ((( ))) []</h1>

<h2><a id="sec-foo.bar-and-foo-bar"></a>foo.bar and foo-bar are OK as words</h2>
<h2><a id="sec-separate-words"></a>separate_words</h2>

<h3><a id="sec-the-articles"></a>The articles and short prepositions shouldn't be at the end of the ID</h3>

<h4><a id="sec-baz"></a>baz</h4>
<h5><a id="sec-baz-2"></a>baz</h5>
<h4><a id="sec-foo-2"></a>foo</h4>
<h5><a id="sec-foo-3"></a>foo</h5>
<h4><a id="sec-foo-bar-2"></a>foo bar</h4>
<h5><a id="sec-foo-bar-3"></a>foo bar</h5>

<h5><a id="sec-funny-characters"></a>‘Funny’ characters—in UTF-8</h5>

<hoohaa>Skip this even though it's name starts with 'h'</hoohaa>

<h7>Skip this because there's no 'h7' element in HTML</h7>

</body>

