|
Retrieves all attribute values for the called element.
virtual std::map<xhtml_attribute, std::string>* element::attributes();1st Variety
virtual const std::map<xhtml_attribute, std::string>* element::attribute() const;2nd Variety
none
Returns a pointer (or const pointer in the 2nd variety) to the element's attribute map.
Return a pointer to a map of all attributes for the called element. The map will contain xhtml_attribute
/string pairs. The attribute
map does not contain any style attributes which may be present for the element.
When called on a derived element
object, a pointer (or const pointer in the 2nd variety) is to the element's attribute map is returned.
In this map, the key type is xhtml_attribute enumerators, and the value type is a string representing the value for the corrasponding attribute.
Constant