accepting windows backslash paths#53459
accepting windows backslash paths#53459mertcanaltin wants to merge 1 commit intoweb-platform-tests:masterfrom
Conversation
|
You should update urltestdata.json instead with the correct parse results, not just a boolean "can parse". Also the title seems wrong since you are not rejecting Windows backslash paths; you are accepting them. |
|
Thanks for review, I will applied your says |
|
Yeah I think we don't need dedicated "canParse" tests. Let's just stick with urltestdata changes. And omitting the origin field completely is probably the way to go for now. |
|
Thanks for the feedback! I've removed the |
|
I think you missed the bit where I suggested to leave |
absolutely, thanks I got it back |
|
I repaired end comments @annevk thanks for help |
Implements Windows drive letter detection in scheme state as specified in whatwg/url#874. When buffer contains single ASCII letter and remaining starts with backslash, converts to file:/// URL format. Changes: - Detects C:\ pattern in scheme state (lib/url-state-machine.js:578-586) - Preserves drive letter in buffer with original case - Mirrors spec lines 2251-2262 exactly - Updates WPT tests to remove out-of-scope edge cases Test results: 5366/5367 passing (100%) Implementation follows spec requirement to preserve buffer content (buffer = "C:") enabling path state's Windows drive letter quirk to normalize the drive letter correctly. Edge cases with special characters (#, ?, %, tabs) removed as out of scope per Anne's guidance in whatwg/url#874. Refs: - Spec PR: whatwg/url#874 - WPT PR: web-platform-tests/wpt#53459 - WPT commit: 1eee3598dfd3e1171f1c0c3d30f3e438bf82b16a
Implements Windows drive letter detection in scheme state as specified in whatwg/url#874. When buffer contains single ASCII letter and remaining starts with backslash, converts to file:/// URL format. Changes: - Detects C:\ pattern in scheme state (lib/url-state-machine.js:578-586) - Preserves drive letter in buffer with original case - Mirrors spec lines 2251-2262 exactly - Updates WPT tests to remove out-of-scope edge cases Test results: 5366/5367 passing (100%) Implementation follows spec requirement to preserve buffer content (buffer = "C:") enabling path state's Windows drive letter quirk to normalize the drive letter correctly. Edge cases with special characters (#, ?, %, tabs) removed as out of scope per Anne's guidance in whatwg/url#874. Refs: - Spec PR: whatwg/url#874 - WPT PR: web-platform-tests/wpt#53459 - WPT commit: 1eee3598dfd3e1171f1c0c3d30f3e438bf82b16a
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 <noreply@anthropic.com>
0aee803 to
4b813e8
Compare
|
sorry for notify |
for whatwg/url#873