MapML icon indicating copy to clipboard operation
MapML copied to clipboard

Update contexts in which some MapML elements can be used

Open Malvoz opened this issue 5 years ago • 2 comments

For example:

<extent>:

Required to be the first child of the <body> element.

<feature>, <tile>:

Child of the <body> element.

<meta>:

In the <head> element.

<link>:

If the element represents a hyperlink (has a href attribute): as a child of the head or body element.

The above should only be true if the root document is MapML. I believe all these elements can be children of the <layer> element as well.

Malvoz avatar Jul 08 '20 16:07 Malvoz

@Malvoz How should this be specified, in your view? I guess a first step might be to integrate the <map> and <layer> spec into this spec, and then decide. WDYT?

prushforth avatar Jul 08 '20 17:07 prushforth

The contexts will have to be conditional. An example of that can be seen in https://html.spec.whatwg.org/multipage/image-maps.html#the-area-element:

Contexts in which this element can be used:      Where phrasing content is expected, but only if there is a map element ancestor.

Malvoz avatar Aug 12 '21 13:08 Malvoz