NAME

Mozilla::DOM::Element

Mozilla::DOM::Element is a wrapper around an instance of Mozilla's nsIDOMElement interface. This inherits from Mozilla::DOM::Node.

* The nsIDOMElement interface represents an element in an HTML or 
* XML document. 
*
* For more information on this interface please see 
* L<http:E<sol>E<sol>www.w3.orgE<sol>TRE<sol>DOM-Level-2-CoreE<sol>>

Note: you can QueryInterface an Element object to a subclass like HTMLSelectElement (from which of course you can call Element methods).

CLASS METHODS

$iid = Mozilla::DOM::Element->GetIID()

Pass this to QueryInterface.

METHODS

$attr = $element->GetAttribute($name)

    • $name (string)

$attr = $element->GetAttributeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$attrnode = $element->GetAttributeNode($name)

    • $name (string)

$attrnode = $element->GetAttributeNodeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$nodelist = $element->GetElementsByTagName($name)

    • $name (string)

$nodelist = $element->GetElementsByTagNameNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$tagname = $element->GetTagName()

$bool = $element->HasAttribute($name)

    • $name (string)

$bool = $element->HasAttributeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$element->RemoveAttribute($name)

    • $name (string)

$element->RemoveAttributeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$attrnode = $element->RemoveAttributeNode($attrnode)

    • $oldAttr (Mozilla::DOM::Attr)

$element->SetAttribute($name, $value)

    • $name (string)

    • $value (string)

$element->SetAttributeNS($namespaceURI, $qualifiedName, $value)

    • $namespaceURI (string)

    • $qualifiedName (string)

    • $value (string)

$attrnode = $element->SetAttributeNode($newAttr)

    • $newAttr (Mozilla::DOM::Attr)

$attrnode = $element->SetAttributeNodeNS($newAttr)

    • $newAttr (Mozilla::DOM::Attr)

SEE ALSO

Mozilla::DOM

COPYRIGHT

Copyright (C) 2005, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.