enum HTML5::NodeType

Overview

NodeType is a type of a Node

Defined in:

html5/node.cr

Enum Members

Error = 0_u32
Text = 1_u32
Document = 2_u32
Element = 3_u32
Comment = 4_u32
Doctype = 5_u32
Raw = 6_u32

Raw nodes are not returned by the parser, but can be part of the Node tree passed to insert raw HTML (without escaping). If so, this shard makes no guarantee that the rendered HTML is secure (from e.g. Cross Site Scripting attacks) or well-formed.

ScopeMarker = 7_u32

Instance Method Summary

Instance Method Detail

def comment? #

[View source]
def doctype? #

[View source]
def document? #

[View source]
def element? #

[View source]
def error? #

[View source]
def raw? #

[View source]
def scope_marker? #

[View source]
def text? #

[View source]