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-informationUsage
var info = require('property-information');
console.log(info('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 by (case-insensitive) name.
Returns an Information object, if 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
Object:
name(string) — Case-insensitive namepropertyName(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 nodemustUseProperty(boolean) — Whethernode[propertyName]must be used when patching a DOM nodeboolean(boolean) — Whether the value of the property isbooleanoverloadedBoolean(boolean) — Whether the value of the property can bebooleannumeric(boolean) — Whether the value of the property isnumberpositiveNumeric(boolean) — Whether the value of the property isnumberand positivespaceSeparated(boolean) — Whether the value of the property is a space-separated listcommaSeparated(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.