- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 15 Mar 2017 03:19:02 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 15 March 2017 10:19:36 UTC
```javascript const host = new URLHost(rawInput) host.toString() // probably ASCII, as per usual host.unicode() // ToUnicode? host.type // "ipv4", "ipv6", "domain" ``` Alternatively you could make ToUnicode an argument to `toString()` somehow, similar to https://tc39.github.io/ecma262/#sec-number.prototype.tostring. Not sure if that's a precedent to follow however. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/274#issuecomment-286699445
Received on Wednesday, 15 March 2017 10:19:36 UTC