class Nokogiri::HTML::ElementDescription

def self.[](tag_name) # :nodoc:

:nodoc:
def self.[](tag_name) # :nodoc:
  ptr = LibXML.htmlTagLookup(tag_name)
  return nil if ptr.null?
  desc = allocate
  desc.cstruct = LibXML::HtmlElemDesc.new(ptr)
  desc
end

def block?

Is this element a block element?
##
def block?
  !inline?
end

def default_sub_element # :nodoc:

:nodoc:
def default_sub_element # :nodoc:
  cstruct[:defaultsubelt]
end

def deprecated? # :nodoc:

:nodoc:
def deprecated? # :nodoc:
  cstruct[:depr] != 0
end

def deprecated_attributes # :nodoc:

:nodoc:
def deprecated_attributes # :nodoc:
  get_string_array_from :attrs_depr
end

def description # :nodoc:

:nodoc:
def description # :nodoc:
  cstruct[:desc]
end

def empty? # :nodoc:

:nodoc:
def empty? # :nodoc:
  cstruct[:empty] != 0
end

def get_string_array_from(sym) # :nodoc:

:nodoc:
def get_string_array_from(sym) # :nodoc:
  ptr = cstruct[sym]
  unless ptr.null?
    ptr.get_array_of_string(0)
  else
    []
  end
end

def implied_end_tag? # :nodoc:

:nodoc:
def implied_end_tag? # :nodoc:
  cstruct[:endTag] != 0
end

def implied_start_tag? # :nodoc:

:nodoc:
def implied_start_tag? # :nodoc:
  cstruct[:startTag] != 0
end

def inline? # :nodoc:

:nodoc:
def inline? # :nodoc:
  cstruct[:isinline] != 0
end

def inspect

Inspection information
##
def inspect
  "#<#{self.class.name}: #{name} #{description}>"
end

def name # :nodoc:

:nodoc:
def name # :nodoc:
  cstruct[:name]
end

def optional_attributes # :nodoc:

:nodoc:
def optional_attributes # :nodoc:
  get_string_array_from :attrs_opt
end

def required_attributes # :nodoc:

:nodoc:
def required_attributes # :nodoc:
  get_string_array_from :attrs_req
end

def save_end_tag? # :nodoc:

:nodoc:
def save_end_tag? # :nodoc:
  cstruct[:saveEndTag] != 0
end

def sub_elements # :nodoc:

:nodoc:
def sub_elements # :nodoc:
  get_string_array_from :subelts
end

def to_s

Convert this description to a string
##
def to_s
  "#{name}: #{description}"
end