wooorm / html-element-attributes Goto Github PK
View Code? Open in Web Editor NEWMap of HTML elements to allowed attributes
License: MIT License
Map of HTML elements to allowed attributes
License: MIT License
missing valid aria/role attributes
As a language-server author, I'm considering using this library,
however, the types of
* @type {Record<string, Array<string>>}
are not specific enough.
if the index.js were ts (and generated a js + d.ts) we could as const
the attribute lists to get TS-fine-grained attribute suggestions in language servers (wrapping TS, such as what Vue, Svelte, and Ember do).
However, I understand if a repo doesn't want to adopt TS, and we can have a manually maintained .d.ts file, but it would basically be a duplicate of the index.js.
This might be because it doesn't have any attributes โ is that how this works?
legacy node projects
Is it possible to somehow know which attributes are deprecated? Maybe if not in this list, is there another list with HTML5-only things so I can do cross-referencing?
I found what look like data errors, possibly in upstream data:
ShadowRoot.delegatesFocus
ended up in template. This is essentially a shadowroot instance method, not sure how it ended up here.isindex
and prompt
are neither elements nor attributes.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.