Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Smarter autofix for rules which accommodates fortag-self-close rule.#340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
coliff merged 1 commit intomainfromdev/coliff/improve-autofix-void-tag
Nov 28, 2025

Conversation

@coliff
Copy link
Member

This pull request introduces smarter autofix behavior for HTMLHint rules, specifically making autofixes aware of thetag-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 thetag-self-close rule, generating self-closing tags if enabled. (htmlhint-server/src/server.ts)[1][2][3]
  • AddedisHtmlHintRuleEnabled andisRuleEnabledForDocument helpers to robustly determine if a rule (liketag-self-close) is enabled for a given document. (htmlhint-server/src/server.ts)

Code maintenance

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

Version and documentation updates

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

gemini-code-assist[bot]

This comment was marked as resolved.

@coliffcoliff requested a review fromCopilotNovember 28, 2025 07:16
@coliffcoliff merged commit907b854 intomainNov 28, 2025
19 checks passed
@coliffcoliff deleted the dev/coliff/improve-autofix-void-tag branchNovember 28, 2025 07:21
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotAwaiting requested review from Copilot

1 more reviewer

@gemini-code-assistgemini-code-assist[bot]gemini-code-assist[bot] left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@coliff

[8]ページ先頭

©2009-2025 Movatter.jp