Skip to content

docs: fix Doctype handler Internal parameter documentation#265

Merged
toddr merged 1 commit into
mainfrom
koan.toddr.bot/fix-doctype-pod
Apr 23, 2026
Merged

docs: fix Doctype handler Internal parameter documentation#265
toddr merged 1 commit into
mainfrom
koan.toddr.bot/fix-doctype-pod

Conversation

@toddr-bot
Copy link
Copy Markdown
Collaborator

What

Fix incorrect documentation of the Doctype handler's Internal parameter, plus two minor POD consistency issues.

Why

Parser.pm described Internal as "the internal subset, given as a string" with detailed content — but the XS code (doctypeStart at Expat.xs:842) actually pushes PL_sv_yes/PL_sv_no. It's a boolean indicating whether an internal subset exists, not its content. Expat.pm had the correct description all along.

How

  • Parser.pm: Replaced the incorrect string description with the correct boolean description (matching Expat.pm)
  • Parser.pm: Fixed DoctypeFin handler parameter from (Parser) to (Expat) — every other handler in Parser.pm uses (Expat)
  • Expat.pm: Added missing "true" in isname() method docs ("returns if" → "returns true if")
  • README.md: Regenerated from Parser.pm POD

Testing

make test passes — all existing tests pass. These are POD-only changes with no behavioral impact.

🤖 Generated with Claude Code

The Doctype handler documentation in Parser.pm incorrectly described
the Internal parameter as a string containing the internal subset.
In reality, the XS code (doctypeStart) passes PL_sv_yes/PL_sv_no —
a boolean indicating whether an internal subset exists. This matches
the correct documentation already in Expat.pm.

Also fix DoctypeFin handler parameter name from (Parser) to (Expat)
for consistency with all other handlers in Parser.pm, and add missing
"true" in Expat.pm isname() method documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.73%. Comparing base (45216a7) to head (699a411).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #265   +/-   ##
=======================================
  Coverage   75.73%   75.73%           
=======================================
  Files           1        1           
  Lines        1092     1092           
  Branches      342      342           
=======================================
  Hits          827      827           
  Misses         59       59           
  Partials      206      206           
Flag Coverage Δ
perl 75.73% <ø> (ø)
xs 75.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@toddr toddr marked this pull request as ready for review April 23, 2026 10:04
@toddr toddr merged commit 691456a into main Apr 23, 2026
36 checks passed
@toddr toddr deleted the koan.toddr.bot/fix-doctype-pod branch April 23, 2026 10:05
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