Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

html-all-known-attributes

codsen387MIT6.0.9TypeScript support: included

All HTML attributes known to the Humanity

email, entities, friendly, html, marketing, named, not, template

readme

html-all-known-attributes

All HTML attributes known to the Humanity

page on codsen.com page on npm page on github Downloads per month changelog MIT Licence

Install

This package is pure ESM. If you're not ready yet, install an older version of this program, 4.1.0 (npm i html-all-known-attributes@4.1.0).

npm i html-all-known-attributes

Quick Take

import { strict as assert } from "assert";

import { allHtmlAttribs } from "html-all-known-attributes";

assert.equal(allHtmlAttribs.has("href"), true);

assert.equal(allHtmlAttribs.size, 702);

// iterating:
const gathered = [];
for (let x of allHtmlAttribs) {
  // push first three
  if (gathered.length < 3) {
    gathered.push(x);
  }
}
assert.deepEqual(gathered, ["abbr", "accept", "accept-charset"]);

Documentation

Please visit codsen.com for a full description of the API.

Contributing

To report bugs or request features or assistance, raise an issue on GitHub.

Licence

MIT License.

Copyright © 2010-2025 Roy Revelt and other contributors.

ok codsen star

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

6.0.0 (2022-12-01)

BREAKING CHANGES

  • Minimum supported Node version is v14.18; we're dropping v12 support

5.1.0 (2022-08-12)

Features

5.0.0 (2021-09-09)

Features

BREAKING CHANGES

  • programs now are in ES Modules and won't work with Common JS require()

4.1.0 (2021-05-24)

Features

  • config file based major bump blacklisting (e15f9bb)

4.0.15 (2021-04-11)

Reverts

  • Revert "chore: setup refresh" (23cf206)

4.0.1 (2021-01-28)

Fixed

  • add testStats to npmignore (f3c84e9)

4.0.0 (2021-01-23)

Features

  • rewrite in TS (7130bce), start using named exports

BREAKING CHANGES

  • previously you'd consume like: import allHtmlAttribs from ... — now: import { allHtmlAttribs } from ...

3.0.0 (2020-11-28)

Accidental version bump during migration to SourceHut. Sorry about that.

2.0.0 (2020-04-13)

Features

  • export Set instead of Array and remove JSON source file (d09e5b7)

BREAKING CHANGES

  • For perf reasons, export Set instead of Array and remove JSON source file

1.3.0 (2020-01-05)

Features

1.2.0 (2020-01-01)

Features

  • add two html attributes used in edialog tracking links in emails (4644703)

1.1.0 (2019-12-27)

Features

1.0.0 (2019-12-25)

  • First public release