[wp-trac] [WordPress Trac] #18807: Switching from HTML to Visual messes up "samp" elements

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 28 20:41:50 UTC 2011


#18807: Switching from HTML to Visual messes up "samp" elements
--------------------------+-----------------------------
 Reporter:  jsumners      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  3.2.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Type the following into the HTML editing view of a new post:

 {{{This is an example: <samp>/tmp/some.file</samp>. More text.}}}

 Now, switch to the Visual editing view and you will get:

 {{{
 This is an example:
 /tmp/some.file
 . More text.
 }}}

 The "samp" element should be treated exactly like the "code" element. See
 http://www.w3.org/TR/html5/text-level-semantics.html#the-samp-element for
 more information on the samp element.

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


More information about the wp-trac mailing list