Re: Re: DOMDocument throws Unexpected end tag error when loading valid HTML

From: Date: Tue, 08 Jun 2010 13:23:18 +0000
Subject: Re: Re: DOMDocument throws Unexpected end tag error when loading valid HTML
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-305949@lists.php.net to get a copy of this message
2010/6/7 Raymond Irving <xwisdom@gmail.com>: > Thanks Nisse. This works great! > > I just wish the HTML DOM parser could just ignore the contents of the > <script> tags. It would have made life so much easier for developers working > with the DOM. > http://www.w3.org/TR/html401/appendix/notes.html#notes-specifying-data Looks like DOMDocument parses correctly according to the html 4.01 specs (according to the notes for DOMDocument::loadHTML that's the default doctype). Until HTML 5 is more fixed I would probably prefer loadHTML() to parse correctly according to the latest fixed html specs :) Regards Peter -- <hype> WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 </hype>

« previous php.general (#305949) next »