[wp-trac] [WordPress Trac] #22230: WP adds <br /> before <select even where there is no line break in source code
WordPress Trac
noreply at wordpress.org
Thu Jan 31 11:24:26 UTC 2013
#22230: WP adds <br /> before <select even where there is no line break in source
code
--------------------------+------------------------------
Reporter: chirael | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.4.2
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by uecasm):
+1 to annoying. It's also adding <p></p> tags around any text immediately
following the <select> element, which can't be worked around via the
display:none trick (as that hides the text as well).
I strongly suggest reducing wpautop to only treat [http://www.w3.org/TR
/REC-html40/sgml/dtd.html#block elements that actually are blocks] as
blocks.
I further suggest that regardless of whether that is done or not, WP
should respect some kind of marker in the post source itself to disable
wpautop within a specific section of content without disabling it
globally. Perhaps by hijacking the now-obsolete <nobr> tag -- make
wpautop strip out the <nobr></nobr> tags themselves but leave any content
within those tags completely untouched. This way authors can explicitly
indicate sections of a post which contain preformatted HTML that they
don't want messed with.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22230#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list