note 106384 added to domdocument.savehtml

From: Date: Thu, 03 Nov 2011 08:27:24 +0000
Subject: note 106384 added to domdocument.savehtml
Groups: php.notes 
Request: Send a blank email to php-notes+get-184280@lists.php.net to get a copy of this message
There is not a <script /> problem. When a script node does not have a child and it is dumped as XML, a self closing script node is proper. Any browser with XML support will do the right thing IF you send your document with the right mime type -- application/xhtml+xml When you dump it via saveHTML() - the script node will not be self closing. There is however a <source /> problem. With the new html5 media tags, <source src="whatever"> is not closed in html - so when sending as html, do a preg_replace on the output of saveHTML() to get rid of the </source> tags which are invalid. ---- Server IP: 69.147.83.197 Probable Submitter: 68.189.53.220 ---- Manual Page -- http://www.php.net/manual/en/domdocument.savehtml.php Edit -- https://master.php.net/note/edit/106384 Del: integrated -- https://master.php.net/note/delete/106384/integrated Del: useless -- https://master.php.net/note/delete/106384/useless Del: bad code -- https://master.php.net/note/delete/106384/bad+code Del: spam -- https://master.php.net/note/delete/106384/spam Del: non-english -- https://master.php.net/note/delete/106384/non-english Del: in docs -- https://master.php.net/note/delete/106384/in+docs Del: other reasons-- https://master.php.net/note/delete/106384 Reject -- https://master.php.net/note/reject/106384 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184280) next »