Module: Oga::XML

Defined in:
lib/oga/xml/node.rb,
lib/oga/xml/text.rb,
lib/oga/xml/cdata.rb,
lib/oga/xml/lexer.rb,
lib/oga/xml/parser.rb,
lib/oga/xml/to_xml.rb,
lib/oga/xml/comment.rb,
lib/oga/xml/doctype.rb,
lib/oga/xml/element.rb,
lib/oga/xml/document.rb,
lib/oga/xml/entities.rb,
lib/oga/xml/node_set.rb,
lib/oga/xml/querying.rb,
lib/oga/xml/attribute.rb,
lib/oga/xml/generator.rb,
lib/oga/xml/namespace.rb,
lib/oga/xml/traversal.rb,
lib/oga/xml/sax_parser.rb,
lib/oga/xml/pull_parser.rb,
lib/oga/xml/expanded_name.rb,
lib/oga/xml/character_node.rb,
lib/oga/xml/xml_declaration.rb,
lib/oga/xml/default_namespace.rb,
lib/oga/xml/html_void_elements.rb,
lib/oga/xml/processing_instruction.rb

Defined Under Namespace

Modules: Entities, ExpandedName, Querying, ToXML, Traversal Classes: Attribute, Cdata, CharacterNode, Comment, Doctype, Document, Element, Generator, Lexer, Namespace, Node, NodeSet, Parser, ProcessingInstruction, PullParser, SaxParser, Text, XmlDeclaration

Constant Summary

DEFAULT_NAMESPACE =

The default XML namespace.

Returns:

Namespace.new(
  :name => 'xmlns',
  :uri  => 'http://www.w3.org/XML/1998/namespace'
).freeze
HTML_VOID_ELEMENTS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Names of the HTML void elements that should be handled when HTML lexing is enabled.

Returns:

Whitelist.new(%w{
  area base br col command embed hr img input keygen link meta param source
  track wbr
})