{"_id":"@arve.knudsen/html-element","_rev":"2-8a0a78f1b584cd7f19d420a2e604bbc6","name":"@arve.knudsen/html-element","dist-tags":{"latest":"2.3.0"},"versions":{"2.3.0":{"name":"@arve.knudsen/html-element","version":"2.3.0","homepage":"https://github.com/aknuds1/html-element","keywords":["html-element","HTMLElement","element","shim"],"repository":{"type":"git","url":"git://github.com/aknuds1/html-element.git"},"author":{"name":"Arve Knudsen","email":"arve.knudsen@gmail.com","url":"http://github.com/aknuds1"},"license":"MIT","description":"A simple HTMLElement shim on the server.","gitHead":"a66ce0f12852e135f238ad797380c06ef2c7df95","main":"index.js","scripts":{"test":"tap test/*.js"},"directories":{"test":"test"},"dependencies":{"class-list":"~0.1.1"},"devDependencies":{"tap":"^6.3.0"},"engines":{"node":">=4.2"},"bugs":{"url":"https://github.com/aknuds1/html-element/issues"},"_id":"@arve.knudsen/html-element@2.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"},"dist":{"integrity":"sha512-2q5dKkhx2Z4tIIsaLxfJaXeOgolFscwF0OS852bYyYY1hib6jsMsUyQx/aAnu050md7ZYl/kceOyB4oFW5bUmA==","shasum":"a97bf04b58e8451951c3db205e1d5e101a713e2d","tarball":"https://registry.npmjs.org/@arve.knudsen/html-element/-/html-element-2.3.0.tgz","fileCount":8,"unpackedSize":30284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCAn4EgFBQACb1TlzWW3ydw137wXFJqmDPClKRD0igXAiEAt77rpUgWFHILBcZKxfY3h1qXwBro1lfRF/mgXYSDNY8="}]},"maintainers":[{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element_2.3.0_1519290542887_0.978228702954514"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-22T09:09:02.831Z","2.3.0":"2018-02-22T09:09:02.962Z","modified":"2022-04-04T15:41:14.737Z"},"maintainers":[{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"}],"description":"A simple HTMLElement shim on the server.","homepage":"https://github.com/aknuds1/html-element","keywords":["html-element","HTMLElement","element","shim"],"repository":{"type":"git","url":"git://github.com/aknuds1/html-element.git"},"author":{"name":"Arve Knudsen","email":"arve.knudsen@gmail.com","url":"http://github.com/aknuds1"},"bugs":{"url":"https://github.com/aknuds1/html-element/issues"},"license":"MIT","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\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","readmeFilename":"README.md"}