We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The old syntax has quite a problem when used in site generator that still rely on XML parser 😭 (legacy of polyglot markup and XHTML5)
Here is the new syntax
<render-scope> <link href=module.js> <template shadowrootmode=closed> <button disabled ~ !disabled #ref=button @click=increment .value=count> Count: <span ~ #text=count>0</span> </button> <input inputmode=numeric type=number disabled ~ !disabled @change=set .value=count> <button disabled ~ !disabled #init=magic>Magic</button> </template> </render-scope>
/** @this HTMLElementButton */ export function magic() { const text = new Text("") this.onclick = () => text.value += this.textContent this.append(text) } export default class { accessor count = 0 increment() { this.count++ } /** @type HTMLElementButton */ button constructor() { let count = 10 this.button.addEventListener("click", function() { console.log(count--) console.debug(this + "") }) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The old syntax has quite a problem when used in site generator that still rely on XML parser 😭 (legacy of polyglot markup and XHTML5)
Here is the new syntax
module.js
The text was updated successfully, but these errors were encountered: