Re: [whatwg/url] Restructure URL rendering section and add additional guidance (#434)

estark37 commented on this pull request.



>  
- <li><p>Other parts of the <a for=/>URL</a> should have their sequences of
- <a>percent-encoded bytes</a> replaced with code points resulting from
- <a>percent decoding</a> those sequences converted to bytes, unless that renders those
- sequences invisible.
+ <li><p>A URL can be rendered without its <a for=url>scheme</a> if the display surface only ever
+ permits a single scheme (such as a browser feature that omits <code>https://</code> because it is
+ only enabled for secure origins). Otherwise, the scheme may be replaced or supplemented with a
+ human-readable string (e.g., "Not secure") and/or a security indicator icon.
+
+ <li><p>A leading <code>www</code> domain label can be omitted to simplify the host, except when it
+ is part of the <a for=host>registrable domain</a>.

Ah interesting, I thought they were but it looks like it's more complicated than that... they at least omit `www` (see screenshot on `www.google.com`).

![image](https://user-images.githubusercontent.com/602511/54767377-4418ff80-4bba-11e9-8739-398c7ff50977.png)
![image](https://user-images.githubusercontent.com/602511/54767393-4a0ee080-4bba-11e9-9181-a657ec9c3ce5.png)

Maybe @johnwilander knows the specifics.

-- 
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/pull/434#discussion_r267841691

Received on Thursday, 21 March 2019 16:20:25 UTC