Skip to content

html.elements.optgroup.disabled - recent iOS does not support disabled optgroup #26219

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

Open
telic opened this issue Mar 14, 2025 · 1 comment · May be fixed by #26644
Open

html.elements.optgroup.disabled - recent iOS does not support disabled optgroup #26219

telic opened this issue Mar 14, 2025 · 1 comment · May be fixed by #26644
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML p2 High priority – Community PRs highly encouraged.

Comments

@telic
Copy link

telic commented Mar 14, 2025

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

The compatibility data shows that disabled optgroup are fully supported on iOS. However, the demo reveals that it is not working correctly on the current version of iOS (18.3.1)

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

The compatibility table should show that iOS is non-conforming. Options in a disabled optgroup should not be selectable.

Did you test this? If so, how?

Tested by hand using the example provided on https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled#examples

All options in this”Group 3” are selectable on iOS.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled

MDN metadata

MDN page report details
  • Query: html.elements.optgroup.disabled
  • Report started: 2025-03-14T15:59:47.946Z
@telic telic added the needs triage This issue needs to be confirmed label Mar 14, 2025
@github-actions github-actions bot added the data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML label Mar 14, 2025
@caugner
Copy link
Contributor

caugner commented Apr 14, 2025

Thanks for reporting, I was able to reproduce the issue with this JSBin in Safari iOS 18, 17.3, 16.4, 15.3, 14.4, 13.3, 12.4, 11.2, and I don't have older iOS versions to test.

Related Safari bugs:

We should update the optgroup.disabled data for Safari as follows:

  1. For safari, we should use two support statements: One with partial_implementation: true, version_added: ≤4, version_removed: 7 and notes: "The attribute is exposed, but has no effect."
  2. For safari_ios, we should replace mirror with a support statement object that has partial_implementation: true, version_added: "≤3.2" and notes: "The attribute is exposed, but has no effect.".

@telic Would you like to open a PR with these changes?

@caugner caugner added p2 High priority – Community PRs highly encouraged. and removed needs triage This issue needs to be confirmed labels Apr 14, 2025
telic added a commit to telic/browser-compat-data that referenced this issue Apr 27, 2025
telic added a commit to telic/browser-compat-data that referenced this issue Apr 27, 2025
@telic telic linked a pull request Apr 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML p2 High priority – Community PRs highly encouraged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants