[wp-trac] [WordPress Trac] #17537: TinyMCE mangles <map></map> construct

WordPress Trac wp-trac at lists.automattic.com
Sun May 22 22:31:54 UTC 2011


#17537: TinyMCE mangles <map></map> construct
--------------------------+-----------------------------
 Reporter:  vdhamer       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I entered the following in TinyMCE HTML mode. When I switch from HTML mode
 to Visual mode and back to HTML mode, I see that the code has been
 mangled. Saving it and viewing it confirms that the Map is now broken.

 This happens in the 3.2 beta nightly. I double checked that it doesn't
 happen in the 3.1.2 version.

 == 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>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17537>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list