Does anyone know of a particular reason it is not documented?
(I'd be happy to document and provide the ridiculously simple patch of
returning NULL...)
Greetings Matt,
Documenting DOM is messy/tricky (and underdocumented), but:
- http://php.net/domelement.getattribute
Here's one option
On Jun 3, 2011, at 1:38 PM, Matt Pelmear wrote:
Hello,
I discovered today that the DOMNode::getAttribute() function (which is
undocumented on the php site) returns an empty string if the requested
attribute doesn't exist in the node.
From the source:
if (value == NULL) {
On 03.06.2011, at 22:38, Matt Pelmear wrote:
Hello,
I discovered today that the DOMNode::getAttribute() function (which is
undocumented on the php site)
It's DOMElement::getAttribute()...
returns an empty string if the requested
attribute doesn't exist in the node.
Yes, but that's in