From 2bd0f59b98024921ab90e628b7a526cca5abcb5f Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 19 Oct 2016 14:04:17 +0200 Subject: [PATCH] Remove URL.domainToASCII and domainToUnicode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- url.bs | 29 ------------------ url.html | 89 ++++++++++++++++++++------------------------------------ 2 files changed, 31 insertions(+), 87 deletions(-) diff --git a/url.bs b/url.bs index 2ac9262e..68007d5b 100644 --- a/url.bs +++ b/url.bs @@ -2378,9 +2378,6 @@ result of application/x-www-form-urlencoded -

{{URL}} statics

- -

The domainToASCII(domain) static -method, when invoked, must run these steps: - -

    -
  1. Let asciiDomain be the result of - host parsing domain. - -

  2. Return the empty string if asciiDomain is not a domain, - and asciiDomain otherwise. -

- -

The domainToUnicode(domain) static -method, when invoked, must run these steps: - -

    -
  1. Let unicodeDomain be the result of - host parsing domain with the - Unicode flag set. - -

  2. Return the empty string if unicodeDomain is not a - domain, and unicodeDomain otherwise. -

- -

{{URL}} members

The href attribute's getter must return the diff --git a/url.html b/url.html index aaf61f38..523d94d1 100644 --- a/url.html +++ b/url.html @@ -132,10 +132,9 @@

Table of Contents

6 API
  1. 6.1 Constructors -
  2. 6.2 URL statics -
  3. 6.3 URL members -
  4. 6.4 Interface URLSearchParams -
  5. 6.5 URL APIs elsewhere +
  6. 6.2 URL members +
  7. 6.3 Interface URLSearchParams +
  8. 6.4 URL APIs elsewhere
  • Acknowledgments
  • Conformance @@ -1770,9 +1769,6 @@

    6. [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; @@ -1832,25 +1828,7 @@

    -

    6.2. URL statics

    -

    The domainToASCII(domain) static -method, when invoked, must run these steps:

    -
      -
    1. -

      Let asciiDomain be the result of host parsing domain.

      -
    2. -

      Return the empty string if asciiDomain is not a domain, - and asciiDomain otherwise.

      -
    -

    The domainToUnicode(domain) static -method, when invoked, must run these steps:

    -
      -
    1. -

      Let unicodeDomain be the result of host parsing domain with the Unicode flag set.

      -
    2. -

      Return the empty string if unicodeDomain is not a domain, and unicodeDomain otherwise.

      -
    -

    6.3. URL members

    +

    6.2. URL members

    The href attribute’s getter must return the serialization of context object’s url.

    The href attribute’s setter must run these steps:

      @@ -2021,7 +1999,7 @@

      Basic URL parse input with context object’s url as url and fragment state as state override.

    -

    6.4. Interface URLSearchParams

    +

    6.3. Interface URLSearchParams

    [Constructor(optional (USVString or URLSearchParams) init = ""),
      Exposed=(Window,Worker)]
     interface URLSearchParams {
    @@ -2092,7 +2070,7 @@ 

    The value pairs to iterate over are the list name-value pairs with the key being the name and the value being the value.

    The stringification behavior must return the serialization of the URLSearchParams object’s list.

    -

    6.5. URL APIs elsewhere

    +

    6.4. URL APIs elsewhere

    A standard that exposes URLs, should expose the URL as a string (by serializing an internal URL). A standard should not expose a URL using a URL object. URL objects @@ -2194,7 +2172,7 @@

  • absolute URL, in §4.1
  • absolute URL with fragment, in §4.1 -
  • append(name, value), in §6.4 +
  • append(name, value), in §6.3
  • application/x-www-form-urlencoded, in §5
  • ASCII alpha, in §1
  • ASCII alphanumeric, in §1 @@ -2212,7 +2190,7 @@

    cannot-be-a-base-URL path state, in §4.2
  • default encode set, in §1.2
  • default port, in §4 -
  • delete(name), in §6.4 +
  • delete(name), in §6.3
  • domain
      @@ -2220,9 +2198,7 @@

      dfn for hostsyntax, in §3.2

  • domain to ASCII, in §3.1 -
  • domainToASCII(domain), in §6.2
  • domain to Unicode, in §3.1 -
  • domainToUnicode(domain), in §6.2
  • double-dot path segment, in §4.1
  • EOF code point, in §1.1
  • @@ -2242,24 +2218,24 @@

    dfn for urlsyntax, in §4.1
  • fragment state, in §4.2 -
  • getAll(name), in §6.4 -
  • get(name), in §6.4 -
  • hash, in §6.3 -
  • has(name), in §6.4 +
  • getAll(name), in §6.3 +
  • get(name), in §6.3 +
  • hash, in §6.2 +
  • has(name), in §6.3
  • host -
  • hostname, in §6.3 +
  • hostname, in §6.2
  • hostname state, in §4.2
  • host parser, in §3.3
  • host serializer, in §3.4
  • host state, in §4.2 -
  • href, in §6.3 +
  • href, in §6.2
  • HTTP(S) scheme, in §4
  • include credentials, in §4
  • @@ -2285,10 +2261,10 @@

    IPv6 serializer, in §3.4
  • is local, in §4
  • is special, in §4 -
  • list, in §6.4 +
  • list, in §6.3
  • local scheme, in §4
  • network scheme, in §4 -
  • new, in §6.4 +
  • new, in §6.3
  • normalized Windows drive letter, in §1
  • no scheme state, in §4.2
  • object, in §4 @@ -2296,18 +2272,18 @@

    dfn for url, in §4.5 -
  • attribute for URL, in §6.3 +
  • attribute for URL, in §6.2
  • password
  • path, in §4
  • path-absolute non-Windows-file URL, in §4.1
  • path-absolute URL, in §4.1 -
  • pathname, in §6.3 +
  • pathname, in §6.2
  • path or authority state, in §4.2
  • path-relative scheme-less URL, in §4.1
  • path-relative URL, in §4.1 @@ -2324,10 +2300,10 @@

    dfn for url, in §4
  • dfn for urlsyntax, in §4.1 -
  • attribute for URL, in §6.3 +
  • attribute for URL, in §6.2
  • port state, in §4.2 -
  • protocol, in §6.3 +
  • protocol, in §6.2
  • query
  • syntax violation, in §1.1
  • tab and newline, in §1 -
  • update steps, in §6.4 +
  • update steps, in §6.3
  • URL
  • UTF-8 percent encode, in §1.2
  • valid domain, in §3.2 @@ -2490,9 +2466,6 @@

    I
    [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;