{{ APIRef("HTML DOM") }}
The HTMLMapElement
interface provides special properties and methods (beyond those of the regular object {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.
Properties
Inherits properties from its parent, {{domxref("HTMLElement")}}.
- {{domxref("HTMLMapElement.name")}}
- Is a {{domxref("DOMString")}} representing the {{HTMLElement("map")}} element for referencing it other context. If the
id
attribute is set, this must have the same value; and it cannot benull
or empty. - {{domxref("HTMLMapElement.areas")}} {{readonlyInline}}
- Is a live {{domxref("HTMLCollection")}} representing the {{HTMLElement("area")}} elements associated to this {{HTMLElement("map")}}.
- {{domxref("HTMLMapElement.images")}} {{readonlyInline}}
- Is a live {{domxref("HTMLCollection")}} representing the {{HTMLElement("img")}} and {{HTMLElement("object")}} elements associated to this {{HTMLElement("map")}}.
Methods
No specific method; inherits methods from its parent, {{domxref("HTMLElement")}} .
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "the-map-element.html#the-map-element", "HTMLMapElement")}} | {{Spec2('HTML WHATWG')}} | No change from {{SpecName("HTML5 W3C")}}. |
{{SpecName('HTML5 W3C', "embedded-content-0.html#the-map-element", "HTMLMapElement")}} | {{Spec2('HTML5 W3C')}} | Adds the images property. |
{{SpecName('DOM2 HTML', 'html.html#ID-94109203', 'HTMLAreaElement')}} | {{Spec2('DOM2 HTML')}} | No change from {{SpecName("DOM1")}}. |
{{SpecName('DOM1', 'level-one-html.html#ID-94109203', 'HTMLAreaElement')}} | {{Spec2('DOM1')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
See also
- HTML element implementing this interface: {{ HTMLElement("map") }}.