Skip to content

Conversation

@coliff
Copy link
Member

@coliff coliff commented Nov 28, 2025

This pull request introduces smarter autofix behavior for HTMLHint rules, specifically making autofixes aware of the tag-self-close rule. This ensures that generated <meta> tags will be self-closed if the rule is enabled, improving standards compliance and consistency with user configuration. The update also includes a new utility for determining if a rule is enabled for a given document, minor code cleanups, and version/documentation updates.

Autofix improvements

  • Autofix logic for inserting <meta> tags (charset, viewport, description) now respects the tag-self-close rule, generating self-closing tags if enabled. (htmlhint-server/src/server.ts) [1] [2] [3]
  • Added isHtmlHintRuleEnabled and isRuleEnabledForDocument helpers to robustly determine if a rule (like tag-self-close) is enabled for a given document. (htmlhint-server/src/server.ts)

Code maintenance

  • Minor formatting and code cleanup in the createAttrValueNoDuplicationFix function. (htmlhint-server/src/server.ts) [1] [2] [3]

Version and documentation updates

  • Bumped extension version to 1.15.0 and documented new autofix behavior in CHANGELOG.md. (htmlhint/package.json, htmlhint/package-lock.json, htmlhint/CHANGELOG.md) [1] [2] [3]
  • Updated project homepage and development dependency (prettier) version in package.json. (package.json) [1] [2]

gemini-code-assist[bot]

This comment was marked as resolved.

@coliff coliff requested a review from Copilot November 28, 2025 07:16
Copilot finished reviewing on behalf of coliff November 28, 2025 07:17
@coliff coliff merged commit 907b854 into main Nov 28, 2025
19 checks passed
@coliff coliff deleted the dev/coliff/improve-autofix-void-tag branch November 28, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants