{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@types/parse5":"^5.0.2","eventemitter2":"^6.0.0","@hint/utils-debug":"^1.0.1","@hint/utils-types":"^1.0.1","css-select":"^2.1.0","parse5":"^5.1.1","parse5-htmlparser2-tree-adapter":"^5.1.1"},"description":"utils for DOM","devDependencies":{"@types/parse5-htmlparser2-tree-adapter":"^5.0.1","ava":"^3.5.2","axe-core":"^3.5.2","eslint":"^6.8.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.2","jsdom":"^16.2.0","npm-run-all":"^4.1.5","nyc":"^15.0.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","typescript":"^3.8.3"},"homepage":"https://webhint.io/","keywords":["hint","hint-utils-dom","dom","utils","webhint"],"license":"Apache-2.0","main":"./dist/src/index.js","name":"@hint/utils-dom","repository":{"directory":"packages/utils-dom","type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm-run-all build:*","build-release":"npm run clean && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext .js,.md,.ts --ignore-path ../../.eslintignore","lint:dependencies":"node ../../scripts/lint-dependencies.js","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run lint && npm run build-release","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:ts":"npm run build:ts -- --watch"},"version":"2.1.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-b1QfTX1ac+gLMJPoYCK/4zSWFkGNjzM5OyCsvh47D2FVP+GFSXHy2uzYb0EG7S7PNEIfo2CoOOCJoMgGGzSRtA==","shasum":"a31d9b29b47d95b55305e2476bf50aabda3a3ff4","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.1.0.tgz","fileCount":104,"unpackedSize":467782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel17QCRA9TVsSAnZWagAATNsP/18YVm46b5wQtLHKOzCk\ne9qjuG4YkJuBsIT59YUl6xVutXa4le0K4fxYHiMytoEQrERQD8A/+knoYi6n\nrQkljPXYbwiVhUYTH2Fm65qCz7PBAMawIU/KhVRdiD8MRP6IqWWbR+1vOkZa\n+OEOW1wJVGhlPoVwVyLKfqvTI8HkctePREt7NJCHhH79K7GD/frEIuVsNX2G\nyiha2OLDxogyzYVERVWaUnbzAtyaRY5cSFKTlt1RhYk85ZHWJFbr4RxjVx/M\nEPmrTSTPy+kAQYg0SPdzSPJZZyNLTopgK1g6WuBuPxHWI7Tf3aNALalWjhcS\nabiwTPfrxyr7rrTrdafjpg0OreC8T54/6bOzWNk/Mig19V4AUJrh1tm11+Ks\nu+0A23LzDmnQOjngb/El9pweTa+SHfourJTmf+1NetMFrgZHMuZv0EeyQj6T\n0caawxlRUgDF0AqOV9mu2jUrkt2PZe4nh+ye6I9QdqNxMFCPqZTY4wKwyJaB\n3vGxe1htvzPFI1Z/83ZHkIZba/8FRdLXo3tyNz4rY/8ebGH72bk5woJgDQsQ\nlB2hpbmMYH5/dg9GlSRrFho4aUSmGjsZbsiT5vS+Ev/OYEIGhP8MbNm7zDBG\nmsaTuoxtBEjkE7hJWtj6bEKb1YgKNDIH6N5kZ258CnPAdBbv+qud456fnDTq\nHZA9\r\n=wU5C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+dLVOOnEd9wzJjCmPL1xfPH6zCArzgaymbIfhJZQyQwIgIQkeiiyUf5UnXC0dc8Ehsogv0w3OJKuAv9+zbLZ1/X8="}],"size":55782,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.1.0.tgz"},"maintainers":[{"name":"antross","email":"antross@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"_npmUser":{"name":"antross","email":"antross@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.1.0_1586978512099_0.5193590318745847"},"_hasShrinkwrap":false,"readme":"# DOM utils (`@hint/utils-dom`)\n\nSet of helpers to process DOM. Supports parsing HTML into a light-weight\nimplementation of a subset of DOM standards APIs.\n\n## Installation\n\nThis package is installed automatically when adding webhint to your project\nso running the following is enough:\n\n```bash\nnpm install hint --save-dev\n```\n\n## Utils\n\n* `createHelpers`: Inject and invoke within the context of a page to generate\n  global `webhint` helpers for creating DOM snapshots and resolving unique\n  IDs to `Node`s.\n* `createHTMLDocument`: Create an HTMLDocument object from an string.\n* `findOriginalElement`: Perform a best-effort search to find an element in\nthe provided document which is likely the original source for the provided\nelement. Used to resolve element locations to the original HTML when possible.\n* `getElementByUrl`: Get an HTMLElement given a URL.\n* `getHTMLCodeSnippet`: Generate a Snippet code for a HTMLElement.\n* `populateGlobals`: Inject DOM APIs into the provided global context.\n* `traverse`: Traverse an HTMLDocument.\n* `restoreReferences`: Rebuild parent and sibling references in a DOM snapshot.\n","publish_time":1586978512294,"_cnpm_publish_time":1586978512294,"dist-tags":{"latest":"2.2.4"}}