Optionality of history.pushState/replaceState’s unused argument #8278
Labels
needs implementer interest
Moving the issue forward requires implementers to express interest
normative change
topic: history
The signatures of pushState and replaceState currently require their
unused
arguments (previouslytitle
) even though theirurl
arguments are optional.While the unused arguments are unavoidable for web compat when changing the URL, the explicit second argument being required when updating state alone seems to serve no purpose (and is not particularly obvious). They could be made optional.
(Filed at the suggestion of @annevk. In that context, I was suggesting there might be ways the Web IDL overload resolution algorithm could be made a bit friendlier in general, but the particular example I gave really implied an issue with the specific signatures in question.)
The text was updated successfully, but these errors were encountered: