Skip to content

Commit 2bd0f59

Browse files
committed
Remove URL.domainToASCII and domainToUnicode
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.
1 parent a0fe4f3 commit 2bd0f59

File tree

2 files changed

+31
-87
lines changed

2 files changed

+31
-87
lines changed

url.bs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,9 +2378,6 @@ result of <a lt='urlencoded parser'><code>application/x-www-form-urlencoded</cod
23782378
[Constructor(USVString url, optional USVString base),
23792379
Exposed=(Window,Worker)]
23802380
interface URL {
2381-
static USVString domainToASCII(USVString domain);
2382-
static USVString domainToUnicode(USVString domain);
2383-
23842381
stringifier attribute USVString href;
23852382
readonly attribute USVString origin;
23862383
attribute USVString protocol;
@@ -2477,32 +2474,6 @@ url.href // "https://url.spec.whatwg.org/%F0%9F%8D%A3%F0%9F%8D%BA"</pre>
24772474
</div>
24782475

24792476

2480-
<h3 id=url-statics>{{URL}} statics</h3>
2481-
2482-
<p>The <dfn method for=URL><code>domainToASCII(<var>domain</var>)</code></dfn> static
2483-
method, when invoked, must run these steps:
2484-
2485-
<ol>
2486-
<li><p>Let <var>asciiDomain</var> be the result of
2487-
<a lt='host parser'>host parsing</a> <var>domain</var>.
2488-
2489-
<li><p>Return the empty string if <var>asciiDomain</var> is not a <a for=host>domain</a>,
2490-
and <var>asciiDomain</var> otherwise.
2491-
</ol>
2492-
2493-
<p>The <dfn method for=URL><code>domainToUnicode(<var>domain</var>)</code></dfn> static
2494-
method, when invoked, must run these steps:
2495-
2496-
<ol>
2497-
<li><p>Let <var>unicodeDomain</var> be the result of
2498-
<a lt='host parser'>host parsing</a> <var>domain</var> with the
2499-
<var>Unicode flag</var> set.
2500-
2501-
<li><p>Return the empty string if <var>unicodeDomain</var> is not a
2502-
<a for=host>domain</a>, and <var>unicodeDomain</var> otherwise.
2503-
</ol>
2504-
2505-
25062477
<h3 id=urlutils-members>{{URL}} members</h3>
25072478

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

0 commit comments

Comments
 (0)