Skip to content

enh(dns): highlight CAA property tags - #4476

Merged
joshgoebel merged 1 commit into
highlightjs:mainfrom
oiahoon:enh/dns-caa-property-tags
Aug 9, 2026
Merged

enh(dns): highlight CAA property tags#4476
joshgoebel merged 1 commit into
highlightjs:mainfrom
oiahoon:enh/dns-caa-property-tags

Conversation

@oiahoon

@oiahoon oiahoon commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Highlight registered non-reserved CAA property tags with the attr scope.
  • Restrict matching to the CAA <flag> <tag> sequence on one record so the same words remain plain elsewhere.
  • Add DNS markup coverage for registered tags, case-insensitive input, unknown tags, missing flags, and cross-record boundaries.

Resolves #4475.

Verification

  • npm run build
  • ONLY_LANGUAGES=dns npm run test-markup — 4 passing
  • npm test — 1,609 passing, 3 pending
  • npm run lint-languages
  • npm run lint — zero errors; one existing ignored-vendor warning
  • git diff --check

Checklist

  • Added markup tests
  • Updated the changelog at CHANGES.md

@oiahoon
oiahoon force-pushed the enh/dns-caa-property-tags branch from af92e07 to 99e6d0a Compare August 9, 2026 09:27
@joshgoebel
joshgoebel merged commit b4169d9 into highlightjs:main Aug 9, 2026
19 checks passed
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +154 B

View Changes
file base pr diff
es/core.min.js 8.22 KB 8.22 KB +2 B
es/highlight.min.js 8.22 KB 8.22 KB +2 B
es/languages/dns.min.js 804 B 877 B +73 B
highlight.min.js 8.26 KB 8.26 KB +2 B
languages/dns.min.js 807 B 882 B +75 B

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.

(dns) Highlight CAA property tags (issue, issuewild, iodef, …)

2 participants