DdToken (EN) - bhsd-harry/wikiparser-node GitHub Wiki
Other Languages
Introduction
:
which is at the same line with ;
.
All of the following properties and methods are not available in the Mini and Browser versions.
Properties
indent
type: number
Indentation.
// indent (main)
var {lastElementChild} = Parser.parse(';;a::b');
assert.equal(lastElementChild, '::');
assert.strictEqual(lastElementChild.indent, 2);
lastElementChild.indent = 1;
assert.equal(lastElementChild, ':');
Methods
cloneNode
returns: this
Deep clone the node.
// cloneNode (main)
var {lastElementChild} = Parser.parse(';a::');
assert.equal(lastElementChild, ':');
assert.deepStrictEqual(lastElementChild.cloneNode(), lastElementChild);