Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garbles/html-props
A bunch of descriptors for HTML element properties
https://github.com/garbles/html-props
Last synced: about 1 month ago
JSON representation
A bunch of descriptors for HTML element properties
- Host: GitHub
- URL: https://github.com/garbles/html-props
- Owner: garbles
- Created: 2015-12-26T23:36:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-26T23:38:49.000Z (about 9 years ago)
- Last Synced: 2024-11-14T20:47:00.614Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
:tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada:
## A bunch of descriptors for HTML element properties
:tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada:
Originally extracted from [yolk.js](https://github.com/garbles/yolk).
##### setWithEquals
Set value using `=`. e.g. `el.href = 'http://goodbits.io'`
##### setWithFunction
Set value using `setAttribute`. e.g. `el.setAttribute('cols', 5)`
##### hasBooleanValue
Value is always a boolean.
##### hasNumberValue
Value is always a number.
##### isStar
Custom attribute who's prefix is the key. e.g. `data-target` or `aria-language`
##### computed
The HTML5 valid version of the name. Many keys are different than their valid names because they read better. e.g. `maxLength` has a computed value of `maxlength`