From 037e082d30b21271bd410fc2f45d2b4f0bcbce9d Mon Sep 17 00:00:00 2001 From: Trevor Rowbotham Date: Tue, 7 Feb 2017 13:46:57 -0500 Subject: [PATCH] Align //Location's pathname getter with the URL Standard Updates the pathname getter to return the empty string when the URL's path is empty, which mirrors the change in https://github.com/whatwg/url/commit/b087fe2ab215caf656a94b067c9a69ae78f03c8f which in turn fixed https://github.com/whatwg/url/issues/212. (This was tested as part of the URL Standard change. It is not tested for the Location object as it is not feasible to do so as discussed in the pull request for this change.) --- source | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source b/source index e185320d347..9497d9eaec2 100644 --- a/source +++ b/source @@ -22057,6 +22057,9 @@ interface HTMLHyperlinkElementUtils {
  • If url's cannot-be-a-base-URL flag is set, return the first string in url's path.

  • +
  • If url's path is empty, then return the + empty string.

  • +
  • Return "/", followed by the strings in url's path (including empty strings), separated from each other by "/".

  • @@ -81112,6 +81115,9 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O
  • If url's cannot-be-a-base-URL flag is set, return the first string in url's path.

  • +
  • If url's path is empty, then return the + empty string.

  • +
  • Return "/", followed by the strings in url's path (including empty strings), separated from each other by "/".