[wp-trac] [WordPress Trac] #19855: Too much text in <pre> tag causes no output
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 19 20:06:22 UTC 2012
#19855: Too much text in <pre> tag causes no output
--------------------------+------------------------------
Reporter: helenyhou | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 1.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by azaozz):
Replying to [comment:15 kurtpayne]:
> ... if an author is using the HTML editor and uses upper case tags, this
patch won't work.
Right. However the editor is (still) set to output XHTML 1.0 compliant
code so upper case tags or attributes are not valid. Expecting users that
would type code in the HTML editor (and manually add the htmlspecialchars)
to be aware of that :)
On the other hand nearly all of the autop related functions/filters allow
for upper case, so we should probably normalize the <pre> tags to lower
case (using regex for the splits is a bit slower when there are several
<pre> tags).
Not sure how this is going to be handled in the future, HTML 5.0 allows
upper case and also some of the old (HTML 3?) syntax like no closing tags
for <p>, no self-closing, etc. Probably we will stick to all lower case
tag names and attributes as coding standard, but follow the rest of the
HTML 5 changes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19855#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list