{"name":"html-element","version":"1.5.0","homepage":"https://github.com/1N50MN14/html-element","repository":{"type":"git","url":"git://github.com/1N50MN14/html-element.git"},"devDependencies":{"tap":"~0.4.0"},"author":{"name":"ins0mnia","email":"ayman.mackouly@gmail.com","url":"http://github.com/1N50MN14"},"license":"MIT","description":"A simple HTMLElement shim on the server.","gitHead":"a66ce0f12852e135f238ad797380c06ef2c7df95","main":"index.js","directories":{"test":"test"},"dependencies":{"class-list":"~0.1.1"},"scripts":{"test":"tap test/*.js"},"keywords":["html-element","HTMLElement","element","shim"],"bugs":{"url":"https://github.com/1N50MN14/html-element/issues"},"_id":"html-element@1.5.0","_shasum":"b690de3ad88f5c4f0d093970b75578d228cae342","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"ins0mnia","email":"ayman.mackouly@gmail.com"},"maintainers":[{"name":"ins0mnia","email":"ayman.mackouly@gmail.com"}],"dist":{"shasum":"b690de3ad88f5c4f0d093970b75578d228cae342","tarball":"http://registry-npm.ywwl.com/html-element/download/html-element-1.5.0.tgz","integrity":"sha512-QL5BB+vVPGIuEwAKD7ra2GIE0IpzTmZNZxW555i0ZCzuRoTujItlJdxSs5Gnpc0mej9AmscQy+pyB0y4nQfKAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTrE1t7Vv1Zyp997wWW+GhXre2Zd88HwBGDEfiMATKfwIhANk/XXF5M3tNG36TG31CODAJJQm7DXgU25pPxbU9Gjec"}],"size":5161,"noattachment":false,"key":"/html-element/-/html-element-1.5.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/html-element-1.5.0.tgz_1457365154764_0.22368485247716308"},"readme":"# html-element\n\nA simple HTMLElement shim on the server.\n\nThis is a partial implementation of HTMLElement, to get client-side templates (such as [hyperscript](https://github.com/dominictarr/hyperscript)) working in node!\n\nThe current implementation is fully compatible with [hyperscript](https://github.com/dominictarr/hyperscript).\n\n### Upgrading from v1.x\n\nAs of v2.0.0 (Aug 2016), `html-element` no longer affects the global namespace by default. If you currently rely on `require('html-element')` to create globals such as `document` and `Element`, you should instead `require('html-element/global-shim')` when upgrading to v2.\n\nFor non-global usage, you can import objects directly from the main package, e.g.:\n```javascript\nvar document = require('html-element').document;\n```\nor\n```javascript\nimport { Element } from 'html-element';\n```\n\n## Supported methods\n\n- createElement(nodeName)\n- createTextNode(value)\n- appendChild(node)\n- replaceChild(node)\n- removeChild(node)\n- insertBefore(new, existing)\n- toString()\n- setAttribute(name, value)\n- getAttribute(name)\n- setProperty(name, value)\n- getProperty(name)\n- innerHTML()\n- outerHTML()\n- textContent()\n- addEventListener(eventType, listenerFunc)\n- removeEventListener(eventType, listenerFunc)\n- dispatchEvent(event)\n\nSetters update existing objects, otherwise create anew;\n\n## Properties\n- innerHTML\n- outerHTML\n- textContent\n- attribute.value\n- attribute.name\n- everything else\n\n## TODO / Missing features\n- Your PR to make this a more accurate implementation\n\n\n## License\n\nMIT\n","publish_time":1457365158203,"_cnpm_publish_time":1457365158203,"dist-tags":{"latest":"2.3.1"}}