[wp-trac] [WordPress Trac] #10734: Gallery Shortcode Causes XHTML Validation Failure

WordPress Trac wp-trac at lists.automattic.com
Tue May 3 13:44:12 UTC 2011


#10734: Gallery Shortcode Causes XHTML Validation Failure
--------------------------+-------------------------
 Reporter:  achmafooma    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Gallery       |     Version:
 Severity:  normal        |  Resolution:  maybelater
 Keywords:                |
--------------------------+-------------------------

Comment (by chipbennett):

 Replying to [comment:20 nacin]:
 > >
 > > The ''default'' WordPress behavior should be standards-compliant, and
 hacks should be ''added'' via filter - not the other way around.
 >
 > We don't have much of a choice here. Shortcodes aren't processed until
 after we're generating the body. A theme can work around this. Indeed, the
 default WordPress behavior for both Twenty Ten and Twenty Eleven is
 compliant.
 >
 > Eventually, the standard will catch up and allow us to set a scope for
 <style> in <body>.

 But, this is entirely ''non-essential'' code. WordPress core doesn't need
 to define gallery style, any more than WordPress needs to define style for
 any other markup.

 Removing it won't "break" Themes; though Theme developers would need to be
 made aware that they'll need to incorporate the style definition into the
 Theme.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10734#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list