Skip to content
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

Merged
merged 3 commits into from
Mar 15, 2021
Merged

Conversation

domenic
Copy link
Member

@domenic domenic commented Mar 12, 2021

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 )

@domenic domenic added removal/deprecation Removing or deprecating a feature topic: history labels Mar 12, 2021
<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
Copy link
Member Author

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/ .

@annevk
Copy link
Member

annevk commented Mar 12, 2021

Seems this got removed in Firefox in https://bugzilla.mozilla.org/show_bug.cgi?id=544535.

source Show resolved Hide resolved
Copy link
Member

@annevk annevk left a 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>
Copy link
Member

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 (...

Copy link
Member Author

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.

@domenic domenic added the impacts documentation Used by documentation communities, such as MDN, to track changes that impact documentation label Mar 15, 2021
@domenic domenic merged commit e0b554b into main Mar 15, 2021
@domenic domenic deleted the rm-history-title branch March 15, 2021 17:00
domenic added a commit to WICG/navigation-api that referenced this pull request Mar 15, 2021
ddbeck pushed a commit to mdn/browser-compat-data that referenced this pull request Mar 10, 2022
142359

This comment was marked as spam.

@whatwg whatwg locked and limited conversation to collaborators Jun 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
impacts documentation Used by documentation communities, such as MDN, to track changes that impact documentation removal/deprecation Removing or deprecating a feature topic: history
Development

Successfully merging this pull request may close these issues.

History interface "title" pushState title is ignored in all implementations?
4 participants