forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
validator-amp-geo.protoascii
45 lines (45 loc) · 1018 Bytes
/
validator-amp-geo.protoascii
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Specific script tags for custom elements and runtime imports.
tags: { # amp-geo
html_format: AMP
tag_name: "SCRIPT"
extension_spec: {
name: "amp-geo"
version: "0.1"
version: "latest"
}
attr_lists: "common-extension-attrs"
}
tags: { # <amp-geo>
html_format: AMP
tag_name: "AMP-GEO"
requires_extension: "amp-geo"
attr_lists: "extended-amp-global"
unique: true
child_tags: {
first_child_tag_name_oneof: "SCRIPT"
}
amp_layout: {
supported_layouts: NODISPLAY
}
}
tags: { # amp-geo (json)
html_format: AMP
tag_name: "SCRIPT"
spec_name: "amp-geo extension .json script"
requires_extension: "amp-geo"
mandatory_parent: "AMP-GEO"
attrs: {
name: "type"
mandatory: true
value_casei: "application/json"
dispatch_key: NAME_VALUE_PARENT_DISPATCH
}
attr_lists: "nonce-attr"
cdata: {
disallowed_cdata_regex: {
regex: "<!--"
error_message: "html comments"
}
}
spec_url: "https://amp.dev/documentation/components/amp-geo/"
}