[wp-trac] [WordPress Trac] #27288: WP 3.9 Editor: 'mce_css' filter broken

WordPress Trac noreply at wordpress.org
Sun Mar 9 00:53:21 UTC 2014


#27288: WP 3.9 Editor: 'mce_css' filter broken
--------------------------+--------------------
 Reporter:  wpweaver      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by azaozz):

 Confirmed, caused by using a standards doctype. Example:

 {{{
 <!DOCTYPE html>
 <html>
 <head>
 <link rel="stylesheet" href="style.php" type="text/css" />
 ...
 }}}

 This stylesheet is not parsed in FF, WebKit and IE > 8 when it doesn't
 have the proper `text/css` content type header. Not just in TinyMCE but on
 any page (including in the admin). If the doctype is missing or is non-
 standard, the stylesheet is parsed.

 TinyMCE 3.5.x used only `<!DOCTYPE>` but 4.0 uses the proper `<!DOCTYPE
 html>`. This can be changed but not sure what other things may break if we
 set the iframe document to quirks mode.

 Considering that proper content type header is needed in nearly all cases
 when php file is loaded as stylesheet, thinking the current behavior in
 the editor is right.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27288#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list