Skip to content

Commit

Permalink
Remove URL.domainToASCII and domainToUnicode
Browse files Browse the repository at this point in the history
They are not implemented and implementers didn’t seem super interested.
Perhaps they can be revived in spirit through a new API focused on
displaying URLs at some point.

Fixes #63.
  • Loading branch information
annevk committed Oct 19, 2016
1 parent a0fe4f3 commit 2bd0f59
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 87 deletions.
29 changes: 0 additions & 29 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2378,9 +2378,6 @@ result of <a lt='urlencoded parser'><code>application/x-www-form-urlencoded</cod
[Constructor(USVString url, optional USVString base),
Exposed=(Window,Worker)]
interface URL {
static USVString domainToASCII(USVString domain);
static USVString domainToUnicode(USVString domain);

stringifier attribute USVString href;
readonly attribute USVString origin;
attribute USVString protocol;
Expand Down Expand Up @@ -2477,32 +2474,6 @@ url.href // "https://url.spec.whatwg.org/%F0%9F%8D%A3%F0%9F%8D%BA"</pre>
</div>


<h3 id=url-statics>{{URL}} statics</h3>

<p>The <dfn method for=URL><code>domainToASCII(<var>domain</var>)</code></dfn> static
method, when invoked, must run these steps:

<ol>
<li><p>Let <var>asciiDomain</var> be the result of
<a lt='host parser'>host parsing</a> <var>domain</var>.

<li><p>Return the empty string if <var>asciiDomain</var> is not a <a for=host>domain</a>,
and <var>asciiDomain</var> otherwise.
</ol>

<p>The <dfn method for=URL><code>domainToUnicode(<var>domain</var>)</code></dfn> static
method, when invoked, must run these steps:

<ol>
<li><p>Let <var>unicodeDomain</var> be the result of
<a lt='host parser'>host parsing</a> <var>domain</var> with the
<var>Unicode flag</var> set.

<li><p>Return the empty string if <var>unicodeDomain</var> is not a
<a for=host>domain</a>, and <var>unicodeDomain</var> otherwise.
</ol>


<h3 id=urlutils-members>{{URL}} members</h3>

<p>The <dfn attribute for=URL><code>href</code></dfn> attribute's getter must return the
Expand Down
Loading

0 comments on commit 2bd0f59

Please sign in to comment.