-
Notifications
You must be signed in to change notification settings - Fork 1
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');
对维基文本批量执行语法检查的命令行工具
用于维基文本的 ESLint 插件
A command-line tool that performs linting on Wikitext in bulk
ESLint plugin for Wikitext