Skip to content

fix(api): note Safari iOS UIEvent.detail behavior - #30234

Merged
ddbeck merged 2 commits into
mdn:mainfrom
russlan23:agent/fix-ios-uievent-detail
Aug 27, 2026
Merged

ddbeck merged 2 commits into
mdn:mainfrom
russlan23:agent/fix-ios-uievent-detail

Conversation

@russlan23

Copy link
Copy Markdown
Contributor

Summary

Mark Safari iOS support for UIEvent.detail as partial and document that the value does not increment on subsequent clicks.

Test results and supporting details

Related issues

Fixes #27528

@github-actions github-actions Bot added data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API size:s Pull request changing 7-24 lines of code. labels Aug 14, 2026
@github-actions

github-actions Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Comment thread api/UIEvent.json Outdated
"safari_ios": "mirror",
"safari_ios": {
"version_added": "1",
"partial_implementation": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial is a blunt instrument. Many UIEVent types use detail properly, but this issue affects only a couple of event types. For that reason, I am recommending against characterizing this as partial to all event types, until more evidence emerges that developers are being negatively impacted by this behavior.

Suggested change
"partial_implementation": true,

Comment thread api/UIEvent.json Outdated
"safari_ios": {
"version_added": "1",
"partial_implementation": true,
"notes": "Does not increment on subsequent clicks. See [bug 298652](https://webkit.org/b/298652)."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should specify that this behavior is only expected and not performed for click events:

Suggested change
"notes": "Does not increment on subsequent clicks. See [bug 298652](https://webkit.org/b/298652)."
"notes": "For `click` events, the value does not increment on subsequent clicks. See [bug 298652](https://webkit.org/b/298652)."

@russlan23

Copy link
Copy Markdown
Contributor Author

Addressed both review points in d300e11: removed the broad partial-support flag and scoped the note to click events. The complete format, TypeScript, data-lint, and unit-test pipeline passes (315/315 tests).

@github-actions github-actions Bot added size:xs Pull request changing 0-6 lines of code. and removed size:s Pull request changing 7-24 lines of code. labels Aug 26, 2026
@Elchi3
Elchi3 requested a review from ddbeck August 27, 2026 08:12
@ddbeck
ddbeck merged commit 497b4f0 into mdn:main Aug 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API size:xs Pull request changing 0-6 lines of code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

api.UIEvent.detail - iOS Mobile Safari doesn't update click count

2 participants