Cannot find my bug anymore.
| From: | W.H. Fris | Date: | Sun, 06 Apr 2008 08:52:35 +0000 |
| Subject: | Cannot find my bug anymore. | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-49659@lists.php.net to get a copy of this message | ||
The link "http://pear.php.net/bugs/bug.php?id=12769&edit=2"
does not
work. It asks me to confirm but I already confirmed.
I can no longer find my bug( [PEAR-BUG] Bug #12769 [Opn->Fbk]: Omit
CDATA for inline styles containing @import-rule), what happened to it?
On Sat, 2008-04-05 at 19:42 +0000, PEAR Bug Database wrote:
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://pear.php.net/bugs/bug.php?id=12769&edit=2
>
>
> ID: 12769
> Updated by: cweiske@php.net
> Reported By: pear_dev at willfris dot nl
> Summary: Omit CDATA for inline styles containing @import-rule
> -Status: Open
> +Status: Feedback
> Type: Bug
> Package: HTML_Page2
> PHP Version: Irrelevant
> New Comment:
>
> Which browser does not parse the @import when it is in CDATA? The xml
> generated is valid, so it seems to be a browser bug..
>
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2007-12-24 03:50:56] #27e01d9e36fa065fc67
>
> Description:
> ------------
> Omit CDATA for inline styles containing @import-rule.
>
>
>
> If CDATA is added before @import then the @import will not be parsed.
>
>
>
>
>
> I have created a script, but it's not perfect yet.
>
> People can start some other css-code after the @import-rule and with
> this script those further lines will not get <![CDATA[ around them.
>
> Test script:
> ---------------
> /* #Options I put in $options for new HTML_Page2()
>
> $doctype = 'XHTML 1.0 Strict';
>
> $mimeEncoding = 'application/xhtml+xml';
>
> $prolog = TRUE;
>
> */
>
> $page = new HTML_Page2($options);
>
> $page->addStyleDeclaration('@import url("/css/real.css");');
>
> echo $page->toHTML();
>
> Expected result:
> ----------------
> I expect this:
>
> <style type="text/css">
>
> <![CDATA[
>
> @import url("/css/real.css");
>
> ]]>
>
> </style>
>
>
>
> I now changed it to this:
>
> <style type="text/css">
>
> @import url("/css/real.css");
>
> </style>
>
>
>
> It should probably be like this:
>
> <style type="text/css">
>
> @import url("/css/real.css");
>
> /*Maybe other @... rules as well?*/
>
> <![CDATA[
>
> html , body{margin:0;padding:0;}
>
> /*And other css*/
>
> ]]>
>
> </style>
>
> Actual result:
> --------------
> <style type="text/css">
>
> <![CDATA[
>
> @import url("/css/real.css");
>
> ]]>
>
> </style>
>
> ------------------------------------------------------------------------
>
>