Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
html-validate
Advanced tools
Offline HTML5 validator. Validates either a full document or a smaller (incomplete) template, e.g. from an AngularJS or React component.
npm install -g html-validate
html-validate FILENAME..
Create .htmlvalidate.json
:
{
"extends": [
"htmlvalidate: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
Testing is done using jest.
npm test
or call jest
directly.
Some tests are autogenerated from documentation examples, use grunt docs
to
build those before running.
Linting is done using eslint.
npm run lint
or call eslint
directly.
grunt build
grunt docs
0.13.0 (2018-10-21)
deprecated
supports adding a message for custom elements.element-permitted-order
now reports the error where the malplaced element is
instead of the parent element (which holds the restriction). Fixes #10.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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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.