jsdom / whatwg-url

An implementation of the WHATWG URL Standard in JavaScript
https://jsdom.github.io/whatwg-url/
MIT License
366 stars 92 forks source link

"host" component missing from Live URL Viewer #272

Open ukusormus opened 4 months ago

ukusormus commented 4 months ago

Is there any particular reason that host is missing from the listed components in Live URL Viewer?

I can see the host() getter present under lib/URL-impl.js.

It exists under the URL class section (https://url.spec.whatwg.org/#url-class) and browsers' URL API-s.

It is missing from under the URL record section (https://url.spec.whatwg.org/#url-representation) -- but so is origin (also a "multi-component"), which is present in the Live URL Viewer.

Cheers

domenic commented 4 months ago

No reason. A PR adding it is welcome.