Methods
-
append(arg) → {Iroha.Tag}
-
append child instance.
Parameters:
Name Type Description argIroha.Tag | string instance to append Returns:
このインスタンス自身- Type
- Iroha.Tag
-
attr(name, value) → {string}
-
属性値を設定する/読み出す
Parameters:
Name Type Argument Description namestring 対象とする属性の名前 valuestring <optional>
その属性に値を設定する場合は、その値。(無指定時は属性値の読み出しとなる) Returns:
指定された属性の現在の値、または今セットした値そのもの、- Type
- string
-
init(tagName, attrs) → {Iroha.Tag}
-
initialize
Parameters:
Name Type Argument Description tagNamestring element name to create attrsObject <optional>
associative array of attributes { name1 : value1, name2 : value2 ... } Returns:
このインスタンス自身- Type
- Iroha.Tag
-
toString(debug) → {string}
-
output instance data as tag string. typically to use document.write().
Parameters:
Name Type Argument Default Description debugboolean <optional>
false debug mode - escaped output Returns:
HTML tag string- Type
- string