note 87986 deleted from class.domnode by danbrown

From: Date: Sun, 04 Jan 2009 23:21:42 +0000
Subject: note 87986 deleted from class.domnode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148835@lists.php.net to get a copy of this message
Note Submitter: insid0r at yahoo dot com ---- In response to Brian, I'd like to clear something up: The DOMNode class does NOT have getAttribute() or setAttribute() functions. However, DOMElement (which extends DOMNode) does. It's important to note (very simply put): Even if you're working with DOMDocument object functions returning DOMNodeList or DOMNamedNodeMap items, you're actually most likely getting DOMElements back (probably). So use the DOMElement spec to see what additional functions you have access to (this has exceptions, so if things break, revise your approach accordingly.)

« previous php.notes (#148835) next »