[wp-trac] [WordPress Trac] #16024: Conditional Comments for JS

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 29 16:07:20 UTC 2010


#16024: Conditional Comments for JS
---------------------------------+-----------------------------
 Reporter:  filosofo             |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Template             |     Version:  3.1
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.2-early  |
---------------------------------+-----------------------------
Description changed by filosofo:

Old description:

> Currently, we can add IE conditional comments for CSS but not JS.  That
> seems unnecessarily inconsistent.
>
> Patch would allow us to something like:
>
> {{{
> wp_enqueue_script( 'pngfix-handle' );
> $wp_scripts->add_data( 'pngfix-handle', 'conditional', 'IE 6' );
> }}}

New description:

 Currently, we can add IE conditional comments for CSS but not JS.  That
 seems unnecessarily inconsistent.

 Patch would allow us to do something like the following:

 {{{
 wp_enqueue_script( 'pngfix-handle' );
 $wp_scripts->add_data( 'pngfix-handle', 'conditional', 'IE 6' );
 }}}

--

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


More information about the wp-trac mailing list