{"id":19560631,"url":"https://github.com/zoubin/dom-contains","last_synced_at":"2026-05-15T06:33:40.946Z","repository":{"id":57214632,"uuid":"41899819","full_name":"zoubin/dom-contains","owner":"zoubin","description":"Determines whether or not one HTMLElement is or contains another HTMLElement.","archived":false,"fork":false,"pushed_at":"2015-09-04T06:01:13.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T02:06:04.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoubin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-04T05:44:13.000Z","updated_at":"2015-09-04T05:55:39.000Z","dependencies_parsed_at":"2022-08-26T13:41:22.173Z","dependency_job_id":null,"html_url":"https://github.com/zoubin/dom-contains","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fdom-contains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fdom-contains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fdom-contains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fdom-contains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoubin","download_url":"https://codeload.github.com/zoubin/dom-contains/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240822615,"owners_count":19863302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T05:08:19.513Z","updated_at":"2026-05-15T06:33:40.909Z","avatar_url":"https://github.com/zoubin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dom-contains\nDetermines whether or not one HTMLElement is or contains another HTMLElement.\n\nThis is a commonjs clone for [Y.DOM.contains](http://yuilibrary.com/yui/docs/api/classes/DOM.html#method_contains).\n\n```javascript\nvar contains = require('dom-contains');\n```\n\n## contains(element, needle)\n\nReturn a boolean.\n\nWhether or not the `element` is or contains the `needle`.\n\n### element\n\nType: `HTMLElement`\n\nThe containing html element.\n\n### needle\n\nType: `HTMLElement`\n\nThe html element that may be contained.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fdom-contains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoubin%2Fdom-contains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fdom-contains/lists"}