[wp-trac] Re: [WordPress Trac] #5120: _wp_unfiltered_html_comment
breaks XHTML validity
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 1 00:27:19 GMT 2007
#5120: _wp_unfiltered_html_comment breaks XHTML validity
----------------------+-----------------------------------------------------
Reporter: jrawle | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 2.3.1
Component: Template | Version: 2.2.3
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by DD32):
Ah...
It validates as XHTML 1.0 Transitional; However, If you validate it as
XHTML 1.0 Strict it'll fail with this:
{{{
Validation Output: 1 Error
Line 119, Column 76: document type does not allow element "input" here;
missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",
"address", "fieldset", "ins", "del" start-tag.
…ltered_html_comment" value="642e718613" />
✉
The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that are
both allowed there and can contain the element mentioned. This might mean
that you need a containing element, or possibly that you've forgotten to
close a previous element.
One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element
(such as "<a>", "<span>", or "<font>").
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/5120#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list