struct

HTML5::Attribute

Inherits Struct < Value < Object

An Attribute is an attribute namespace-key-value triple. Namespace is non-empty for foreign attributes like xlink, Key is alphabetic (and hence does not contain escapable characters like '&', '<' or '>'), and Val is unescaped (it looks like "a<b" rather than "a&lt;b").

Namespace is only used by the parser, not the tokenizer.

Constructors

new(namespace : String = "", key : String = "", val : String = "")
Source

Instance methods

clone
Source
key=(key : String)
Source
namespace
Source
namespace=(namespace : String)
Source
val=(val : String)
Source