| title | Changelog |
|---|---|
| description | The release notes for HTMLHint, see what's changed with each new version. |
import { Badge } from '@astrojs/starlight/components'
- Node.js 20 or newer is now required #1832
- Add modern package entry points and bundled TypeScript declarations via
typesandexportsinpackage.json#1857 - Improve
alt-requireto ignore images hidden witharia-hidden#1851 - Improve
input-requires-labelto allow inputs nested inside labels #1852 - CLI now allows excess arguments for
htmlhint#1837 - Replace
chalkwith Node.jsnode:util.styleText#1834 - Upgrade SARIF output support by updating
node-sarif-builderto v4 #1819 - Refresh documentation and website content, including the GitHub organization repos page and CLI docs fixes #1823, #1824, #1828, #1858
- Refresh project tooling, linting, CI, and website dependencies for the beta release #1821, #1833, #1836, #1838, #1839, #1840, #1842, #1844, #1845, #1847, #1848, #1849, #1853, #1856
- Dependencies update #1817
- Revert breaking change (introduced in v1.9.0) of adding an
exportsfield topackage.json
- Add
exportsfield topackage.json
- Improve
attr-lowercaserule to handle SVG attributes
- Add support for disabling rules via HTML comments #1767
- Add 'allow-non-blocking' option to
head-script-disabledrule #1765
- Update Glob dependency to version 9
- New rule:
form-method-require#1670 - New rule:
link-rel-canonical-require#1671
- Improve
attr-value-no-duplicationlogic
- Improve
attr-value-no-duplicationlogic
- Improve SARIF report formatting
- Improve
attr-value-no-duplicationlogic
- New rule:
attr-value-no-duplication#1650 - New rule:
tag-no-obsolete#1660 - Improved SARIF formatter to output help text (useful for GitHub Code Scanning)
- Add
htmlhint --initcommand to create a.htmlhintrcfile #1630 - Add SARIF formatter #1627
- New rule:
frame-title-require#1629 - New rule:
meta-charset-require#1628 - Improve HTML report formatting (dark mode) #1621
- Special character escape in HTML reports #1626
- New rule:
button-type-require#1615 - New rule:
meta-description-require#1613 - New rule:
meta-viewport-require#1618 - Improved HTML Report formatting #1617
- New rule:
main-require#1608 - New rule:
h1-require#1605 - Sort
data-*attributes at end #1591 - Add
relto list of sorted attributes #1579 -
npx htmlhint -ldoesn't list rules alphabetically #1598 -
doctype-firstdoes not account for comments being permitted beforehand #1610
- Sort unknown attributes alphabetically #668
- display warning log message when it can not parse config #893
- Point
tag-pairerror message to correct line and column #1503 - Remove ampersand from
spec-char-escape#1504 - Typo in
idclassaddisableddefault export name #728 - Switch website to use Astro Starlight
- duplicate text #981
- Replace parse-glob #927
- Ignore hidden input without label, closes [#866](#866)
- Correct links to rule docs, closes [#867](#867)
- **attr-lowercase:** ignore camelCase SVG attributes
- Set minimum support to es6
- Upgrade to TypeScript 4
- IE11 and older browsers are no longer supported
- cleanup non-functional typos #727
- tagname-specialchars description #714
- htmlhint.ts: replace deprecated request module with what-wg fetch #670
- Unexpected behavior of the HTML lang require rule #655
- rules: add
html-lang-requirerule #632
- Link to configuration.md from options page #563
- windows path separator #443
- use chalk instead of colors #433
- add missing branches to action release #425
- add missing plugins for docusaurus #402
- correctly call hint queue drain #409
- duplicate ga #407
- ESLint fix
- fix url repo pkg #413
- GitHub token
- remove unused dependency esm #430
- attr-no-unnecessary-whitespace: fix when equals symbol in value #405
- remove unused dependency esm #430
- add missing branches to action release #425
- add missing plugins for docusaurus #402
- correctly call hint queue drain #409
- duplicate ga #407
- eslint fix
- fix url repo pkg #413
- attr-no-unnecessary-whitespace: fix when equals symbol in value #405
- GitHub token
- add prettier and eslint #388
- add semantic release test #399
- ignore
PULL_REQUEST_TEMPLATE.md - use yml in semantic.yml
- Add tags checking rule - allows specify rules for any tag and validate that #384
- added attr-no-unnecessary-whitespace rule #385
- new rule: input-requires-label - All inputs require a label #159
- new website for htmlhint.com #395
add:
- cli: support hint for url
- attr-lowercase: add test case
add:
- change cli parameter:
--pluginto--rulesdir - add formatter directory support
- add formatters: compact, markdown
- add cli parameter:
--nocolor, disable color in cli - space-tab-mixed-disabled plugin: add space length require
- add empty elements: track,command,source,keygen,wbr
- add hint stdin for cli
fix:
- report error evidence if tag attrs include
\r\n - space-tab-mixed-disabled issue #119
- attr name support all w3c defined characters
improve:
- Parse inline ruleset after default ruleset
add:
- attr-unsafe-chars(rule): show unsafe code in message
- support glob pattern for cli
- support format as custom: json, junit, checkstyle
- support plugin:
htmlhint --plugin ./plugins/ - add rule: inline-style-disabled
- add rule: inline-script-disabled
fix:
- title-require(rule): report error when
<html><title>test</title><head></head><body></body></html> - title-require(rule): report error when
<html><head><title></title></head><body></body></html>
add:
- add config loaded message to cli log
- support async for cli
fix:
- close issue: #79, fix exit with 0 when hint errors
- fix end event col
- attr-unsafe-chars(rule): exclude
\r\n
add:
- Search
.htmlhintrcin parent directory - Allow comments in json
- Support hint any file without
.htmlor.htmextension, just like:htmlhint test.xhtml - Support json raw format in cli
- tag-pair(rule): Show the line of the start tag
- space-tab-mixed-disabled(rule): Support space and tab mode, for check only space or tab
- Make cli logs more clear to people
- add rule: title-require,
<title>must be present in<head>tag.
fix:
- Fix issue: #77
<link rel=icon><link rel=icon> - Made the descriptions and error messages of rules more clear to people
- head-script-disabled(rule): No head not result error
fix:
- fix 'No such file' issue on mac
- head-script-disabled: not match template script
add:
- add rule: attr-no-duplication
- add rule: space-tab-mixed-disabled
- add rule: id-class-ad-disabled
- add rule: href-abs-or-rel
- add rule: attr-unsafe-chars
- add default rule: attr-no-duplication
- add inline ruleset support
- add test spec: Set false to rule
- add point: load default ruleset when use empty ruleset
- add rule: src-not-empty
fix:
- fix attr-value-double-quotes rule:
<img src=''>should result error
add:
- add ruleid to csslint message
fix:
- fix csslint rule: del undefined of raw
- fix parser for:
<div class=\"foo\"\"><a><span\">
add:
- add rule: csslint
- add rule: jshint
- add rule: id-unique
- add cli
add:
- add rule: attr-lowercase
- add rule: attr-value-double-quotes
- add rule: attr-value-not-empty
- add rule: doctype-first
- add rule: doctype-html5
- add rule: head-script-disabled
- add rule: id-class-value
- add rule: img-alt-require
- add rule: spec-char-escape
- add rule: style-disabled
- add rule: tagname-lowercase
- add rule: tag-pair
- add rule: tag-self-close