Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68696 invoked by uid 1010); 24 Oct 2007 08:56:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68681 invoked from network); 24 Oct 2007 08:56:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2007 08:56:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=webmaster@keryx.se; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=webmaster@keryx.se; sender-id=pass Received-SPF: pass (pb1.pair.com: domain keryx.se designates 208.69.121.33 as permitted sender) X-PHP-List-Original-Sender: webmaster@keryx.se X-Host-Fingerprint: 208.69.121.33 supavet.nexcess.net Received: from [208.69.121.33] ([208.69.121.33:47494] helo=supavet.nexcess.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/A2-47805-9B80F174 for ; Wed, 24 Oct 2007 04:56:26 -0400 Received: (qmail 19568 invoked by uid 108); 24 Oct 2007 08:56:21 -0000 Received: from unknown (HELO ?127.0.0.1?) (gunther@keryx.se@212.3.30.100) by supavet.nexcess.net with ESMTPA; 24 Oct 2007 08:56:21 -0000 Message-ID: <471F08B4.6080400@keryx.se> Date: Wed, 24 Oct 2007 10:56:20 +0200 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000783-1, 2007-10-22), Outbound message X-Antivirus-Status: Clean Subject: DOM shortcuts From: webmaster@keryx.se (Keryx Web) 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.