On Wed, February 21, 2007 11:44 pm, Eli wrote:
> Peter Lauri wrote:
>> This was not clear for me, do you mean:
>>
>> =>
>>
>
> No.
>
> Let me try to be more clear..
> Say you got the element , then I want the
> DOMDocument
> to automatically convert the 'key' attribute to an ID-Attribute, as
> d
Eli wrote:
Let me try to be more clear..
Say you got the element , then I want the DOMDocument
to automatically convert the 'key' attribute to an ID-Attribute, as done
with DOMElement::setIdAttribute() function. The ID-Attribute is indexed
and can be quickly gotten via DOMDocument::getElement
Peter Lauri wrote:
This was not clear for me, do you mean:
=>
No.
Let me try to be more clear..
Say you got the element , then I want the DOMDocument
to automatically convert the 'key' attribute to an ID-Attribute, as done
with DOMElement::setIdAttribute() function. The ID-Attribute is
To: php-general@lists.php.net
Subject: [PHP] DOM Element default ID attribute
Hi,
I want to declare a default ID attribute to all elements in the document.
For example: If an element got the attribute 'id' then I want it
automatically to become the ID attribute of the element.
How
Hi,
I want to declare a default ID attribute to all elements in the document.
For example: If an element got the attribute 'id' then I want it
automatically to become the ID attribute of the element.
How can I do that?
-thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
5 matches
Mail list logo