[wp-trac] [WordPress Trac] #16118: Support for wp_enqueue_style with negative conditional comments

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 6 10:16:27 UTC 2011


#16118: Support for wp_enqueue_style with negative conditional comments
-------------------------------------+-----------------------------
 Reporter:  sayontan                 |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  General                  |     Version:  3.0.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------
Changes (by garyc40):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 In case the condition {{{if !IE 8}}} is specified, the valid code should
 be:

 {{{
 <!--[if !IE 8]><!-->HTML<!--<![endif]-->
 }}}

 not:

 {{{
 <!--[if !IE 8]>-->HTML<!--<![endif]-->
 }}}

 Otherwise, in IE 7 or 6, for example, this will be displayed:

 {{{
 -->HTML
 }}}

 My patch addresses this edge case.

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


More information about the wp-trac mailing list