Skip to content

fix WPT failures: nodeName, PI validation, willValidate, maxLength#1621

Merged
karlseguin merged 1 commit intolightpanda-io:mainfrom
egrs:wpt-fixes-batch-2
Feb 21, 2026
Merged

fix WPT failures: nodeName, PI validation, willValidate, maxLength#1621
karlseguin merged 1 commit intolightpanda-io:mainfrom
egrs:wpt-fixes-batch-2

Conversation

@egrs
Copy link
Copy Markdown
Contributor

@egrs egrs commented Feb 21, 2026

Summary

  • Element.upperTagName: uppercase entire qualified name including prefix (x:bX:B)
  • Page.createProcessingInstruction: validate data for ?>, add proper XML Name production validator with full Unicode support (NameStartChar/NameChar per W3C spec)
  • Input.willValidate: implement constraint validation check (barred for hidden/button/reset, disabled, datalist ancestor)
  • Input.setMaxLength: throw IndexSizeError DOMException instead of custom error for negative values

WPT results

Test Before After
dom/nodes/Node-nodeName.html 5/6 6/6
dom/nodes/Document-createProcessingInstruction.html 10/12 12/12
html/semantics/forms/the-input-element/button.html 4/5 5/5
html/semantics/forms/the-input-element/maxlength.html 4/5 5/5
html/semantics/forms/the-input-element/input-willvalidate.html 0/1 1/1

5 file flips, +6 subtests.

Test plan

  • make test — 280/280 pass
  • WPT tests pass for all affected files
  • No regressions on Node-, Element- test suites

…maxLength

- uppercase entire qualified name in tagName (including prefix)
- validate PI data for "?>" and use proper XML Name production with Unicode
- implement willValidate on HTMLInputElement
- throw IndexSizeError DOMException for negative maxLength assignment

flips: Node-nodeName, Document-createProcessingInstruction, button,
maxlength, input-willvalidate (+6 subtests)
@egrs egrs force-pushed the wpt-fixes-batch-2 branch from 19ea489 to a90bcde Compare February 21, 2026 12:11
@egrs egrs marked this pull request as ready for review February 21, 2026 12:29
@egrs egrs changed the title fix WPT failures: nodeName, PI validation, willValidate, maxLength fix WPT: nodeName, PI validation, willValidate, maxLength, implementation identity, file input value Feb 21, 2026
@egrs egrs marked this pull request as draft February 21, 2026 13:44
@egrs egrs changed the title fix WPT: nodeName, PI validation, willValidate, maxLength, implementation identity, file input value fix WPT failures: nodeName, PI validation, willValidate, maxLength Feb 21, 2026
@egrs egrs marked this pull request as ready for review February 21, 2026 13:45
@egrs egrs force-pushed the wpt-fixes-batch-2 branch from 18151c3 to a90bcde Compare February 21, 2026 13:46
@karlseguin karlseguin merged commit 18e63df into lightpanda-io:main Feb 21, 2026
29 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants