Package Exports
- property-information
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (property-information) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
property-information

Information for HTML properties.
Installation
npm:
npm install property-informationproperty-information is also available for AMD, CommonJS, and globals (uncompressed and compressed).
Usage
console.log(propertyInformation('class'));Yields:
{
"name": "class",
"propertyName": "className",
"mustUseAttribute": true,
"mustUseProperty": false,
"boolean": false,
"overloadedBoolean": false,
"numeric": false,
"positiveNumeric": false,
"commaSeparated": false,
"spaceSeparated": true
}API
propertyInformation(name)
Get information for a DOM property.
Parameters:
name(string) — Case-insensitive name.
Returns: Information? — Information, when available.
propertyInformation.all
Object mapping case-insensitive names to Information
objects. This gives raw access to the information returned by
propertyInformation(): do not change the
objects.
Information
Properties:
name(string) — Case-insensitive name;propertyName(string) — Case-sensitive IDL attribute (e.g., aclassattribute is added in HTML and aclassNameis added in Web IDL);mustUseAttribute(boolean) — WhethersetAttributemust be used when patching a DOM node;mustUseProperty(boolean) — Whethernode[propertyName]must be used when patching a DOM node;boolean(boolean) — Whether the value of the property isboolean;overloadedBoolean(boolean) — Whether the value of the property can beboolean;numeric(boolean) — Whether the value of the property isnumber;positiveNumeric(boolean) — Whether the value of the property isnumberand positive;spaceSeparated(boolean) — Whether the value of the property is a space-separated list;commaSeparated(boolean) — Whether the value of the property is a comma-separated list.
Note that some values can be both *Separated and a primitive, in that case
each of the tokens should be regarded as a primitive. For example, itemScope
is both spaceSeparated and boolean:
{
"name": "itemscope",
"propertyName": "itemScope",
"mustUseAttribute": true,
"mustUseProperty": false,
"boolean": true,
"overloadedBoolean": false,
"numeric": false,
"positiveNumeric": false,
"commaSeparated": false,
"spaceSeparated": true
}License
Derivative work based on React licensed under BSD-3-Clause-Clear, © 2013-2015, Facebook, Inc.