Hello,
In this case I'm not sure full HTML is really needed, see the form part at
the beginning of Blog.WebHome, with the create button :
<div id="xwikicontent">
<form action="<span class="wikiexternallink"><a
class="wikimodel-freestanding"
href="http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain
<view-source:http://r-wikiggs.gemalto.com/test/bin/view/Blog/CreatePost?xpage=plain>"><span
class="wikigeneratedlinkcontent">http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain</span></a></span>"
id="newBlogPost" method="post">
<div>
<input type="hidden" name="entrySpace"
value="Blog"/>
<label style="font-weight: bold; font-size: 80%; padding-left:
18px; background: transparent url(<span class="wikiexternallink"><a
class="wikimodel-freestanding"
href="http://r-wiki/test/resources/icons/silk/add.gif)
<view-source:http://r-wikiggs.gemalto.com/test/resources/icons/silk/add.gif%29>"><span
class="wikigeneratedlinkcontent">http://r-wiki/test/resources/icons/silk/add.gif)</span></a></span>
no-repeat left center;)">Create a new post <input type="text"
name="entryTitle" value="Post title" style="border: 1px solid
#DDD"
class="withTip"/></label><span
class="buttonwrapper"><input
type="submit" value="Create"/></span>
</div>
</form>
See how the stylesheet and action part was corrupted by wiki links spans...
I think it's because in 2.0, when it sees a string starting with
"http://...",
wiki replaces it by a nice clickable link and injects <span>s. In practice,
it breaks the html and scripts in many cases, and is painful to avoid when
programming in a page... Because not all urls returning methods in xwiki api
return correct urls (relative, and not absolute, that are not boxed).