html: Add the 'name' and 'areas' IDL attributes for <map> (#40133)

Follow the HTML specification and add the missing 'name' and 'areas' IDL
attributes to HTMLMapElement.

https://html.spec.whatwg.org/multipage/#htmlmapelement

Testing: Improvements in the following WPT tests
- custom-elements/reactions/customized-builtins/HTMLMapElement.html
- html/dom/idlharness.https.html

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
Andrei Volykhin
2025-10-24 17:19:24 +03:00
committed by GitHub
parent fe2149530c
commit 45ed17de54
7 changed files with 36 additions and 141 deletions

View File

@@ -7,8 +7,6 @@
interface HTMLMapElement : HTMLElement {
[HTMLConstructor] constructor();
// [CEReactions]
// attribute DOMString name;
// readonly attribute HTMLCollection areas;
// readonly attribute HTMLCollection images;
[CEReactions] attribute DOMString name;
[SameObject] readonly attribute HTMLCollection areas;
};