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

2010-06-08 Thread Andrew Ballard
On Tue, Jun 8, 2010 at 2:50 AM, Raymond Irving wrote: > Well it actually failed when loadHTML() is used. > The strange thing is that it will fail regardless of the "--" characters: > > "Unexpected end tag : strong in Entity" > > __ > Raymond Irving What failed? I copied your example and pasted it

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

2010-06-07 Thread Raymond Irving
Well it actually failed when loadHTML() is used. The strange thing is that it will fail regardless of the "--" characters: "Unexpected end tag : strong in Entity" __ Raymond Irving On Mon, Jun 7, 2010 at 2:50 PM, Andrew Ballard wrote: > On Mon, Jun 7, 2010 at 3:30 PM, Raymond Irving wrote: >

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

2010-06-07 Thread Andrew Ballard
On Mon, Jun 7, 2010 at 3:30 PM, Raymond Irving 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

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

2010-06-07 Thread Raymond Irving
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 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 Irv

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

2010-06-06 Thread Adam Richardson
On Sun, Jun 6, 2010 at 10:39 PM, Raymond Irving wrote: > Hello, > > I'm experiencing another issue when attempting to use > DOMDocument::loadXML() > to load the following HTML code: > > $html = ' > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > > > >