This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
# A host is a string [...] in the form of a domain [...] # A domain is an ordered list of one or more domain labels. Domain labels aren't defined, but let's suppose they are actually strings. So a host is a string in the form of an ordered list of strings. That doesn't make sense. :-) Various algorithms in the spec seem to switch between treating "host" as a string and as a list of strings.
https://github.com/whatwg/url/commit/232157a284157ca60d40dd391ef5ae88f79a9e9a I'm still a bit torn whether to define the components of a URL as byte sequences or strings. API-wise the latter is easier, though it seems they are really byte sequences, including domain labels. Though domain labels also have a (Unicode) string variant.
Marking FIXED as the issue raised here was resolved.