From 5b64062e73139154261a4ff6bf9a97e4fb167cd3 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 28 Oct 2016 11:30:51 +0200 Subject: [PATCH] Change URL's port attribute's setter instead --- url.bs | 6 +++--- url.html | 15 +++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/url.bs b/url.bs index c72074f8..b373f653 100644 --- a/url.bs +++ b/url.bs @@ -1632,9 +1632,6 @@ optionally with an encoding
  • Set buffer to the empty string. -

  • If state override is given and buffer is the empty string, - Set url's port to null. -

  • If state override is given, terminate this algorithm.

  • Set state to path start state, and decrease @@ -2632,6 +2629,9 @@ does return a port so one might have assumed the setter to cannot-be-a-base-URL flag is set, or its scheme is "file", terminate these steps. +

  • If the given value is the empty string, then set url's port to + null and terminate these steps.

  • +
  • Basic URL parse the given value with context object's url as url and port state as state override. diff --git a/url.html b/url.html index 55ce7dc3..23ce6cfa 100644 --- a/url.html +++ b/url.html @@ -71,7 +71,7 @@

    URL

    -

    Living Standard — Last Updated

    +

    Living Standard — Last Updated

    @@ -1938,6 +1938,9 @@

    context object’s url’s host is null, its cannot-be-a-base-URL flag is set, or its scheme is "file", terminate these steps.

    +
  • +

    If the given value is the empty string, then set url’s port to + null and terminate these steps.

  • Basic URL parse the given value with context object’s url as url and port state as state override.

    @@ -2449,7 +2452,7 @@

    N
    [ENCODING]
    Anne van Kesteren. Encoding Standard. Living Standard. URL: https://encoding.spec.whatwg.org/
    [FILEAPI] -
    Arun Ranganathan; Jonas Sicking. File API. 21 April 2015. WD. URL: https://w3c.github.io/FileAPI/ +
    Arun Ranganathan; Jonas Sicking. File API. URL: https://w3c.github.io/FileAPI/
    [HTML]
    Ian Hickson. HTML Standard. Living Standard. URL: https://html.spec.whatwg.org/multipage/
    [IANA-URI-SCHEMES] @@ -2457,9 +2460,9 @@

    N
    [IDNA]
    Mark Davis; Michel Suignard. Unicode IDNA Compatibility Processing. URL: http://www.unicode.org/reports/tr46/
    [MEDIA-SOURCE] -
    Matthew Wolenetz; et al. Media Source Extensions™. 4 October 2016. PR. URL: https://w3c.github.io/media-source/ +
    Matthew Wolenetz; et al. Media Source Extensions™. URL: https://w3c.github.io/media-source/
    [MEDIACAPTURE-STREAMS] -
    Daniel Burnett; et al. Media Capture and Streams. 19 May 2016. CR. URL: https://w3c.github.io/mediacapture-main/ +
    Daniel Burnett; et al. Media Capture and Streams. URL: https://w3c.github.io/mediacapture-main/
    [RFC2119]
    S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. March 1997. Best Current Practice. URL: https://tools.ietf.org/html/rfc2119
    [RFC4291] @@ -2467,14 +2470,14 @@

    N
    [UTS36]
    Mark Davis; Michel Suignard. Unicode Security Considerations. URL: http://unicode.org/reports/tr36/
    [WEBIDL] -
    Cameron McCormack; Boris Zbarsky. WebIDL Level 1. 15 September 2016. PR. URL: https://heycam.github.io/webidl/ +
    Cameron McCormack; Boris Zbarsky; Tobie Langel. Web IDL. URL: https://heycam.github.io/webidl/

  • Informative References

    [FETCH]
    Anne van Kesteren. Fetch Standard. Living Standard. URL: https://fetch.spec.whatwg.org/
    [REFERRER-POLICY] -
    Jochen Eisinger; Mike West. Referrer Policy. 16 October 2016. WD. URL: https://w3c.github.io/webappsec-referrer-policy/ +
    Jochen Eisinger; Mike West. Referrer Policy. URL: https://w3c.github.io/webappsec-referrer-policy/
    [RFC1034]
    P.V. Mockapetris. Domain names - concepts and facilities. November 1987. Internet Standard. URL: https://tools.ietf.org/html/rfc1034
    [RFC3986]