Re: DOMDocument::loadXML() failed when parsing comments inside a script tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 7, 2010 at 3:30 PM, Raymond Irving <xwisdom@xxxxxxxxx> wrote:
> Hi Adam,
>
> Thanks for the update but I'm thinking that it would be much easier if the
> DOM parser could just ignore the contents of the <script> tags when parsing
> HTML content. This way we would not have to out JavaScript or force uses to
> add JavaScript to a separate file.
>
> What do you think?
>
> __
> Raymond Irving

You didn't tell it to open the contents as HTML; you told it to open
the contents as XML.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux