class Nokogiri::HTML4::ElementDescription

def block?

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

def default_desc

def default_desc
  DefaultDescriptions[name.downcase]
end

def default_sub_element

def default_sub_element
  default_desc&.defaultsubelt
end

def deprecated?

def deprecated?
  default_desc&.depr
end

def deprecated_attributes

def deprecated_attributes
  d = default_desc
  d ? d.attrs_depr : []
end

def description

def description
  default_desc&.desc
end

def implied_end_tag?

def implied_end_tag?
  default_desc&.endTag
end

def implied_start_tag?

def implied_start_tag?
  default_desc&.startTag
end

def inspect

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

def optional_attributes

def optional_attributes
  d = default_desc
  d ? d.attrs_opt : []
end

def required_attributes

def required_attributes
  d = default_desc
  d ? d.attrs_req : []
end

def save_end_tag?

def save_end_tag?
  default_desc&.saveEndTag
end

def to_s

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