Re: [whatwg/url] Add Unicode ToASCII fallback for ASCII domains (PR #914)

Scripter17 left a comment (whatwg/url#914)

After further thought: I really like this.

I'm making a Rust crate for URLs with an emphasis on manipulating them according to the semantics they actually have. Relevantly there's a DomainHost type with methods like `set_(prefix|middle|suffix)(_segment|_segment_range)?` and a major pain point I've been working on the past week is keeping track of each label's Bidi compliance and blocking things like setting the middle of xn--mgbb to 2 (2.xn--mgbb).

It's been a real pain and I was just starting on actually hooking it up into the setters when I found this, and now I just... don't have to do that. All the code I wrote this past week is still useful for implementing ToUnicode but now the parts I've been dreading, the parts I was going to start working on *tonight*, can just be skipped. All I have to do is revert a few minor changes and tweak my domain encoder.

I maintain my condolences because this has got to be a really frustrating thing to have to further mangle the spec over but I want you to know that there's at least one person who genuinely benefits from this. You deserve to know your work is appreciated.

I assume this is basically guaranteed to be merged mostly as-is and I can just immediately pivot my code to using it?

I'm not concerned about being ahead of the spec since I have no users and am still in beta, so when this is merged isn't important to me.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/914#issuecomment-4713899735
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/914/c4713899735@github.com>

Received on Tuesday, 16 June 2026 01:04:13 UTC