Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
html-validate
Advanced tools
Offline HTML5 validator. Validates either a full document or a smaller (incomplete) template, e.g. from an AngularJS or Vue.js component.
npm install -g html-validate
html-validate [OPTIONS] [FILENAME..] [DIR..]
Create .htmlvalidate.json
:
{
"extends": [
"html-validate:recommended"
],
"rules": {
"close-order": "error",
"void": ["warn", {"style": "omit"}]
}
}
<p>
<button>Click me!</button>
<div id="show-me">
Lorem ipsum
</div>
</p>
1:1 error Element <p> is implicitly closed by adjacent <div> no-implicit-close
2:2 error Button is missing type attribute button-type
6:4 error Unexpected close-tag, expected opening tag close-order
The library comes in four flavours:
dist/cjs/index.js
)dist/cjs/browser.js
)dist/es/index.js
)dist/es/browser.js
)The browser bundle contains a slimmed version without CLI and NodeJS dependencies.
/* automatically determine build based on `browser` export condition */
import { ... } from "html-validate";
/* explicitly use nodejs bundle */
import { ... } from "html-validate/node";
/* explicitly use browser bundle */
import { ... } from "html-validate/browser";
See running in browser for details about getting HTML-Validate running in a browser environment.
Testing is done using jest.
npm test
or call jest
directly.
Some tests are autogenerated from documentation examples, use npm run docs
to build those before running.
Linting is done using ESLint.
npm run eslint
or call eslint
directly.
npm run build
To build documentation use:
npm run docs
The documentation can be served locally using:
npm start
8.9.0 (2024-01-08)
focusable
to mark elements as focusable (c59c8b2)hidden-focusable
(243e7fb)unique-landmark
(187be1e)listeners
property from public API (303e5d5)role="presentation"
no longer counts decendants as missing from a11y tree (cc72da1)role="none"
as a synonym for role="presentation"
(b1d7b50)role="presentation"
(017308f)require-sri
(ffc3695)wcag/h30
no longer requires text on <a hidden>
(a20cc84)wcag/h30
no longer requires text on links with display: none
or visibility: hidden
(36ff07e)wcag/h32
handles <button>
without explicit type
(84c6a6e)FAQs
Offline html5 validator
The npm package html-validate receives a total of 59,486 weekly downloads. As such, html-validate popularity was classified as popular.
We found that html-validate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.