3 ms·
The browsers are implementing the WhatWG URL spec, not the RFC, and it mentions \ is valid for "special" URLs (scheme is http/https, ftp, file, ws/wss): https:
by rndgermandude 7y ago
The browsers are implementing the WhatWG URL spec, not the RFC, and it mentions \ is valid for "special" URLs (scheme is http/https, ftp, file, ws/wss):
https://url.spec.whatwg.org/#hostname-state https://url.spec.whatwg.org/#hostname-state
- robocat 7y agoThere’s some comedy in that URL standard: Calculating file origin: "Unfortunate as it is, this is left as an exercise to the reader.” 3.7. Host equivalence: “To determine whether a host A equals B, return true if A is B, and false otherwise.” “The application/x-www-form-urlencoded format is in many ways an aberrant monstrosity”