Table Of Contents

Previous topic

attribute

Next topic

AttributeAttribute

This Page

phoenix_title Attribute

Base class, used for simple attributes, i.e. single attributes storing data as text strings.


class_hierarchy Inheritance Diagram

Inheritance diagram for class Attribute

Inheritance diagram of Attribute


method_summary Methods Summary

add Store attribute value in DOM as a text node.
get Get value (or return a default value) from a DOM Element object.

api Class API



class Attribute

Base class, used for simple attributes, i.e. single attributes storing data as text strings.


Methods



static add(parentNode, attribute, value)

Store attribute value in DOM as a text node.

Parameters:
  • attribute – Attribute name.
  • value – Attribute value (Python string).


static get(node)

Get value (or return a default value) from a DOM Element object.