This spec adds a dialogmodaltarget attribute to button elements. Similar to popovertarget, dialogmodaltarget takes an IDREF and calls showModal() or close() on the idref element, when the button is clicked. It also specifies the reflected dialogModalTargetElement attribute (which allows for cross-root assignment).
WebKittens
@annevk @rniwa
Title of the spec
HTML
dialogmodaltarget
attributeURL to the spec
https://github.com/whatwg/html/pull/9456
URL to the spec's repository
https://github.com/whatwg/html/pull/9456
Issue Tracker URL
No response
Explainer URL
https://github.com/whatwg/html/pull/9456
TAG Design Review URL
No response
Mozilla standards-positions issue URL
No response
WebKit Bugzilla URL
https://bugs.webkit.org/show_bug.cgi?id=258562
Radar URL
No response
Description
This spec adds a
dialogmodaltarget
attribute to button elements. Similar topopovertarget
,dialogmodaltarget
takes an IDREF and callsshowModal()
orclose()
on the idref element, when the button is clicked. It also specifies the reflecteddialogModalTargetElement
attribute (which allows for cross-root assignment).