class HTML5::Attribute

Overview

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.

Defined in:

html5/node.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(namespace : String = "", key : String = "", val : String = "") #

[View source]

Instance Method Detail

def clone #

[View source]
def key : String #

[View source]
def key=(key : String) #

[View source]
def namespace : String #

[View source]
def namespace=(namespace : String) #

[View source]
def val : String #

[View source]
def val=(val : String) #

[View source]