Skip to content

fixedToken

bhsd edited this page Jun 18, 2024 · 1 revision

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