ParseOptions
These are the options recognized by the
parse and
parseSlice methods.
§Properties
When given, the parser will, beside parsing the content,
record the document positions of the given DOM positions. It
will do so by writing to the objects, adding a pos property
that holds the document position. DOM positions that are not
in the parsed content will not be written to.
By default, whitespace is collapsed as per HTML's rules. Pass
true to preserve whitespace, but normalize newlines to
spaces, and "full" to preserve whitespace entirely.
Provide the starting content match that content parsed into the top node is matched against.
By default, the content is parsed into the schema's default top node type. You can pass this option to use the type and attributes from a different node as the top container.