-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
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
textarea [type_ "text"] [] blows up Elm #173
Comments
Note: This only happens in JavaScript’s strict mode. Elm outputs Edit: I also tried to find all readonly properties. I went to https://html.spec.whatwg.org/ (warning: massive page) and ran this JavaScript in the console: Array.from(document.querySelectorAll("pre > code.idl"), e => { const text = e.textContent; const match = /interface (HTML\w*Element) /.exec(text); if (match === null) return undefined; const r = Array.from(text.matchAll(/(readonly .+) (\w+);/g)); return r.length === 0 ? undefined : [match[1], r] }).filter(Boolean).sort((a, b) => a[0].localeCompare(b[0])).map(([name, attrs]) => `${name}\n${attrs.map(a => `${a[2]} (${a[1]})`).join("\n")}`).join("\n\n") This is the result:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create a program with
The text was updated successfully, but these errors were encountered: