Repository navigation
Commit c48d587
Test constructor as a non-special URL scheme
Add parsing cases for the non-special `constructor` scheme with an opaque path, a hierarchical path without a host, and an opaque host with a port and an empty path.
This catches JavaScript implementations that accidentally inherit the `constructor` property when looking up special schemes in an object, as in jsdom/whatwg-url#342.
Co-Authored-By: codex <[email protected]>1 parent 73b3c13 commit c48d587
1 file changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9638 | 9638 | | |
9639 | 9639 | | |
9640 | 9640 | | |
| 9641 | + | |
| 9642 | + | |
| 9643 | + | |
| 9644 | + | |
| 9645 | + | |
| 9646 | + | |
| 9647 | + | |
| 9648 | + | |
| 9649 | + | |
| 9650 | + | |
| 9651 | + | |
| 9652 | + | |
| 9653 | + | |
| 9654 | + | |
| 9655 | + | |
| 9656 | + | |
| 9657 | + | |
| 9658 | + | |
| 9659 | + | |
| 9660 | + | |
| 9661 | + | |
| 9662 | + | |
| 9663 | + | |
| 9664 | + | |
| 9665 | + | |
| 9666 | + | |
| 9667 | + | |
| 9668 | + | |
| 9669 | + | |
| 9670 | + | |
| 9671 | + | |
| 9672 | + | |
| 9673 | + | |
| 9674 | + | |
| 9675 | + | |
| 9676 | + | |
| 9677 | + | |
| 9678 | + | |
| 9679 | + | |
| 9680 | + | |
| 9681 | + | |
| 9682 | + | |
| 9683 | + | |
| 9684 | + | |
| 9685 | + | |
9641 | 9686 | | |
9642 | 9687 | | |
9643 | 9688 | | |
| |||
0 commit comments