RE: [PHP] Developer Question [DOMDocument]
| From: | Andrea Giammarchi | Date: | Mon, 05 Oct 2009 09:49:52 +0000 |
| Subject: | RE: [PHP] Developer Question [DOMDocument] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298585@lists.php.net to get a copy of this message | ||
saveXML and transform it via XSL
It should be simple since basically the only thing you have to do is to replicate everything adding
right <!DOCTYPE html> at the beginning and nothing else.
Is this solution suitable for your requirements?
Regards
> Date: Mon, 5 Oct 2009 01:45:03 -0700
> From: mpeters@mac.com
> To: php-general@lists.php.net
> Subject: [PHP] Developer Question [DOMDocument]
>
> I'm hoping someone who knows the answer to this question is on this list.
>
> I need to modify either libxml2 and/or php DOMDocument to make a small
> change.
>
> Issue - saveHTML() function predates html5 (which isn't even finalized
> yet) and thus does not know about it's tags.
>
> the source element is new in html5 and may not have any children, so
> when using saveHTML() from DOMDocument, it should NOT add a closing
> </source> tag (it should be handled the same way the param element is
> handled). It does the right thing with saveXML() where it properly self
> closes the tag, but it does not do the right thing with saveHTML().
>
> I suspect it is a minor easy to do change, but I don't even have the
> foggiest idea where to look in the source to make a patch.
>
> It's not all that big of a deal, but I would like my server to spit out
> the correct code without me having to pass it through preg_replace.
>
> Thanks for any suggestions on where/how to define that tag in the source.
>
> Michael A. Peters
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009