Constructor
- arg
-
if not supplied, will be set to the default value. If a String, the name of this object will be set to the argument. If an Element, the object will be shallowly cloned; name, attributes, and namespaces will be copied. Children will
notbe copied. - parent
-
if supplied, must be a Parent, and will be used as the parent of this object.
- context
-
If supplied, must be a hash containing context items. Context items include:
-
:respect_whitespacethe value of this is :allor an array of strings being the names of the elements to respect whitespace for. Defaults to :all. -
:compress_whitespacethe value can be :allor an array of strings being the names of the elements to ignore whitespace on. Overrides :respect_whitespace. -
:ignore_whitespace_nodesthe value can be :allor an array of strings being the names of the elements in which to ignore whitespace-only nodes. If this is set, Text nodes which contain only whitespace will not be added to the document tree. -
:rawcan be :all, or an array of strings being the names of the elements to process in raw mode. In raw mode, special characters in text is not converted to or from entities.
Please login to continue.