Hi!

I am trying to understand the internal workings of two PHP-additions to the DOM-functionality.

1. When using the shortcut DOMElement::nodeValue on an element node,
where the standard says DOMElement::firstChild::nodeValue, is there any
difference whatsoever between DOMElement::nodeValue and
DOMElement::textContent?

2. Using this as well as the the non-standard last parameter on
DOMDOcument::createElement and DOMDOcument::createElementNS, am I taking
advantage of some magic in libxml2 or is this invented by you PHP guys, as was my guess?

If so, are these feature available in any other language or library?
I've checked Gdome, Perl XML::DOM, Perl XML::LibXML::DOM and Java, as
well as every major browser and the answer so far seems to be no.

I am asking this as especially the first one seem to be a very
convenient shortcut and I will lobby the What-WG/W3C to make it part of the standard.


Lars Gunther

P.S. I have looked at http://cvs.php.net/viewvc.cgi/php-src/ext/dom/document.c?revision=1.68.2.3.2.5.2.2&view=markup

But since (a) I am a real newbie in C and (b) I do not know where "xmlNewDocNode" comes from - the best I can manage is an educated guess.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to