-
Notifications
You must be signed in to change notification settings - Fork 220
Closed
Labels
needs editsThis is ready for edits to be madeThis is ready for edits to be madepopoverThe Popover APIThe Popover API
Description
This issue was reported by @domenic here, and is being moved to the OpenUI repo.
The x=x pattern in HTML is generally used as a way to allow XML serializations (i.e. "XHTML") to do boolean attributes. I.e. instead of the simple <div checked>, you'd do <div checked="checked">, because XML does not allow value-less attributes.
We should probably avoid using this pattern for a non-boolean attribute, as it will confuse people.
Ideas:
- Rename the attribute. (E.g.
toplayerbehavior=popuportoplayer=popup.) - Rename the value. (E.g.
popup=default,popup=onlyone.) - Have no value, and just a state. (So you'd do
<div popup>with no value to get this behavior.)
I imagine there's going to be a general bikeshedding fest on popup/hint/async, but I just wanted to note this as a relatively high-priority consideration in that bikeshed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs editsThis is ready for edits to be madeThis is ready for edits to be madepopoverThe Popover APIThe Popover API