# html-nest-rule

> nesting rule realization for HTML spec

Latest version **0.0.3** (published 2018-03-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-nest-rule
pnpm add html-nest-rule
yarn add html-nest-rule
bun add html-nest-rule
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-03-02 |
| First published | 2016-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 139.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | nighca@live.cn |
| Maintainers | ecomfe |
| Keywords | html, nest, nesting, rule |

## Links

- npm: https://www.npmjs.com/package/html-nest-rule
- Repository: https://github.com/ecomfe/html-nest-rule
- Homepage: https://github.com/ecomfe/html-nest-rule#readme
- Issues: https://github.com/ecomfe/html-nest-rule/issues
- npm.io page: https://npm.io/package/html-nest-rule

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-03-02
- 0.0.2 — 2016-04-22
- 0.0.1 — 2016-04-15

## README

html-nest-rule
========

[![Build Status](https://img.shields.io/travis/ecomfe/html-nest-rule.svg?style=flat)](http://travis-ci.org/ecomfe/html-nest-rule)
[![NPM version](https://img.shields.io/npm/v/html-nest-rule.svg?style=flat)](https://www.npmjs.com/package/html-nest-rule)
[![Coverage Status](https://img.shields.io/coveralls/ecomfe/html-nest-rule.svg?style=flat)](https://coveralls.io/r/ecomfe/html-nest-rule)
[![Dependencies](https://img.shields.io/david/ecomfe/html-nest-rule.svg?style=flat)](https://david-dm.org/ecomfe/html-nest-rule)
[![DevDependencies](https://img.shields.io/david/dev/ecomfe/html-nest-rule.svg?style=flat)](https://david-dm.org/ecomfe/html-nest-rule)


html-nest-rule is nesting rule realization for [HTML spec](https://www.w3.org/TR/html5/Overview.html).

### Install

``` shell
npm i html-nest-rule
```

### Usage

```javascript
var element = document.createElement('p');
var rule = require('html-nest-rule').from(element);

rule.getCategories(element);        // ['flow content', 'palpable content'], categories of given element
rule.validateContext(element);      // [], do context validate
rule.validateContent(element);      // [], do content validate
```

---
_Source: https://npm.io/package/html-nest-rule · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
