Skip to content

DdToken (EN)

bhsd edited this page Jun 3, 2024 · 3 revisions

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);
Clone this wiki locally