[wp-testers] Visual editor damages <map></map> HTML construct (3.2 beta1 nightly)
Peter van den Hamer (MSN)
vdhamer at msn.com
Sun May 22 22:07:05 UTC 2011
I entered the following HTML in HTML mode of TinyMCE. When I switch to
Visual mode and back, I see that it has been mangled. Saving it and viewing
it confirms this.
This happens in the 3.2 beta nightly. I doesn't happen in the 3.1.2 version.
It doesn't seem to be in the kses.php file. Should I submit this in Trax?
Peter (The Netherlands)
====================
original and intended HTML input. Note the 3 <area>s defined inside <map>
<p style="text-align: center;"><img class="aligncenter size-full
wp-image-3438" src="Home3.jpg" alt="" width="940" height="880"
usemap="#homepagemap" /></p>
<map name="homepagemap">
<area shape="rect" coords="15,15,75,95" href="hrefA" title="textA"/>
<area shape="rect" coords="82,15,142,95" href="hrefB" title="textB"/>
<area shape="rect" coords="147,15,207,95" href="hrefC" title="textC"/>
</map>
=============
mangled output. There are now 3 <area>s defined in 3 separate <map>s with
the same name. This is incorrect.
<p style="text-align: center;"><img class="aligncenter size-full
wp-image-3438" src="Home3.jpg" alt="" width="940" height="880"
usemap="#homepagemap" /></p>
<map name="homepagemap"> <area title="textA" shape="rect"
coords="15,15,75,95" href="hrefA" /></map>
<map name="homepagemap"> <area title="textB" shape="rect"
coords="82,15,142,95" href="hrefB" /></map>
<map name="homepagemap"> <area title="textC" shape="rect"
coords="147,15,207,95" href="hrefC" /></map>
More information about the wp-testers
mailing list