-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore title passed to pushState()/replaceState() #6482
Conversation
<p>Pushes the given data onto the session history, with the given title, and, if provided and | ||
not null, the given URL.</p> | ||
<p>Pushes the given data onto the session history, and, if provided and not null, the given URL. | ||
(The second parameter exists for historical reasons; passing the empty string is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could link "historical reasons" here and below to https://html5doctor.com/interview-with-ian-hickson-html-editor/ .
Seems this got removed in Firefox in https://bugzilla.mozilla.org/show_bug.cgi?id=544535. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there are no requirements about manipulating the title
element as apparently envisioned at some point, this does not impact what you can observe from the web. It would seem weird if Safari continued to use this parameter though so I hope they agree this should go.
@@ -82934,18 +82925,20 @@ interface <dfn>History</dfn> { | |||
<p>If there is no next page, does nothing.</p> | |||
</dd> | |||
|
|||
<dt><var>window</var> . <code data-x="dom-history">history</code> . <code subdfn data-x="dom-history-pushState">pushState</code>(<var>data</var>, <var>title</var> [, <var>url</var> ] )</dt> | |||
<dt><var>window</var> . <code data-x="dom-history">history</code> . <code subdfn data-x="dom-history-pushState">pushState</code>( <var>data</var>, ""[, <var>url</var>] )</dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: I don't think we typically have a space after (
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It varies a lot... we should try to figure out whatwg/meta#190 at some point :-/
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
It was removed from HTML in whatwg/html#6482.
…“title”) Related MDN change: mdn/content#13322 Related spec bug: whatwg/html#6482 Relevant spec sections: - https://html.spec.whatwg.org/multipage/history.html#dom-history-pushstate - https://html.spec.whatwg.org/multipage/history.html#dom-history-replacestate - https://html.spec.whatwg.org/multipage/history.html#dom-history-pushstate-dev - https://html.spec.whatwg.org/multipage/history.html#dom-history-replacestate-dev
…“title”) (#15149) * Update History pushstate|replacestate note about “unused” param (was “title”) Related MDN change: mdn/content#13322 Related spec bug: whatwg/html#6482 Relevant spec sections: - https://html.spec.whatwg.org/multipage/history.html#dom-history-pushstate - https://html.spec.whatwg.org/multipage/history.html#dom-history-replacestate - https://html.spec.whatwg.org/multipage/history.html#dom-history-pushstate-dev - https://html.spec.whatwg.org/multipage/history.html#dom-history-replacestate-dev * Rename the actual subfeature too
Closes #2174. Closes #3806.
(See WHATWG Working Mode: Changes for more details.)
/cc @beidson. Note that this doesn't make Safari non-conforming, because browser UI like the back button dropdown is not governed by specs. But Safari might still want to align with the other browsers, if they find the arguments in #2174 (comment) at all persuasive.
/browsing-the-web.html ( diff )
/history.html ( diff )