{"id":29926638,"url":"https://github.com/ecomfe/html-nest-rule","last_synced_at":"2025-08-02T12:42:59.894Z","repository":{"id":57267508,"uuid":"41988662","full_name":"ecomfe/html-nest-rule","owner":"ecomfe","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-02T06:00:39.000Z","size":83,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-06-30T21:47:58.311Z","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/ecomfe.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-06T05:38:31.000Z","updated_at":"2022-03-10T13:53:14.000Z","dependencies_parsed_at":"2022-09-02T05:40:57.803Z","dependency_job_id":null,"html_url":"https://github.com/ecomfe/html-nest-rule","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ecomfe/html-nest-rule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fhtml-nest-rule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fhtml-nest-rule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fhtml-nest-rule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fhtml-nest-rule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecomfe","download_url":"https://codeload.github.com/ecomfe/html-nest-rule/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecomfe%2Fhtml-nest-rule/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268392180,"owners_count":24243297,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-02T12:42:22.251Z","updated_at":"2025-08-02T12:42:59.877Z","avatar_url":"https://github.com/ecomfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"html-nest-rule\n========\n\n[![Build Status](https://img.shields.io/travis/ecomfe/html-nest-rule.svg?style=flat)](http://travis-ci.org/ecomfe/html-nest-rule)\n[![NPM version](https://img.shields.io/npm/v/html-nest-rule.svg?style=flat)](https://www.npmjs.com/package/html-nest-rule)\n[![Coverage Status](https://img.shields.io/coveralls/ecomfe/html-nest-rule.svg?style=flat)](https://coveralls.io/r/ecomfe/html-nest-rule)\n[![Dependencies](https://img.shields.io/david/ecomfe/html-nest-rule.svg?style=flat)](https://david-dm.org/ecomfe/html-nest-rule)\n[![DevDependencies](https://img.shields.io/david/dev/ecomfe/html-nest-rule.svg?style=flat)](https://david-dm.org/ecomfe/html-nest-rule)\n\n\nhtml-nest-rule is nesting rule realization for [HTML spec](https://www.w3.org/TR/html5/Overview.html).\n\n### Install\n\n``` shell\nnpm i html-nest-rule\n```\n\n### Usage\n\n```javascript\nvar element = document.createElement('p');\nvar rule = require('html-nest-rule').from(element);\n\nrule.getCategories(element);        // ['flow content', 'palpable content'], categories of given element\nrule.validateContext(element);      // [], do context validate\nrule.validateContent(element);      // [], do content validate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fhtml-nest-rule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecomfe%2Fhtml-nest-rule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecomfe%2Fhtml-nest-rule/lists"}