note 105508 deleted from domdocument.loadhtml by danbrown

From: Date: Tue, 23 Aug 2011 19:21:59 +0000
Subject: note 105508 deleted from domdocument.loadhtml by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182678@lists.php.net to get a copy of this message
Note Submitter: Zerobyte ---- I noticed that DOMDocument does not parse inline scripts on html parses like: this is a way to insert (after loading page) a script in head tag, but its not the case priority. <script type="text/javascript"> document.write('<scr'+'ipt src="http://ww488.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/' + sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?"></scr'+'ipt>'); </script> when i parse a html with some script like the one above it returns several errors like: DOMDocument::loadHTML() [domdocument.loadhtml]: Unexpected end tag : scr in Entity, line: "line" DOMDocument::loadHTML() [domdocument.loadhtml]: End tag : expected '>' in Entity, line: "line"

« previous php.notes (#182678) next »