Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-search.js

Issue 537103002: Spec compliant url.search/url.hash setters over empty values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Sync expected output Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-search.js
diff --git a/LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-search.js b/LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-search.js
index 4799fdc4dbd2782182548fd6204d5fc7d855a676..39370a109a3c4c0130b3c3677d92e8456631d5cf 100644
--- a/LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-search.js
+++ b/LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-search.js
@@ -38,9 +38,9 @@ a.href = "https://www.mydomain.com/path/?key=value";
a.search = null;
shouldBe("a.href", "'https://www.mydomain.com/path/?null'");
-// Firefox 3.5.2 Removes the '?', and it shouldn't, per
-// http://dev.w3.org/html5/spec/infrastructure.html#url-decomposition-idl-attributes .
+// Firefox 3.5.2 Removes the '?', and it should, per
+// http://url.spec.whatwg.org/#dom-url-search
debug("Set search to empty string");
a.href = "https://www.mydomain.com/path/?key=value";
a.search = "";
-shouldBe("a.href", "'https://www.mydomain.com/path/?'");
+shouldBe("a.href", "'https://www.mydomain.com/path/'");

Powered by Google App Engine
This is Rietveld 408576698