{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@types/parse5":"^6.0.3","eventemitter2":"^6.4.5","@hint/utils-debug":"^1.0.8","@hint/utils-types":"^1.1.6","css-select":"^4.2.1","parse5":"^6.0.1","parse5-htmlparser2-tree-adapter":"^6.0.1"},"description":"utils for DOM","devDependencies":{"@types/parse5-htmlparser2-tree-adapter":"^6.0.1","ava":"^4.0.1","axe-core":"^4.4.0","eslint":"^7.32.0","eslint-plugin-import":"^2.25.4","eslint-plugin-markdown":"^2.2.1","jsdom":"^19.0.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","typescript":"^4.5.5"},"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":"copyfiles \"./{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.10","types":"./dist/src/index.d.ts","gitHead":"259226d420ada93e86c1ee0e5876251967abcf04","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.1.10","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-BJZ8sl+Rm/PjTUAvkUjhA8yCISkCO5uEttoAgl2TVrOHVQ9Lf7Z+uG63wesHTUl7SgoZMjjGlAXLFh5sQxfA6w==","shasum":"0b8d68bfb431725d9fb364ea7579f0bdf6c2d5fc","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.1.10.tgz","fileCount":109,"unpackedSize":209710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKkZmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbYhAAl7nv26ObUSq50lJZjMFCx9gF7n9/sJ3KwSptWIWvymE9JVo9\r\nacckZkm1rWDHIIfXZAh1xoJYr4X7N2B8F66xuOBvmGITgBcJqpLrdZccdDgR\r\nTcU7J434L0tV9TezkEuw34dWdb22XwL9oV32C3X+DJhMcF2NjcpVgc9V9eHw\r\npOjXaSOaQsoZK9iPNrfRIzZe20WYK0bBvA5YaUxJkGp1Ecl1HMOBnbfIw2TF\r\n87PBKgzmHcQ58PQyEgCU6s3yiaKqnIeRCoENbrJUWmcmn3ONxbztZTV7sO5Y\r\n2jc7fcVgpgyHTkKYUgLPIAKC0C9QwMBtfQbMIl0c/S7Ig4TeVgxCc3UasbaV\r\ng98p4FtGsxZrXFgBcL5up0wdtqzG5MbpwxLAY2xLI6lPhWeHKUXQyUwfCiGR\r\nxBG6G2DtSDUWMWBGltDQb8CofdXy9UrQYJDkeMqfVxL+NWMqaQig11oIKkpO\r\nTlJYgBj9TlFN4egzIA8oOJ+D5apxoY5wj2E4Kj90norrB1XncyWiNc4U54fQ\r\nQ/nCKHAk4hghdTTrXJ11yrUp3hk8aBsmaXzgs4Raq0JSwGrID0SBmZPgHwhs\r\n/jVGGTcQBg3kXP6Lsx4XVx4vClXkFddd3Ga+G3QqMrPlgct76MUma2lpsyZP\r\nzpueCpVYkJMfsa+wBQ4dcNkVGmijwL15E1c=\r\n=gBuz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjazHMqZLyera5q7Ubzcx/BFepO2JTPBQy52Hh2zxkzQIhANcIOLyoySyc/CHl+bVJeMjpjwxHbXGLMynrYn2A+6qq"}],"size":58052,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.1.10.tgz"},"_npmUser":{"name":"oaflynn","email":"flynnolivia@microsoft.com"},"directories":{},"maintainers":[{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"},{"name":"johnatms","email":"John.Emau@microsoft.com"},{"name":"sarvaje","email":"jdgarcia@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.1.10_1646937702018_0.08902787361858477"},"_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":1646937702176,"_cnpm_publish_time":1646937702176,"dist-tags":{"latest":"2.2.4"}}