[whatwg/url] Define domain label (#435)

As identified in #434 we need to talk about domain labels from first principles somehow. There's various RFCs:

* https://tools.ietf.org/html/rfc1034#section-3.1 and https://tools.ietf.org/html/rfc8499, but these are problematic as they are byte-based.
* https://tools.ietf.org/html/rfc5890#section-2.3.2.1 is probably closest, but has some talk about validity that I'm not sure apply given we use different validation rules from IDNA2008...

Perhaps split domain on "." is best, since any relevant normalization will have already happened at that point (where we have determined it's a domain). And then reference some RFCs non-normatively.

See also #396.

-- 
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/435

Received on Wednesday, 27 March 2019 10:39:30 UTC