struct Myhtml::Node
- Myhtml::Node
- Struct
- Value
- Object
Included Modules
Defined in:
myhtml/node.crConstant Summary
-
SERIALIZE_CALLBACK =
->(text : ::Pointer(UInt8), length : LibC::SizeT, data : ::Pointer(Void)) do iow = data.as(IOWrapper) iow.write(Bytes.new(text, length)) Lib::MyStatus::MyCORE_STATUS_OK end
Constructors
Class Method Summary
Instance Method Summary
- #any_attribute?
- #attribute_add(key : String, value : String, encoding = nil)
- #attribute_by(string : String)
- #attribute_by(slice : Slice(UInt8))
- #attribute_remove(key : String)
- #attributes
- #child
- #child!
- #children
- #data
- #data=(d : Pointer(Void))
- #each_attribute(&)
- #each_inner_text(deep = true, &)
- #each_inner_text_for_scope(scope, &)
- #flat_right
- #flat_right!
- #inner_text(join_with : String | Char | Nil = nil, deep = true)
- #inner_text(io : IO, join_with : String | Char | Nil = nil, deep = true)
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #last_child
- #last_child!
- #lastest_child
- #lastest_child!
-
#left
left node to current
- #left!
- #left_iterator
- #next
- #next!
- #next_parent!
- #node : Pointer(Lib::MyhtmlTreeNodeT)
- #nodes_by_attribute(key : String, value : String, case_sensitive = false)
- #parent
- #parent!
- #parents
- #prev
- #prev!
- #remove!
-
#right
right node to current
- #right!
- #right_iterator
- #scope
- #tag_id
- #tag_name
- #tag_name_slice
- #tag_text
- #tag_text_set(text : String, encoding = nil)
- #tag_text_slice
- #to_html(io : IO, deep = true)
- #to_html(deep = true)
- #tree : Tree
- #walk_tree(level = 0, &block : Node, Int32 -> )
Instance methods inherited from module Myhtml::TagIdUtils
is_tag__comment?
is_tag__comment?,
is_tag__doctype?
is_tag__doctype?,
is_tag__end_of_file?
is_tag__end_of_file?,
is_tag__text?
is_tag__text?,
is_tag__undef?
is_tag__undef?,
is_tag_a?
is_tag_a?,
is_tag_abbr?
is_tag_abbr?,
is_tag_acronym?
is_tag_acronym?,
is_tag_address?
is_tag_address?,
is_tag_altglyph?
is_tag_altglyph?,
is_tag_altglyphdef?
is_tag_altglyphdef?,
is_tag_altglyphitem?
is_tag_altglyphitem?,
is_tag_animate?
is_tag_animate?,
is_tag_animatecolor?
is_tag_animatecolor?,
is_tag_animatemotion?
is_tag_animatemotion?,
is_tag_animatetransform?
is_tag_animatetransform?,
is_tag_annotation_xml?
is_tag_annotation_xml?,
is_tag_applet?
is_tag_applet?,
is_tag_area?
is_tag_area?,
is_tag_article?
is_tag_article?,
is_tag_aside?
is_tag_aside?,
is_tag_audio?
is_tag_audio?,
is_tag_b?
is_tag_b?,
is_tag_base?
is_tag_base?,
is_tag_basefont?
is_tag_basefont?,
is_tag_bdi?
is_tag_bdi?,
is_tag_bdo?
is_tag_bdo?,
is_tag_bgsound?
is_tag_bgsound?,
is_tag_big?
is_tag_big?,
is_tag_blink?
is_tag_blink?,
is_tag_blockquote?
is_tag_blockquote?,
is_tag_body?
is_tag_body?,
is_tag_br?
is_tag_br?,
is_tag_button?
is_tag_button?,
is_tag_canvas?
is_tag_canvas?,
is_tag_caption?
is_tag_caption?,
is_tag_center?
is_tag_center?,
is_tag_circle?
is_tag_circle?,
is_tag_cite?
is_tag_cite?,
is_tag_clippath?
is_tag_clippath?,
is_tag_code?
is_tag_code?,
is_tag_col?
is_tag_col?,
is_tag_colgroup?
is_tag_colgroup?,
is_tag_color_profile?
is_tag_color_profile?,
is_tag_command?
is_tag_command?,
is_tag_comment?
is_tag_comment?,
is_tag_cursor?
is_tag_cursor?,
is_tag_datalist?
is_tag_datalist?,
is_tag_dd?
is_tag_dd?,
is_tag_defs?
is_tag_defs?,
is_tag_del?
is_tag_del?,
is_tag_desc?
is_tag_desc?,
is_tag_details?
is_tag_details?,
is_tag_dfn?
is_tag_dfn?,
is_tag_dialog?
is_tag_dialog?,
is_tag_dir?
is_tag_dir?,
is_tag_div?
is_tag_div?,
is_tag_dl?
is_tag_dl?,
is_tag_dt?
is_tag_dt?,
is_tag_ellipse?
is_tag_ellipse?,
is_tag_em?
is_tag_em?,
is_tag_embed?
is_tag_embed?,
is_tag_feblend?
is_tag_feblend?,
is_tag_fecolormatrix?
is_tag_fecolormatrix?,
is_tag_fecomponenttransfer?
is_tag_fecomponenttransfer?,
is_tag_fecomposite?
is_tag_fecomposite?,
is_tag_feconvolvematrix?
is_tag_feconvolvematrix?,
is_tag_fediffuselighting?
is_tag_fediffuselighting?,
is_tag_fedisplacementmap?
is_tag_fedisplacementmap?,
is_tag_fedistantlight?
is_tag_fedistantlight?,
is_tag_fedropshadow?
is_tag_fedropshadow?,
is_tag_feflood?
is_tag_feflood?,
is_tag_fefunca?
is_tag_fefunca?,
is_tag_fefuncb?
is_tag_fefuncb?,
is_tag_fefuncg?
is_tag_fefuncg?,
is_tag_fefuncr?
is_tag_fefuncr?,
is_tag_fegaussianblur?
is_tag_fegaussianblur?,
is_tag_feimage?
is_tag_feimage?,
is_tag_femerge?
is_tag_femerge?,
is_tag_femergenode?
is_tag_femergenode?,
is_tag_femorphology?
is_tag_femorphology?,
is_tag_feoffset?
is_tag_feoffset?,
is_tag_fepointlight?
is_tag_fepointlight?,
is_tag_fespecularlighting?
is_tag_fespecularlighting?,
is_tag_fespotlight?
is_tag_fespotlight?,
is_tag_fetile?
is_tag_fetile?,
is_tag_feturbulence?
is_tag_feturbulence?,
is_tag_fieldset?
is_tag_fieldset?,
is_tag_figcaption?
is_tag_figcaption?,
is_tag_figure?
is_tag_figure?,
is_tag_filter?
is_tag_filter?,
is_tag_first_entry?
is_tag_first_entry?,
is_tag_font?
is_tag_font?,
is_tag_font_face?
is_tag_font_face?,
is_tag_font_face_format?
is_tag_font_face_format?,
is_tag_font_face_name?
is_tag_font_face_name?,
is_tag_font_face_src?
is_tag_font_face_src?,
is_tag_font_face_uri?
is_tag_font_face_uri?,
is_tag_footer?
is_tag_footer?,
is_tag_foreignobject?
is_tag_foreignobject?,
is_tag_form?
is_tag_form?,
is_tag_frame?
is_tag_frame?,
is_tag_frameset?
is_tag_frameset?,
is_tag_g?
is_tag_g?,
is_tag_glyph?
is_tag_glyph?,
is_tag_glyphref?
is_tag_glyphref?,
is_tag_h1?
is_tag_h1?,
is_tag_h2?
is_tag_h2?,
is_tag_h3?
is_tag_h3?,
is_tag_h4?
is_tag_h4?,
is_tag_h5?
is_tag_h5?,
is_tag_h6?
is_tag_h6?,
is_tag_head?
is_tag_head?,
is_tag_header?
is_tag_header?,
is_tag_hgroup?
is_tag_hgroup?,
is_tag_hkern?
is_tag_hkern?,
is_tag_hr?
is_tag_hr?,
is_tag_html?
is_tag_html?,
is_tag_i?
is_tag_i?,
is_tag_iframe?
is_tag_iframe?,
is_tag_image?
is_tag_image?,
is_tag_img?
is_tag_img?,
is_tag_input?
is_tag_input?,
is_tag_ins?
is_tag_ins?,
is_tag_isindex?
is_tag_isindex?,
is_tag_kbd?
is_tag_kbd?,
is_tag_keygen?
is_tag_keygen?,
is_tag_label?
is_tag_label?,
is_tag_last_entry?
is_tag_last_entry?,
is_tag_legend?
is_tag_legend?,
is_tag_li?
is_tag_li?,
is_tag_line?
is_tag_line?,
is_tag_lineargradient?
is_tag_lineargradient?,
is_tag_link?
is_tag_link?,
is_tag_listing?
is_tag_listing?,
is_tag_maction?
is_tag_maction?,
is_tag_main?
is_tag_main?,
is_tag_maligngroup?
is_tag_maligngroup?,
is_tag_malignmark?
is_tag_malignmark?,
is_tag_map?
is_tag_map?,
is_tag_mark?
is_tag_mark?,
is_tag_marker?
is_tag_marker?,
is_tag_marquee?
is_tag_marquee?,
is_tag_mask?
is_tag_mask?,
is_tag_math?
is_tag_math?,
is_tag_menclose?
is_tag_menclose?,
is_tag_menu?
is_tag_menu?,
is_tag_menuitem?
is_tag_menuitem?,
is_tag_merror?
is_tag_merror?,
is_tag_meta?
is_tag_meta?,
is_tag_metadata?
is_tag_metadata?,
is_tag_meter?
is_tag_meter?,
is_tag_mfenced?
is_tag_mfenced?,
is_tag_mfrac?
is_tag_mfrac?,
is_tag_mglyph?
is_tag_mglyph?,
is_tag_mi?
is_tag_mi?,
is_tag_missing_glyph?
is_tag_missing_glyph?,
is_tag_mlabeledtr?
is_tag_mlabeledtr?,
is_tag_mlongdiv?
is_tag_mlongdiv?,
is_tag_mmultiscripts?
is_tag_mmultiscripts?,
is_tag_mn?
is_tag_mn?,
is_tag_mo?
is_tag_mo?,
is_tag_mover?
is_tag_mover?,
is_tag_mpadded?
is_tag_mpadded?,
is_tag_mpath?
is_tag_mpath?,
is_tag_mphantom?
is_tag_mphantom?,
is_tag_mroot?
is_tag_mroot?,
is_tag_mrow?
is_tag_mrow?,
is_tag_ms?
is_tag_ms?,
is_tag_mscarries?
is_tag_mscarries?,
is_tag_mscarry?
is_tag_mscarry?,
is_tag_msgroup?
is_tag_msgroup?,
is_tag_msline?
is_tag_msline?,
is_tag_mspace?
is_tag_mspace?,
is_tag_msqrt?
is_tag_msqrt?,
is_tag_msrow?
is_tag_msrow?,
is_tag_mstack?
is_tag_mstack?,
is_tag_mstyle?
is_tag_mstyle?,
is_tag_msub?
is_tag_msub?,
is_tag_msubsup?
is_tag_msubsup?,
is_tag_msup?
is_tag_msup?,
is_tag_mtext?
is_tag_mtext?,
is_tag_nav?
is_tag_nav?,
is_tag_nobr?
is_tag_nobr?,
is_tag_noembed?
is_tag_noembed?,
is_tag_nofollow?
is_tag_nofollow?,
is_tag_noframes?
is_tag_noframes?,
is_tag_noindex?
is_tag_noindex?,
is_tag_noscript?
is_tag_noscript?,
is_tag_object?
is_tag_object?,
is_tag_ol?
is_tag_ol?,
is_tag_optgroup?
is_tag_optgroup?,
is_tag_option?
is_tag_option?,
is_tag_output?
is_tag_output?,
is_tag_p?
is_tag_p?,
is_tag_param?
is_tag_param?,
is_tag_path?
is_tag_path?,
is_tag_pattern?
is_tag_pattern?,
is_tag_plaintext?
is_tag_plaintext?,
is_tag_polygon?
is_tag_polygon?,
is_tag_polyline?
is_tag_polyline?,
is_tag_pre?
is_tag_pre?,
is_tag_progress?
is_tag_progress?,
is_tag_q?
is_tag_q?,
is_tag_radialgradient?
is_tag_radialgradient?,
is_tag_rb?
is_tag_rb?,
is_tag_rect?
is_tag_rect?,
is_tag_rp?
is_tag_rp?,
is_tag_rt?
is_tag_rt?,
is_tag_rtc?
is_tag_rtc?,
is_tag_ruby?
is_tag_ruby?,
is_tag_s?
is_tag_s?,
is_tag_samp?
is_tag_samp?,
is_tag_script?
is_tag_script?,
is_tag_section?
is_tag_section?,
is_tag_select?
is_tag_select?,
is_tag_set?
is_tag_set?,
is_tag_small?
is_tag_small?,
is_tag_source?
is_tag_source?,
is_tag_span?
is_tag_span?,
is_tag_stop?
is_tag_stop?,
is_tag_strike?
is_tag_strike?,
is_tag_strong?
is_tag_strong?,
is_tag_style?
is_tag_style?,
is_tag_sub?
is_tag_sub?,
is_tag_summary?
is_tag_summary?,
is_tag_sup?
is_tag_sup?,
is_tag_svg?
is_tag_svg?,
is_tag_switch?
is_tag_switch?,
is_tag_symbol?
is_tag_symbol?,
is_tag_table?
is_tag_table?,
is_tag_tbody?
is_tag_tbody?,
is_tag_td?
is_tag_td?,
is_tag_template?
is_tag_template?,
is_tag_text?
is_tag_text?,
is_tag_textarea?
is_tag_textarea?,
is_tag_textpath?
is_tag_textpath?,
is_tag_tfoot?
is_tag_tfoot?,
is_tag_th?
is_tag_th?,
is_tag_thead?
is_tag_thead?,
is_tag_time?
is_tag_time?,
is_tag_title?
is_tag_title?,
is_tag_tr?
is_tag_tr?,
is_tag_track?
is_tag_track?,
is_tag_tref?
is_tag_tref?,
is_tag_tspan?
is_tag_tspan?,
is_tag_tt?
is_tag_tt?,
is_tag_u?
is_tag_u?,
is_tag_ul?
is_tag_ul?,
is_tag_use?
is_tag_use?,
is_tag_var?
is_tag_var?,
is_tag_video?
is_tag_video?,
is_tag_view?
is_tag_view?,
is_tag_vkern?
is_tag_vkern?,
is_tag_wbr?
is_tag_wbr?,
is_tag_xmp?
is_tag_xmp?,
is_text?
is_text?,
object?
object?,
tag_sym
tag_sym,
text_node?
text_node?,
visible?
visible?
Constructor Detail
Class Method Detail
Instance Method Detail
def inspect(io : IO)
#
Description copied from struct Struct
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"