fixedToken - bhsd-harry/wikiparser-node GitHub Wiki

This is an internal document. For visitors, you can now go back to the home page.

// fixedToken (main)
var attr = Parser.parse('<p id=a>').querySelector('html-attr');
try {
	attr.length = 1;
} catch (e) {
	assert.strictEqual(e.message, 'AttributeToken cannot remove child nodes!');
}
assert.equal(attr, 'id=a');
try {
	attr.append('');
} catch (e) {
	assert.strictEqual(e.message, 'AttributeToken cannot insert child nodes!');
}
assert.equal(attr, 'id=a');
⚠️ **GitHub.com Fallback** ⚠️