source: node_modules/property-information/readme.md

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 59.2 KB
RevLine 
[d24f17c]1# property-information
2
3[![Build][build-badge]][build]
4[![Coverage][coverage-badge]][coverage]
5[![Downloads][downloads-badge]][downloads]
6[![Size][size-badge]][size]
7
8Info for properties and attributes on the web-platform (HTML, SVG, ARIA, XML,
9XMLNS, XLink).
10
11This package follows a sensible naming scheme as defined by [hast][].
12
13## Install
14
15[npm][]:
16
17```sh
18npm install property-information
19```
20
21## Contents
22
23* [Use](#use)
24* [API](#api)
25 * [`propertyInformation.find(schema, name)`](#propertyinformationfindschema-name)
26 * [`propertyInformation.normalize(name)`](#propertyinformationnormalizename)
27 * [`propertyInformation.html`](#propertyinformationhtml)
28 * [`propertyInformation.svg`](#propertyinformationsvg)
29 * [`hastToReact`](#hasttoreact)
30* [Support](#support)
31* [Related](#related)
32* [License](#license)
33
34## Use
35
36```js
37var info = require('property-information')
38
39console.log(info.find(info.html, 'className'))
40// Or: info.find(info.html, 'class')
41console.log(info.find(info.svg, 'horiz-adv-x'))
42// Or: info.find(info.svg, 'horizAdvX')
43console.log(info.find(info.svg, 'xlink:arcrole'))
44// Or: info.find(info.svg, 'xLinkArcRole')
45console.log(info.find(info.html, 'xmlLang'))
46// Or: info.find(info.html, 'xml:lang')
47console.log(info.find(info.html, 'ariaValueNow'))
48// Or: info.find(info.html, 'aria-valuenow')
49```
50
51Yields:
52
53```js
54{ space: 'html',
55 attribute: 'class',
56 property: 'className',
57 spaceSeparated: true }
58{ space: 'svg',
59 attribute: 'horiz-adv-x',
60 property: 'horizAdvX',
61 number: true }
62{ space: 'xlink', attribute: 'xlink:arcrole', property: 'xLinkArcrole' }
63{ space: 'xml', attribute: 'xml:lang', property: 'xmlLang' }
64{ attribute: 'aria-valuenow', property: 'ariaValueNow', number: true }
65```
66
67## API
68
69### `propertyInformation.find(schema, name)`
70
71Look up info on a property.
72
73In most cases, the given `schema` contains info on the property.
74All standard, most legacy, and some non-standard properties are supported.
75For these cases, the returned [`Info`][info] has hints about value of the
76property.
77
78`name` can be a [valid data attribute or property][data], in which case an
79[`Info`][info] object with the correctly cased `attribute` and `property` is
80returned.
81
82`name` can be an unknown attribute, in which case an [`Info`][info] object
83with `attribute` and `property` set to the given name is returned.
84It is not recommended to provide unsupported legacy or recently specced
85properties.
86
87#### Parameters
88
89* `schema` ([`Schema`][schema])
90 — Either `propertyInformation.html` or `propertyInformation.svg`
91* `name` (`string`)
92 — An attribute-like or property-like name that is passed through
93 [`normalize`][normalize] to find the correct info
94
95#### Returns
96
97[`Info`][info].
98
99#### Note
100
101`find` can be accessed directly from `require('property-information/find')` as
102well.
103
104#### Example
105
106Aside from the aforementioned example, which shows known HTML, SVG, XML, XLink,
107and ARIA support, data properties, and attributes are also supported:
108
109```js
110console.log(info.find(info.html, 'data-date-of-birth'))
111// Or: info.find(info.html, 'dataDateOfBirth')
112```
113
114Yields:
115
116```js
117{ attribute: 'data-date-of-birth', property: 'dataDateOfBirth' }
118```
119
120Unknown values are passed through untouched:
121
122```js
123console.log(info.find(info.html, 'un-Known'))
124```
125
126Yields:
127
128```js
129{ attribute: 'un-Known', property: 'un-Known' }
130```
131
132### `propertyInformation.normalize(name)`
133
134Get the cleaned case-insensitive form of an attribute or a property.
135
136#### Parameters
137
138* `name` (`string`) — An attribute-like or property-like name
139
140#### Returns
141
142`string` that can be used to look up the properly cased property in a
143[`Schema`][schema].
144
145#### Note
146
147`normalize` can be accessed directly from
148`require('property-information/normalize')` as well.
149
150#### Example
151
152```js
153info.html.normal[info.normalize('for')] // => 'htmlFor'
154info.svg.normal[info.normalize('VIEWBOX')] // => 'viewBox'
155info.html.normal[info.normalize('unknown')] // => undefined
156info.html.normal[info.normalize('accept-charset')] // => 'acceptCharset'
157```
158
159### `propertyInformation.html`
160
161### `propertyInformation.svg`
162
163[`Schema`][schema] for either HTML or SVG, containing info on properties from
164the primary space (HTML or SVG) and related embedded spaces (ARIA, XML, XMLNS,
165XLink).
166
167#### Note
168
169`html` and `svg` can be accessed directly from
170`require('property-information/html')` and `require('property-information/svg')`
171as well.
172
173#### Example
174
175```js
176console.log(info.html.property.htmlFor)
177console.log(info.svg.property.viewBox)
178console.log(info.html.property.unknown)
179```
180
181Yields:
182
183```js
184{ space: 'html',
185 attribute: 'for',
186 property: 'htmlFor',
187 spaceSeparated: true }
188{ space: 'svg', attribute: 'viewBox', property: 'viewBox' }
189undefined
190```
191
192#### `Schema`
193
194A schema for a primary space.
195
196* `space` (`'html'` or `'svg'`) — Primary space of the schema
197* `normal` (`Object.<string>`) — Object mapping normalized attributes and
198 properties to properly cased properties
199* `property` ([`Object.<Info>`][info]) — Object mapping properties to info
200
201#### `Info`
202
203Info on a property.
204
205* `space` (`'html'`, `'svg'`, `'xml'`, `'xlink'`, `'xmlns'`, optional)
206 — [Space][namespace] of the property
207* `attribute` (`string`) — Attribute name for the property that could be used
208 in markup (for example: `'aria-describedby'`, `'allowfullscreen'`,
209 `'xml:lang'`, `'for'`, or `'charoff'`)
210* `property` (`string`) — JavaScript-style camel-cased name, based on the
211 DOM, but sometimes different (for example: `'ariaDescribedBy'`,
212 `'allowFullScreen'`, `'xmlLang'`, `'htmlFor'`, `'charOff'`)
213* `boolean` (`boolean`) — The property is `boolean`.
214 The default value of this property is false, so it can be omitted
215* `booleanish` (`boolean`) — The property is a `boolean`.
216 The default value of this property is something other than false, so
217 `false` must persist.
218 The value can hold a string (as is the case with `ariaChecked` and its
219 `'mixed'` value)
220* `overloadedBoolean` (`boolean`) — The property is `boolean`.
221 The default value of this property is false, so it can be omitted.
222 The value can hold a string (as is the case with `download` as its value
223 reflects the name to use for the downloaded file)
224* `number` (`boolean`) — The property is `number`.
225 These values can sometimes hold a string
226* `spaceSeparated` (`boolean`) — The property is a list separated by spaces
227 (for example, `className`)
228* `commaSeparated` (`boolean`) — The property is a list separated by commas
229 (for example, `srcSet`)
230* `commaOrSpaceSeparated` (`boolean`) — The property is a list separated by
231 commas or spaces (for example, `strokeDashArray`)
232* `mustUseProperty` (`boolean`) — If a DOM is used, setting the property
233 should be used for the change to take effect (this is true only for
234 `'checked'`, `'multiple'`, `'muted'`, and `'selected'`)
235* `defined` (`boolean`) — The property is [defined by a space](#support).
236 This is true for values in HTML (including data and ARIA), SVG, XML,
237 XMLNS, and XLink.
238 These values can only be accessed through `find`.
239
240### `hastToReact`
241
242> Accessible through `require('property-information/hast-to-react.json')`
243
244[hast][] is close to [React][], but differs in a couple of cases.
245To get a React property from a hast property, check if it is in
246[`hast-to-react`][hast-to-react] (`Object.<string>`), if it is, then use the
247corresponding value, otherwise, use the hast property.
248
249## Support
250
251<!--list start-->
252
253| Property | Attribute | Space |
254| ---------------------------- | ------------------------------ | ------------- |
255| `aLink` | `alink` | `html` |
256| `abbr` | `abbr` | `html` |
257| `about` | `about` | `svg` |
258| `accentHeight` | `accent-height` | `svg` |
259| `accept` | `accept` | `html` |
260| `acceptCharset` | `accept-charset` | `html` |
261| `accessKey` | `accesskey` | `html` |
262| `accumulate` | `accumulate` | `svg` |
263| `action` | `action` | `html` |
264| `additive` | `additive` | `svg` |
265| `align` | `align` | `html` |
266| `alignmentBaseline` | `alignment-baseline` | `svg` |
267| `allow` | `allow` | `html` |
268| `allowFullScreen` | `allowfullscreen` | `html` |
269| `allowPaymentRequest` | `allowpaymentrequest` | `html` |
270| `allowTransparency` | `allowtransparency` | `html` |
271| `allowUserMedia` | `allowusermedia` | `html` |
272| `alphabetic` | `alphabetic` | `svg` |
273| `alt` | `alt` | `html` |
274| `amplitude` | `amplitude` | `svg` |
275| `arabicForm` | `arabic-form` | `svg` |
276| `archive` | `archive` | `html` |
277| `ariaActiveDescendant` | `aria-activedescendant` | |
278| `ariaAtomic` | `aria-atomic` | |
279| `ariaAutoComplete` | `aria-autocomplete` | |
280| `ariaBusy` | `aria-busy` | |
281| `ariaChecked` | `aria-checked` | |
282| `ariaColCount` | `aria-colcount` | |
283| `ariaColIndex` | `aria-colindex` | |
284| `ariaColSpan` | `aria-colspan` | |
285| `ariaControls` | `aria-controls` | |
286| `ariaCurrent` | `aria-current` | |
287| `ariaDescribedBy` | `aria-describedby` | |
288| `ariaDetails` | `aria-details` | |
289| `ariaDisabled` | `aria-disabled` | |
290| `ariaDropEffect` | `aria-dropeffect` | |
291| `ariaErrorMessage` | `aria-errormessage` | |
292| `ariaExpanded` | `aria-expanded` | |
293| `ariaFlowTo` | `aria-flowto` | |
294| `ariaGrabbed` | `aria-grabbed` | |
295| `ariaHasPopup` | `aria-haspopup` | |
296| `ariaHidden` | `aria-hidden` | |
297| `ariaInvalid` | `aria-invalid` | |
298| `ariaKeyShortcuts` | `aria-keyshortcuts` | |
299| `ariaLabel` | `aria-label` | |
300| `ariaLabelledBy` | `aria-labelledby` | |
301| `ariaLevel` | `aria-level` | |
302| `ariaLive` | `aria-live` | |
303| `ariaModal` | `aria-modal` | |
304| `ariaMultiLine` | `aria-multiline` | |
305| `ariaMultiSelectable` | `aria-multiselectable` | |
306| `ariaOrientation` | `aria-orientation` | |
307| `ariaOwns` | `aria-owns` | |
308| `ariaPlaceholder` | `aria-placeholder` | |
309| `ariaPosInSet` | `aria-posinset` | |
310| `ariaPressed` | `aria-pressed` | |
311| `ariaReadOnly` | `aria-readonly` | |
312| `ariaRelevant` | `aria-relevant` | |
313| `ariaRequired` | `aria-required` | |
314| `ariaRoleDescription` | `aria-roledescription` | |
315| `ariaRowCount` | `aria-rowcount` | |
316| `ariaRowIndex` | `aria-rowindex` | |
317| `ariaRowSpan` | `aria-rowspan` | |
318| `ariaSelected` | `aria-selected` | |
319| `ariaSetSize` | `aria-setsize` | |
320| `ariaSort` | `aria-sort` | |
321| `ariaValueMax` | `aria-valuemax` | |
322| `ariaValueMin` | `aria-valuemin` | |
323| `ariaValueNow` | `aria-valuenow` | |
324| `ariaValueText` | `aria-valuetext` | |
325| `as` | `as` | `html` |
326| `ascent` | `ascent` | `svg` |
327| `async` | `async` | `html` |
328| `attributeName` | `attributeName` | `svg` |
329| `attributeType` | `attributeType` | `svg` |
330| `autoCapitalize` | `autocapitalize` | `html` |
331| `autoComplete` | `autocomplete` | `html` |
332| `autoCorrect` | `autocorrect` | `html` |
333| `autoFocus` | `autofocus` | `html` |
334| `autoPlay` | `autoplay` | `html` |
335| `autoSave` | `autosave` | `html` |
336| `axis` | `axis` | `html` |
337| `azimuth` | `azimuth` | `svg` |
338| `background` | `background` | `html` |
339| `bandwidth` | `bandwidth` | `svg` |
340| `baseFrequency` | `baseFrequency` | `svg` |
341| `baseProfile` | `baseProfile` | `svg` |
342| `baselineShift` | `baseline-shift` | `svg` |
343| `bbox` | `bbox` | `svg` |
344| `begin` | `begin` | `svg` |
345| `bgColor` | `bgcolor` | `html` |
346| `bias` | `bias` | `svg` |
347| `border` | `border` | `html` |
348| `borderColor` | `bordercolor` | `html` |
349| `bottomMargin` | `bottommargin` | `html` |
350| `by` | `by` | `svg` |
351| `calcMode` | `calcMode` | `svg` |
352| `capHeight` | `cap-height` | `svg` |
353| `capture` | `capture` | `html` |
354| `cellPadding` | `cellpadding` | `html` |
355| `cellSpacing` | `cellspacing` | `html` |
356| `char` | `char` | `html` |
357| `charOff` | `charoff` | `html` |
358| `charSet` | `charset` | `html` |
359| `checked` | `checked` | `html` |
360| `cite` | `cite` | `html` |
361| `classId` | `classid` | `html` |
362| `className` | `class` | `svg`, `html` |
363| `clear` | `clear` | `html` |
364| `clip` | `clip` | `svg` |
365| `clipPath` | `clip-path` | `svg` |
366| `clipPathUnits` | `clipPathUnits` | `svg` |
367| `clipRule` | `clip-rule` | `svg` |
368| `code` | `code` | `html` |
369| `codeBase` | `codebase` | `html` |
370| `codeType` | `codetype` | `html` |
371| `colSpan` | `colspan` | `html` |
372| `color` | `color` | `svg`, `html` |
373| `colorInterpolation` | `color-interpolation` | `svg` |
374| `colorInterpolationFilters` | `color-interpolation-filters` | `svg` |
375| `colorProfile` | `color-profile` | `svg` |
376| `colorRendering` | `color-rendering` | `svg` |
377| `cols` | `cols` | `html` |
378| `compact` | `compact` | `html` |
379| `content` | `content` | `svg`, `html` |
380| `contentEditable` | `contenteditable` | `html` |
381| `contentScriptType` | `contentScriptType` | `svg` |
382| `contentStyleType` | `contentStyleType` | `svg` |
383| `controls` | `controls` | `html` |
384| `controlsList` | `controlslist` | `html` |
385| `coords` | `coords` | `html` |
386| `crossOrigin` | `crossorigin` | `svg`, `html` |
387| `cursor` | `cursor` | `svg` |
388| `cx` | `cx` | `svg` |
389| `cy` | `cy` | `svg` |
390| `d` | `d` | `svg` |
391| `data` | `data` | `html` |
392| `dataType` | `datatype` | `svg` |
393| `dateTime` | `datetime` | `html` |
394| `declare` | `declare` | `html` |
395| `decoding` | `decoding` | `html` |
396| `default` | `default` | `html` |
397| `defaultAction` | `defaultAction` | `svg` |
398| `defer` | `defer` | `html` |
399| `descent` | `descent` | `svg` |
400| `diffuseConstant` | `diffuseConstant` | `svg` |
401| `dir` | `dir` | `html` |
402| `dirName` | `dirname` | `html` |
403| `direction` | `direction` | `svg` |
404| `disablePictureInPicture` | `disablepictureinpicture` | `html` |
405| `disableRemotePlayback` | `disableremoteplayback` | `html` |
406| `disabled` | `disabled` | `html` |
407| `display` | `display` | `svg` |
408| `divisor` | `divisor` | `svg` |
409| `dominantBaseline` | `dominant-baseline` | `svg` |
410| `download` | `download` | `svg`, `html` |
411| `draggable` | `draggable` | `html` |
412| `dur` | `dur` | `svg` |
413| `dx` | `dx` | `svg` |
414| `dy` | `dy` | `svg` |
415| `edgeMode` | `edgeMode` | `svg` |
416| `editable` | `editable` | `svg` |
417| `elevation` | `elevation` | `svg` |
418| `enableBackground` | `enable-background` | `svg` |
419| `encType` | `enctype` | `html` |
420| `end` | `end` | `svg` |
421| `enterKeyHint` | `enterkeyhint` | `html` |
422| `event` | `event` | `svg`, `html` |
423| `exponent` | `exponent` | `svg` |
424| `externalResourcesRequired` | `externalResourcesRequired` | `svg` |
425| `face` | `face` | `html` |
426| `fill` | `fill` | `svg` |
427| `fillOpacity` | `fill-opacity` | `svg` |
428| `fillRule` | `fill-rule` | `svg` |
429| `filter` | `filter` | `svg` |
430| `filterRes` | `filterRes` | `svg` |
431| `filterUnits` | `filterUnits` | `svg` |
432| `floodColor` | `flood-color` | `svg` |
433| `floodOpacity` | `flood-opacity` | `svg` |
434| `focusHighlight` | `focusHighlight` | `svg` |
435| `focusable` | `focusable` | `svg` |
436| `fontFamily` | `font-family` | `svg` |
437| `fontSize` | `font-size` | `svg` |
438| `fontSizeAdjust` | `font-size-adjust` | `svg` |
439| `fontStretch` | `font-stretch` | `svg` |
440| `fontStyle` | `font-style` | `svg` |
441| `fontVariant` | `font-variant` | `svg` |
442| `fontWeight` | `font-weight` | `svg` |
443| `form` | `form` | `html` |
444| `formAction` | `formaction` | `html` |
445| `formEncType` | `formenctype` | `html` |
446| `formMethod` | `formmethod` | `html` |
447| `formNoValidate` | `formnovalidate` | `html` |
448| `formTarget` | `formtarget` | `html` |
449| `format` | `format` | `svg` |
450| `fr` | `fr` | `svg` |
451| `frame` | `frame` | `html` |
452| `frameBorder` | `frameborder` | `html` |
453| `from` | `from` | `svg` |
454| `fx` | `fx` | `svg` |
455| `fy` | `fy` | `svg` |
456| `g1` | `g1` | `svg` |
457| `g2` | `g2` | `svg` |
458| `glyphName` | `glyph-name` | `svg` |
459| `glyphOrientationHorizontal` | `glyph-orientation-horizontal` | `svg` |
460| `glyphOrientationVertical` | `glyph-orientation-vertical` | `svg` |
461| `glyphRef` | `glyphRef` | `svg` |
462| `gradientTransform` | `gradientTransform` | `svg` |
463| `gradientUnits` | `gradientUnits` | `svg` |
464| `hSpace` | `hspace` | `html` |
465| `handler` | `handler` | `svg` |
466| `hanging` | `hanging` | `svg` |
467| `hatchContentUnits` | `hatchContentUnits` | `svg` |
468| `hatchUnits` | `hatchUnits` | `svg` |
469| `headers` | `headers` | `html` |
470| `height` | `height` | `svg`, `html` |
471| `hidden` | `hidden` | `html` |
472| `high` | `high` | `html` |
473| `horizAdvX` | `horiz-adv-x` | `svg` |
474| `horizOriginX` | `horiz-origin-x` | `svg` |
475| `horizOriginY` | `horiz-origin-y` | `svg` |
476| `href` | `href` | `svg`, `html` |
477| `hrefLang` | `hreflang` | `svg`, `html` |
478| `htmlFor` | `for` | `html` |
479| `httpEquiv` | `http-equiv` | `html` |
480| `id` | `id` | `svg`, `html` |
481| `ideographic` | `ideographic` | `svg` |
482| `imageRendering` | `image-rendering` | `svg` |
483| `imageSizes` | `imagesizes` | `html` |
484| `imageSrcSet` | `imagesrcset` | `html` |
485| `in` | `in` | `svg` |
486| `in2` | `in2` | `svg` |
487| `initialVisibility` | `initialVisibility` | `svg` |
488| `inputMode` | `inputmode` | `html` |
489| `integrity` | `integrity` | `html` |
490| `intercept` | `intercept` | `svg` |
491| `is` | `is` | `html` |
492| `isMap` | `ismap` | `html` |
493| `itemId` | `itemid` | `html` |
494| `itemProp` | `itemprop` | `html` |
495| `itemRef` | `itemref` | `html` |
496| `itemScope` | `itemscope` | `html` |
497| `itemType` | `itemtype` | `html` |
498| `k` | `k` | `svg` |
499| `k1` | `k1` | `svg` |
500| `k2` | `k2` | `svg` |
501| `k3` | `k3` | `svg` |
502| `k4` | `k4` | `svg` |
503| `kernelMatrix` | `kernelMatrix` | `svg` |
504| `kernelUnitLength` | `kernelUnitLength` | `svg` |
505| `kerning` | `kerning` | `svg` |
506| `keyPoints` | `keyPoints` | `svg` |
507| `keySplines` | `keySplines` | `svg` |
508| `keyTimes` | `keyTimes` | `svg` |
509| `kind` | `kind` | `html` |
510| `label` | `label` | `html` |
511| `lang` | `lang` | `svg`, `html` |
512| `language` | `language` | `html` |
513| `leftMargin` | `leftmargin` | `html` |
514| `lengthAdjust` | `lengthAdjust` | `svg` |
515| `letterSpacing` | `letter-spacing` | `svg` |
516| `lightingColor` | `lighting-color` | `svg` |
517| `limitingConeAngle` | `limitingConeAngle` | `svg` |
518| `link` | `link` | `html` |
519| `list` | `list` | `html` |
520| `loading` | `loading` | `html` |
521| `local` | `local` | `svg` |
522| `longDesc` | `longdesc` | `html` |
523| `loop` | `loop` | `html` |
524| `low` | `low` | `html` |
525| `lowSrc` | `lowsrc` | `html` |
526| `manifest` | `manifest` | `html` |
527| `marginHeight` | `marginheight` | `html` |
528| `marginWidth` | `marginwidth` | `html` |
529| `markerEnd` | `marker-end` | `svg` |
530| `markerHeight` | `markerHeight` | `svg` |
531| `markerMid` | `marker-mid` | `svg` |
532| `markerStart` | `marker-start` | `svg` |
533| `markerUnits` | `markerUnits` | `svg` |
534| `markerWidth` | `markerWidth` | `svg` |
535| `mask` | `mask` | `svg` |
536| `maskContentUnits` | `maskContentUnits` | `svg` |
537| `maskUnits` | `maskUnits` | `svg` |
538| `mathematical` | `mathematical` | `svg` |
539| `max` | `max` | `svg`, `html` |
540| `maxLength` | `maxlength` | `html` |
541| `media` | `media` | `svg`, `html` |
542| `mediaCharacterEncoding` | `mediaCharacterEncoding` | `svg` |
543| `mediaContentEncodings` | `mediaContentEncodings` | `svg` |
544| `mediaSize` | `mediaSize` | `svg` |
545| `mediaTime` | `mediaTime` | `svg` |
546| `method` | `method` | `svg`, `html` |
547| `min` | `min` | `svg`, `html` |
548| `minLength` | `minlength` | `html` |
549| `mode` | `mode` | `svg` |
550| `multiple` | `multiple` | `html` |
551| `muted` | `muted` | `html` |
552| `name` | `name` | `svg`, `html` |
553| `navDown` | `nav-down` | `svg` |
554| `navDownLeft` | `nav-down-left` | `svg` |
555| `navDownRight` | `nav-down-right` | `svg` |
556| `navLeft` | `nav-left` | `svg` |
557| `navNext` | `nav-next` | `svg` |
558| `navPrev` | `nav-prev` | `svg` |
559| `navRight` | `nav-right` | `svg` |
560| `navUp` | `nav-up` | `svg` |
561| `navUpLeft` | `nav-up-left` | `svg` |
562| `navUpRight` | `nav-up-right` | `svg` |
563| `noHref` | `nohref` | `html` |
564| `noModule` | `nomodule` | `html` |
565| `noResize` | `noresize` | `html` |
566| `noShade` | `noshade` | `html` |
567| `noValidate` | `novalidate` | `html` |
568| `noWrap` | `nowrap` | `html` |
569| `nonce` | `nonce` | `html` |
570| `numOctaves` | `numOctaves` | `svg` |
571| `object` | `object` | `html` |
572| `observer` | `observer` | `svg` |
573| `offset` | `offset` | `svg` |
574| `onAbort` | `onabort` | `svg`, `html` |
575| `onActivate` | `onactivate` | `svg` |
576| `onAfterPrint` | `onafterprint` | `svg`, `html` |
577| `onAuxClick` | `onauxclick` | `html` |
578| `onBeforePrint` | `onbeforeprint` | `svg`, `html` |
579| `onBeforeUnload` | `onbeforeunload` | `html` |
580| `onBegin` | `onbegin` | `svg` |
581| `onBlur` | `onblur` | `html` |
582| `onCanPlay` | `oncanplay` | `svg`, `html` |
583| `onCanPlayThrough` | `oncanplaythrough` | `svg`, `html` |
584| `onCancel` | `oncancel` | `svg`, `html` |
585| `onChange` | `onchange` | `svg`, `html` |
586| `onClick` | `onclick` | `svg`, `html` |
587| `onClose` | `onclose` | `svg`, `html` |
588| `onContextMenu` | `oncontextmenu` | `html` |
589| `onCopy` | `oncopy` | `svg`, `html` |
590| `onCueChange` | `oncuechange` | `svg`, `html` |
591| `onCut` | `oncut` | `svg`, `html` |
592| `onDblClick` | `ondblclick` | `svg`, `html` |
593| `onDrag` | `ondrag` | `svg`, `html` |
594| `onDragEnd` | `ondragend` | `svg`, `html` |
595| `onDragEnter` | `ondragenter` | `svg`, `html` |
596| `onDragExit` | `ondragexit` | `svg`, `html` |
597| `onDragLeave` | `ondragleave` | `svg`, `html` |
598| `onDragOver` | `ondragover` | `svg`, `html` |
599| `onDragStart` | `ondragstart` | `svg`, `html` |
600| `onDrop` | `ondrop` | `svg`, `html` |
601| `onDurationChange` | `ondurationchange` | `svg`, `html` |
602| `onEmptied` | `onemptied` | `svg`, `html` |
603| `onEnd` | `onend` | `svg` |
604| `onEnded` | `onended` | `svg`, `html` |
605| `onError` | `onerror` | `svg`, `html` |
606| `onFocus` | `onfocus` | `svg`, `html` |
607| `onFocusIn` | `onfocusin` | `svg` |
608| `onFocusOut` | `onfocusout` | `svg` |
609| `onFormData` | `onformdata` | `html` |
610| `onHashChange` | `onhashchange` | `svg`, `html` |
611| `onInput` | `oninput` | `svg`, `html` |
612| `onInvalid` | `oninvalid` | `svg`, `html` |
613| `onKeyDown` | `onkeydown` | `svg`, `html` |
614| `onKeyPress` | `onkeypress` | `svg`, `html` |
615| `onKeyUp` | `onkeyup` | `svg`, `html` |
616| `onLanguageChange` | `onlanguagechange` | `html` |
617| `onLoad` | `onload` | `svg`, `html` |
618| `onLoadEnd` | `onloadend` | `html` |
619| `onLoadStart` | `onloadstart` | `svg`, `html` |
620| `onLoadedData` | `onloadeddata` | `svg`, `html` |
621| `onLoadedMetadata` | `onloadedmetadata` | `svg`, `html` |
622| `onMessage` | `onmessage` | `svg`, `html` |
623| `onMessageError` | `onmessageerror` | `html` |
624| `onMouseDown` | `onmousedown` | `svg`, `html` |
625| `onMouseEnter` | `onmouseenter` | `svg`, `html` |
626| `onMouseLeave` | `onmouseleave` | `svg`, `html` |
627| `onMouseMove` | `onmousemove` | `svg`, `html` |
628| `onMouseOut` | `onmouseout` | `svg`, `html` |
629| `onMouseOver` | `onmouseover` | `svg`, `html` |
630| `onMouseUp` | `onmouseup` | `svg`, `html` |
631| `onMouseWheel` | `onmousewheel` | `svg` |
632| `onOffline` | `onoffline` | `svg`, `html` |
633| `onOnline` | `ononline` | `svg`, `html` |
634| `onPageHide` | `onpagehide` | `svg`, `html` |
635| `onPageShow` | `onpageshow` | `svg`, `html` |
636| `onPaste` | `onpaste` | `svg`, `html` |
637| `onPause` | `onpause` | `svg`, `html` |
638| `onPlay` | `onplay` | `svg`, `html` |
639| `onPlaying` | `onplaying` | `svg`, `html` |
640| `onPopState` | `onpopstate` | `svg`, `html` |
641| `onProgress` | `onprogress` | `svg`, `html` |
642| `onRateChange` | `onratechange` | `svg`, `html` |
643| `onRejectionHandled` | `onrejectionhandled` | `html` |
644| `onRepeat` | `onrepeat` | `svg` |
645| `onReset` | `onreset` | `svg`, `html` |
646| `onResize` | `onresize` | `svg`, `html` |
647| `onScroll` | `onscroll` | `svg`, `html` |
648| `onSecurityPolicyViolation` | `onsecuritypolicyviolation` | `html` |
649| `onSeeked` | `onseeked` | `svg`, `html` |
650| `onSeeking` | `onseeking` | `svg`, `html` |
651| `onSelect` | `onselect` | `svg`, `html` |
652| `onShow` | `onshow` | `svg` |
653| `onSlotChange` | `onslotchange` | `html` |
654| `onStalled` | `onstalled` | `svg`, `html` |
655| `onStorage` | `onstorage` | `svg`, `html` |
656| `onSubmit` | `onsubmit` | `svg`, `html` |
657| `onSuspend` | `onsuspend` | `svg`, `html` |
658| `onTimeUpdate` | `ontimeupdate` | `svg`, `html` |
659| `onToggle` | `ontoggle` | `svg`, `html` |
660| `onUnhandledRejection` | `onunhandledrejection` | `html` |
661| `onUnload` | `onunload` | `svg`, `html` |
662| `onVolumeChange` | `onvolumechange` | `svg`, `html` |
663| `onWaiting` | `onwaiting` | `svg`, `html` |
664| `onWheel` | `onwheel` | `html` |
665| `onZoom` | `onzoom` | `svg` |
666| `opacity` | `opacity` | `svg` |
667| `open` | `open` | `html` |
668| `operator` | `operator` | `svg` |
669| `optimum` | `optimum` | `html` |
670| `order` | `order` | `svg` |
671| `orient` | `orient` | `svg` |
672| `orientation` | `orientation` | `svg` |
673| `origin` | `origin` | `svg` |
674| `overflow` | `overflow` | `svg` |
675| `overlay` | `overlay` | `svg` |
676| `overlinePosition` | `overline-position` | `svg` |
677| `overlineThickness` | `overline-thickness` | `svg` |
678| `paintOrder` | `paint-order` | `svg` |
679| `panose1` | `panose-1` | `svg` |
680| `path` | `path` | `svg` |
681| `pathLength` | `pathLength` | `svg` |
682| `pattern` | `pattern` | `html` |
683| `patternContentUnits` | `patternContentUnits` | `svg` |
684| `patternTransform` | `patternTransform` | `svg` |
685| `patternUnits` | `patternUnits` | `svg` |
686| `phase` | `phase` | `svg` |
687| `ping` | `ping` | `svg`, `html` |
688| `pitch` | `pitch` | `svg` |
689| `placeholder` | `placeholder` | `html` |
690| `playbackOrder` | `playbackorder` | `svg` |
691| `playsInline` | `playsinline` | `html` |
692| `pointerEvents` | `pointer-events` | `svg` |
693| `points` | `points` | `svg` |
694| `pointsAtX` | `pointsAtX` | `svg` |
695| `pointsAtY` | `pointsAtY` | `svg` |
696| `pointsAtZ` | `pointsAtZ` | `svg` |
697| `poster` | `poster` | `html` |
698| `prefix` | `prefix` | `html` |
699| `preload` | `preload` | `html` |
700| `preserveAlpha` | `preserveAlpha` | `svg` |
701| `preserveAspectRatio` | `preserveAspectRatio` | `svg` |
702| `primitiveUnits` | `primitiveUnits` | `svg` |
703| `profile` | `profile` | `html` |
704| `prompt` | `prompt` | `html` |
705| `propagate` | `propagate` | `svg` |
706| `property` | `property` | `svg`, `html` |
707| `r` | `r` | `svg` |
708| `radius` | `radius` | `svg` |
709| `readOnly` | `readonly` | `html` |
710| `refX` | `refX` | `svg` |
711| `refY` | `refY` | `svg` |
712| `referrerPolicy` | `referrerpolicy` | `svg`, `html` |
713| `rel` | `rel` | `svg`, `html` |
714| `renderingIntent` | `rendering-intent` | `svg` |
715| `repeatCount` | `repeatCount` | `svg` |
716| `repeatDur` | `repeatDur` | `svg` |
717| `required` | `required` | `html` |
718| `requiredExtensions` | `requiredExtensions` | `svg` |
719| `requiredFeatures` | `requiredFeatures` | `svg` |
720| `requiredFonts` | `requiredFonts` | `svg` |
721| `requiredFormats` | `requiredFormats` | `svg` |
722| `resource` | `resource` | `svg` |
723| `restart` | `restart` | `svg` |
724| `result` | `result` | `svg` |
725| `results` | `results` | `html` |
726| `rev` | `rev` | `svg`, `html` |
727| `reversed` | `reversed` | `html` |
728| `rightMargin` | `rightmargin` | `html` |
729| `role` | `role` | |
730| `rotate` | `rotate` | `svg` |
731| `rowSpan` | `rowspan` | `html` |
732| `rows` | `rows` | `html` |
733| `rules` | `rules` | `html` |
734| `rx` | `rx` | `svg` |
735| `ry` | `ry` | `svg` |
736| `sandbox` | `sandbox` | `html` |
737| `scale` | `scale` | `svg` |
738| `scheme` | `scheme` | `html` |
739| `scope` | `scope` | `html` |
740| `scoped` | `scoped` | `html` |
741| `scrolling` | `scrolling` | `html` |
742| `seamless` | `seamless` | `html` |
743| `security` | `security` | `html` |
744| `seed` | `seed` | `svg` |
745| `selected` | `selected` | `html` |
746| `shape` | `shape` | `html` |
747| `shapeRendering` | `shape-rendering` | `svg` |
748| `side` | `side` | `svg` |
749| `size` | `size` | `html` |
750| `sizes` | `sizes` | `html` |
751| `slope` | `slope` | `svg` |
752| `slot` | `slot` | `html` |
753| `snapshotTime` | `snapshotTime` | `svg` |
754| `spacing` | `spacing` | `svg` |
755| `span` | `span` | `html` |
756| `specularConstant` | `specularConstant` | `svg` |
757| `specularExponent` | `specularExponent` | `svg` |
758| `spellCheck` | `spellcheck` | `html` |
759| `spreadMethod` | `spreadMethod` | `svg` |
760| `src` | `src` | `html` |
761| `srcDoc` | `srcdoc` | `html` |
762| `srcLang` | `srclang` | `html` |
763| `srcSet` | `srcset` | `html` |
764| `standby` | `standby` | `html` |
765| `start` | `start` | `html` |
766| `startOffset` | `startOffset` | `svg` |
767| `stdDeviation` | `stdDeviation` | `svg` |
768| `stemh` | `stemh` | `svg` |
769| `stemv` | `stemv` | `svg` |
770| `step` | `step` | `html` |
771| `stitchTiles` | `stitchTiles` | `svg` |
772| `stopColor` | `stop-color` | `svg` |
773| `stopOpacity` | `stop-opacity` | `svg` |
774| `strikethroughPosition` | `strikethrough-position` | `svg` |
775| `strikethroughThickness` | `strikethrough-thickness` | `svg` |
776| `string` | `string` | `svg` |
777| `stroke` | `stroke` | `svg` |
778| `strokeDashArray` | `stroke-dasharray` | `svg` |
779| `strokeDashOffset` | `stroke-dashoffset` | `svg` |
780| `strokeLineCap` | `stroke-linecap` | `svg` |
781| `strokeLineJoin` | `stroke-linejoin` | `svg` |
782| `strokeMiterLimit` | `stroke-miterlimit` | `svg` |
783| `strokeOpacity` | `stroke-opacity` | `svg` |
784| `strokeWidth` | `stroke-width` | `svg` |
785| `style` | `style` | `svg`, `html` |
786| `summary` | `summary` | `html` |
787| `surfaceScale` | `surfaceScale` | `svg` |
788| `syncBehavior` | `syncBehavior` | `svg` |
789| `syncBehaviorDefault` | `syncBehaviorDefault` | `svg` |
790| `syncMaster` | `syncMaster` | `svg` |
791| `syncTolerance` | `syncTolerance` | `svg` |
792| `syncToleranceDefault` | `syncToleranceDefault` | `svg` |
793| `systemLanguage` | `systemLanguage` | `svg` |
794| `tabIndex` | `tabindex` | `svg`, `html` |
795| `tableValues` | `tableValues` | `svg` |
796| `target` | `target` | `svg`, `html` |
797| `targetX` | `targetX` | `svg` |
798| `targetY` | `targetY` | `svg` |
799| `text` | `text` | `html` |
800| `textAnchor` | `text-anchor` | `svg` |
801| `textDecoration` | `text-decoration` | `svg` |
802| `textLength` | `textLength` | `svg` |
803| `textRendering` | `text-rendering` | `svg` |
804| `timelineBegin` | `timelinebegin` | `svg` |
805| `title` | `title` | `svg`, `html` |
806| `to` | `to` | `svg` |
807| `topMargin` | `topmargin` | `html` |
808| `transform` | `transform` | `svg` |
809| `transformBehavior` | `transformBehavior` | `svg` |
810| `translate` | `translate` | `html` |
811| `type` | `type` | `svg`, `html` |
812| `typeMustMatch` | `typemustmatch` | `html` |
813| `typeOf` | `typeof` | `svg` |
814| `u1` | `u1` | `svg` |
815| `u2` | `u2` | `svg` |
816| `underlinePosition` | `underline-position` | `svg` |
817| `underlineThickness` | `underline-thickness` | `svg` |
818| `unicode` | `unicode` | `svg` |
819| `unicodeBidi` | `unicode-bidi` | `svg` |
820| `unicodeRange` | `unicode-range` | `svg` |
821| `unitsPerEm` | `units-per-em` | `svg` |
822| `unselectable` | `unselectable` | `html` |
823| `useMap` | `usemap` | `html` |
824| `vAlign` | `valign` | `html` |
825| `vAlphabetic` | `v-alphabetic` | `svg` |
826| `vHanging` | `v-hanging` | `svg` |
827| `vIdeographic` | `v-ideographic` | `svg` |
828| `vLink` | `vlink` | `html` |
829| `vMathematical` | `v-mathematical` | `svg` |
830| `vSpace` | `vspace` | `html` |
831| `value` | `value` | `html` |
832| `valueType` | `valuetype` | `html` |
833| `values` | `values` | `svg` |
834| `vectorEffect` | `vector-effect` | `svg` |
835| `version` | `version` | `svg`, `html` |
836| `vertAdvY` | `vert-adv-y` | `svg` |
837| `vertOriginX` | `vert-origin-x` | `svg` |
838| `vertOriginY` | `vert-origin-y` | `svg` |
839| `viewBox` | `viewBox` | `svg` |
840| `viewTarget` | `viewTarget` | `svg` |
841| `visibility` | `visibility` | `svg` |
842| `width` | `width` | `svg`, `html` |
843| `widths` | `widths` | `svg` |
844| `wordSpacing` | `word-spacing` | `svg` |
845| `wrap` | `wrap` | `html` |
846| `writingMode` | `writing-mode` | `svg` |
847| `x` | `x` | `svg` |
848| `x1` | `x1` | `svg` |
849| `x2` | `x2` | `svg` |
850| `xChannelSelector` | `xChannelSelector` | `svg` |
851| `xHeight` | `x-height` | `svg` |
852| `xLinkActuate` | `xlink:actuate` | `xlink` |
853| `xLinkArcRole` | `xlink:arcrole` | `xlink` |
854| `xLinkHref` | `xlink:href` | `xlink` |
855| `xLinkRole` | `xlink:role` | `xlink` |
856| `xLinkShow` | `xlink:show` | `xlink` |
857| `xLinkTitle` | `xlink:title` | `xlink` |
858| `xLinkType` | `xlink:type` | `xlink` |
859| `xmlBase` | `xml:base` | `xml` |
860| `xmlLang` | `xml:lang` | `xml` |
861| `xmlSpace` | `xml:space` | `xml` |
862| `xmlns` | `xmlns` | `xmlns` |
863| `xmlnsXLink` | `xmlns:xlink` | `xmlns` |
864| `y` | `y` | `svg` |
865| `y1` | `y1` | `svg` |
866| `y2` | `y2` | `svg` |
867| `yChannelSelector` | `yChannelSelector` | `svg` |
868| `z` | `z` | `svg` |
869| `zoomAndPan` | `zoomAndPan` | `svg` |
870
871<!--list end-->
872
873## Related
874
875* [`web-namespaces`][namespace]
876 — List of web namespaces
877* [`space-separated-tokens`](https://github.com/wooorm/space-separated-tokens)
878 — Parse/stringify space-separated tokens
879* [`comma-separated-tokens`](https://github.com/wooorm/comma-separated-tokens)
880 — Parse/stringify comma-separated tokens
881* [`html-tag-names`](https://github.com/wooorm/html-tag-names)
882 — List of HTML tags
883* [`mathml-tag-names`](https://github.com/wooorm/mathml-tag-names)
884 — List of MathML tags
885* [`svg-tag-names`](https://github.com/wooorm/svg-tag-names)
886 — List of SVG tags
887* [`html-void-elements`](https://github.com/wooorm/html-void-elements)
888 — List of void HTML tag-names
889* [`svg-element-attributes`](https://github.com/wooorm/svg-element-attributes)
890 — Map of SVG elements to allowed attributes
891* [`html-element-attributes`](https://github.com/wooorm/html-element-attributes)
892 — Map of HTML elements to allowed attributes
893* [`aria-attributes`](https://github.com/wooorm/aria-attributes)
894 — List of ARIA attributes
895
896## License
897
898[MIT][license] © [Titus Wormer][author]
899
900Derivative work based on [React][source] licensed under
901[BSD-3-Clause-Clear][source-license], © 2013-2015, Facebook, Inc.
902
903[build-badge]: https://img.shields.io/travis/wooorm/property-information.svg
904
905[build]: https://travis-ci.org/wooorm/property-information
906
907[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/property-information.svg
908
909[coverage]: https://codecov.io/github/wooorm/property-information
910
911[downloads-badge]: https://img.shields.io/npm/dm/property-information.svg
912
913[downloads]: https://www.npmjs.com/package/property-information
914
915[size-badge]: https://img.shields.io/bundlephobia/minzip/property-information.svg
916
917[size]: https://bundlephobia.com/result?p=property-information
918
919[npm]: https://docs.npmjs.com/cli/install
920
921[author]: https://wooorm.com
922
923[license]: license
924
925[source]: https://github.com/facebook/react/blob/f445dd9/src/renderers/dom/shared/HTMLDOMPropertyConfig.js
926
927[source-license]: https://github.com/facebook/react/blob/88cdc27/LICENSE
928
929[data]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
930
931[namespace]: https://github.com/wooorm/web-namespaces
932
933[info]: #info
934
935[schema]: #schema
936
937[normalize]: #propertyinformationnormalizename
938
939[react]: https://github.com/facebook/react
940
941[hast-to-react]: hast-to-react.json
942
943[hast]: https://github.com/syntax-tree/hast#propertyname
Note: See TracBrowser for help on using the repository browser.