{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m"},"dependencies":{"@types/parse5":"^5.0.3","eventemitter2":"^6.4.3","@hint/utils-debug":"^1.0.2","@hint/utils-types":"^1.1.0","css-select":"^2.1.0","parse5":"^6.0.1","parse5-htmlparser2-tree-adapter":"^6.0.0"},"description":"utils for DOM","devDependencies":{"@types/parse5-htmlparser2-tree-adapter":"^5.0.1","ava":"^3.10.1","axe-core":"^3.5.5","eslint":"^7.6.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.2","jsdom":"^16.2.2","npm-run-all":"^4.1.5","nyc":"^15.1.0","proxyquire":"^2.1.3","rimraf":"^3.0.2","typescript":"^3.9.7"},"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.3","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/utils-dom@2.1.3","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sqwsc51zwYSyt5f5K5lXc+x75P/f/la3ytTp46JUIXyn4rqresO3slm82VuoyjHjNP7dNZdvwrKcaRLkntjxyQ==","shasum":"37c02b01e80262687fc12dd1ed5761b5272c7d10","tarball":"http://registry-npm.ywwl.com/@hint/utils-dom/download/@hint/utils-dom-2.1.3.tgz","fileCount":107,"unpackedSize":829243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRDgjCRA9TVsSAnZWagAA9BoQAIUM7rtdKeqG5/jevs4Y\nGOC5IyNQ/Dj2DuVnQY8hvUbaZGKSP2cJMMfiya3Z6x12JCwLHtLjtT5ukGl0\nbS1jpU6WGXm4ijA9949Hm5AnzqXeMjGrItPBqjM50GCJv7X5/1eRXi0RJu6n\n3owmaVetICrKpoqfvpRE27y9/cALMq0o+zI5YyIiu0yuiZDnNa1cStLnyCDH\nNpIQTrIxOLbH2bGUZo76IjVJZTFjBaP2Y90ivUBjkWGLHvITaFoiLp5R+3f1\nxcIffA0IP02+V8W3VV7qN+JjNwHe2JPB0eXEOaQJXYJJx+E0i2E5Ty45xTVE\ny/ESqcZoF/O8nZsqVzYYOrWYR9pRGiSQS/59nkFmjeyZJbb96L++YQ38fNrT\nKqc2DSM50ZdquGIVN9RA6w5pJDEKgdHKkztMYiuElF4kSWY/23uKoNmiyKyk\nORyIfStiGZZZAT4uMhrNYS2lVWNPd4MJmN/by8/f/5ZmHsC9y58sHil9/Fmk\nRIVyWBKW/OsR5cjs+OMsc+q3nkeWTc9oDR7LgKARZPXwYp8HSS5sh4kUSdF3\namxqgnf2Q05zoLNN7nwRt5oOfh10eFmbwzCS4TL+dKLJfSg2lbILziszuq+n\nyFaGhpA+dPOODxIbvLqRxCCdtt8xVk8ukd/Cv+QyS6UgIISKo2ZlT1ZH5eEk\nC/7R\r\n=dY20\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGAw4bVL8aGD6FLQCJNjc3VeXcrzqMbM3CBrH9lB2nN/AiEAvbo0cjEVmwEGJzlwu1u4Bf6lR2kXuvjPtLdhN4K745k="}],"size":63671,"noattachment":false,"key":"/@hint/utils-dom/-/@hint/utils-dom-2.1.3.tgz"},"maintainers":[{"email":"antross@gmail.com","name":"antross"},{"email":"John.Emau@microsoft.com","name":"johnatms"},{"email":"amolleda@gmail.com","name":"molant"},{"email":"jdgarcia@outlook.com","name":"sarvaje"}],"_npmUser":{"name":"sarvaje","email":"jdgarcia@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-dom_2.1.3_1598306338599_0.19484750393390615"},"_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":1598306338749,"_cnpm_publish_time":1598306338749,"dist-tags":{"latest":"2.2.4"}}