Maps4HTML / MapML-Specification

Map Markup Language is hypertext for Web maps, like HTML is hypertext for Web pages https://maps4html.org/MapML-Specification/spec/
Other
55 stars 12 forks source link

Update contexts in which some MapML elements can be used #74

Open Malvoz opened 4 years ago

Malvoz commented 4 years ago

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.

prushforth commented 4 years ago

@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?

Malvoz commented 3 years ago

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.