public add(uri as String, localName as String, qName as String, type as String = "CDATA", value as String = "", declared as Boolean = false, specified as Boolean = true) as Void:
Adds one attribute to the collection.
| Parameter | Description |
|---|---|
uri | Namespace URI, or empty string. |
localName | Local attribute name, or empty string when unavailable. |
qName | Qualified attribute name. |
type | Attribute type, usually CDATA. |
value | Attribute value. |
declared | True when the attribute was declared in a DTD. |
specified | True when the attribute was present in the source text. |
attrs.add("", "class", "class", "CDATA", "featured")