Syntax Error in the useHTMLClass
causes Unexpected Error in older Safari
#20504
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Describe the bug
A Syntax Error in the
useHTMLClass
hook causes the editor to show recovery options. I'm seeing this on Safari 12.1.1 on Mac OS Mojave. Coworkers on newer Safari (13+) do not have the same error.The syntax error right here where the selector is missing a closing
)
seems to be the root problem. Other browsers evaluate that selector without error, but older versions of Safari do not.To reproduce
This specifically applies to WordPress 5.4 Beta 2 on older versions of Safari.
Steps to reproduce the behavior:
Expected behavior
Rendered Gutenberg editor should show
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
I'd be happy to open a PR, but would need some guidance on base and target branches.
The text was updated successfully, but these errors were encountered: