Commit fd03587
fix: implement Windows file path handling per WHATWG URL spec
Implements Windows drive letter detection as specified in whatwg/url#874.
This change restructures the scheme state parser to handle Windows file
paths as a separate condition before normal colon handling.
Key changes:
- Windows drive letter check moved to separate else-if block (spec lines 2251-2262)
- Original case of drive letter preserved from input
- Removed nested if and early return for cleaner flow
Test results:
- 5363/5367 tests passing
- All Windows path tests passing (C:\path, a:\file, etc.)
- 3 unrelated IDNA test failures remain
Spec reference: https://url.spec.whatwg.org/#scheme-state
Related PR: web-platform-tests/wpt#53459
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent f6b3fa1 commit fd03587
1 file changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
578 | 588 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | 589 | | |
591 | 590 | | |
592 | 591 | | |
| |||
0 commit comments