@mewjs/html-nest-rule
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

html

html-nest-rule is nesting rule realization for HTML spec.

Install

npm i @mewjs/html-nest-rule

Usage

import nest from '@mewjs/html-nest-rule';

const element = document.createElement('p');
const rule = nest.from(element);

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

Readme

Keywords

Package Sidebar

Install

npm i @mewjs/html-nest-rule

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

216 kB

Total Files

341

Last publish

Collaborators

  • gdjinbo