@arturdoruch/html

JavaScript HTML element helpers.

Usage no npm install needed!

<script type="module">
  import arturdoruchHtml from 'https://cdn.skypack.dev/@arturdoruch/html';
</script>

README

HTML

JavaScript HTML element helpers.

Install

yarn add @arturdoruch/html

Contents

HTMLElement

HTMLElement object wrapper. Provides common functions to manipulate HTML element.

import HtmlElement from '@arturdoruch/html/lib/element/HtmlElement.js';

Usage todo

HTML utils

import htmlUtils from '@arturdoruch/html/lib/html-utils.js';

Functions:

  • isTagSelfClosing
  • parseCssStyles

HTML element factory

import htmlElementFactory from '@arturdoruch/html/lib/element/html-element-factory.js';

Functions:

  • create