<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=XML_HTMLSax</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/17397" />
      <rdf:li rdf:resource="http://pear.php.net/bug/6742" />
      <rdf:li rdf:resource="http://pear.php.net/bug/3528" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/17397">
      <title>XML_HTMLSax: Bug 17397 [Open] Parsing breaks with inline JavaScript</title>
      <link>http://pear.php.net/bugs/17397</link>
      <content:encoded><![CDATA[<pre>XML_HTMLSax Bug
Reported by ramv
2010-05-13T21:39:36+00:00
PHP: 5.3.1 OS: RHEL Package Version: 2.1.2

Description:
------------
If the inline javascript has a for loop with a '&gt;' and '&lt;' character, the parsing breaks.

Test script:
---------------
&lt;html&gt;
&lt;head&gt; Test &lt;/head&gt;
&lt;body&gt;
     &lt;span id='TestString'&gt;This is a test &lt;span&gt;
     &lt;script&gt;
            /* Success Handler for YUI Get Script calls */
            Test.onScriptsLoaded = function() {
                //console.log('onscriptsloaded');
                for(var i=0;i&lt;Test.GetScriptsCode.length;i++){
                    //console.log(Test.GetScriptsCode[i]);
                    Test.GetScriptsCode[i]();
                }
            };
      &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;


Parsing this produces broken JavaScript since the parser consumes the  '&lt;' character

 for(var i=0;i Test.GetScriptsCode.length;i++){
                 ^^^


Expected result:
----------------
The text in the script block should be treated as a one chunk and returned for processing with &lt;/script&gt; invoking the end tag handler</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_HTMLSax Bug
Reported by ramv
2010-05-13T21:39:36+00:00
PHP: 5.3.1 OS: RHEL Package Version: 2.1.2

Description:
------------
If the inline javascript has a for loop with a '&gt;' and '&lt;' character, the parsing breaks.

Test script:
---------------
&lt;html&gt;
&lt;head&gt; Test &lt;/head&gt;
&lt;body&gt;
     &lt;span id='TestString'&gt;This is a test &lt;span&gt;
     &lt;script&gt;
            /* Success Handler for YUI Get Script calls */
            Test.onScriptsLoaded = function() {
                //console.log('onscriptsloaded');
                for(var i=0;i&lt;Test.GetScriptsCode.length;i++){
                    //console.log(Test.GetScriptsCode[i]);
                    Test.GetScriptsCode[i]();
                }
            };
      &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;


Parsing this produces broken JavaScript since the parser consumes the  '&lt;' character

 for(var i=0;i Test.GetScriptsCode.length;i++){
                 ^^^


Expected result:
----------------
The text in the script block should be treated as a one chunk and returned for processing with &lt;/script&gt; invoking the end tag handler</pre>]]></description>
      <dc:date>2010-05-16T22:43:53+00:00</dc:date>
      <dc:creator>ramv &amp;#x61;&amp;#116; yahoo-inc &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>XML_HTMLSax Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/6742">
      <title>XML_HTMLSax: Bug 6742 [Open] Error handling &lt;![if tags</title>
      <link>http://pear.php.net/bugs/6742</link>
      <content:encoded><![CDATA[<pre>XML_HTMLSax Bug
Reported by jon@...
2006-02-10T10:05:14+00:00
PHP: 4.4.2 OS: Windows Package Version: 2.1.2

Description:
------------
In Yahoo!'s search results, and on many other pages, there's a tag &lt;![if !IE]&gt;.  If XML_HTMLSax runs across this tag, it assumes it's a CDATA tag and looks for it to be terminated by ]]&gt;.  This is incorrect.  Instead it should not make this assumption and should look for a termination of ]&gt;.

To fix this bug, change lines 224 through 232 (or so) of XML_HTMLSax_States.php to:

            } else if ( $char == '[') {
                $text = $context-&gt;scanUntilString(']&gt;');
                $context-&gt;IgnoreCharacter();
            } else ...

This will take away the CDATA assumption and look for ]&gt; instead.</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_HTMLSax Bug
Reported by jon@...
2006-02-10T10:05:14+00:00
PHP: 4.4.2 OS: Windows Package Version: 2.1.2

Description:
------------
In Yahoo!'s search results, and on many other pages, there's a tag &lt;![if !IE]&gt;.  If XML_HTMLSax runs across this tag, it assumes it's a CDATA tag and looks for it to be terminated by ]]&gt;.  This is incorrect.  Instead it should not make this assumption and should look for a termination of ]&gt;.

To fix this bug, change lines 224 through 232 (or so) of XML_HTMLSax_States.php to:

            } else if ( $char == '[') {
                $text = $context-&gt;scanUntilString(']&gt;');
                $context-&gt;IgnoreCharacter();
            } else ...

This will take away the CDATA assumption and look for ]&gt; instead.</pre>]]></description>
      <dc:date>2006-02-10T10:05:14+00:00</dc:date>
      <dc:creator>jon &amp;#x61;&amp;#116; jonemerson &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>XML_HTMLSax Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/3528">
      <title>XML_HTMLSax: Feature/Change Request 3528 [Open] incorrect logic</title>
      <link>http://pear.php.net/bugs/3528</link>
      <content:encoded><![CDATA[<pre>XML_HTMLSax Feature/Change Request
Reported by baklanoid2
2005-02-20T04:12:29+00:00
PHP: 4.3.6 OS: WINXP Package Version: 

Description:
------------
html code:
----------
..
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
..
----------
there is openHandler - oH,dataHandler - dH,closeHandler - cH. The oder of execution:
&gt; oH gives &quot;td&quot;
&gt; cH gives &quot;td&quot;
&gt; dH gives &quot;\r\n&quot;

..if we delete the &quot;\r\n&quot;, then dH will return the data after &lt;/tr&gt; tag..
I don't know what is this.. maybe just a mistmatch..
I commented lines 53,56 in States file..</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_HTMLSax Feature/Change Request
Reported by baklanoid2
2005-02-20T04:12:29+00:00
PHP: 4.3.6 OS: WINXP Package Version: 

Description:
------------
html code:
----------
..
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
..
----------
there is openHandler - oH,dataHandler - dH,closeHandler - cH. The oder of execution:
&gt; oH gives &quot;td&quot;
&gt; cH gives &quot;td&quot;
&gt; dH gives &quot;\r\n&quot;

..if we delete the &quot;\r\n&quot;, then dH will return the data after &lt;/tr&gt; tag..
I don't know what is this.. maybe just a mistmatch..
I commented lines 53,56 in States file..</pre>]]></description>
      <dc:date>2005-03-01T22:21:04+00:00</dc:date>
      <dc:creator>gib-o-master &amp;#x61;&amp;#116; mail &amp;#x64;&amp;#111;&amp;#x74; ru</dc:creator>
      <dc:subject>XML_HTMLSax Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
