LibWeb: Add PopOverInvokerElement and use it in HTMLButtonElement

The popoverTargetElement seems to be one of the only cases of a
reflected Element? attribute in the HTML spec, the behaviour of which
is specified in section 2.6.1.

Buttons can't actually toggle popovers yet because showing/hiding
popovers is not implemented yet.
This commit is contained in:
Nathan van der Kamp 2024-11-23 23:06:06 +01:00 committed by Tim Ledbetter
commit a276cf2d5e
Notes: github-actions[bot] 2024-12-12 17:12:26 +00:00
9 changed files with 97 additions and 2 deletions

View file

@ -238,6 +238,8 @@ namespace AttributeNames {
__ENUMERATE_HTML_ATTRIBUTE(placeholder) \
__ENUMERATE_HTML_ATTRIBUTE(playsinline) \
__ENUMERATE_HTML_ATTRIBUTE(popover) \
__ENUMERATE_HTML_ATTRIBUTE(popovertarget) \
__ENUMERATE_HTML_ATTRIBUTE(popovertargetaction) \
__ENUMERATE_HTML_ATTRIBUTE(poster) \
__ENUMERATE_HTML_ATTRIBUTE(preload) \
__ENUMERATE_HTML_ATTRIBUTE(readonly) \