Description | Displays a Vine simple embed. |
Availability | Stable |
Required Script | <script async custom-element="amp-vine" src="https://cdn.ampproject.org/v0/amp-vine-0.1.js"></script> |
Examples | amp-vine.html vine.amp.html |
The following lists validation errors specific to the amp-vine
tag
(see also amp-vine
in the AMP validator specification):
Validation Error | Description |
---|---|
The 'example1' tag is missing or incorrect, but required by 'example2'. | Error thrown when required amp-vine extension .js script tag is missing or incorrect. |
The mandatory attribute 'example1' is missing in tag 'example2'. | Error thrown when required attribute, data-vineid , is missing. |
The implied layout 'example1' is not supported by tag 'example2'.D | Error thrown when implied layout is set to CONTAINER ; this layout type isn't supported. |
The specified layout 'example1' is not supported by tag 'example2'. | Error thrown when specified layout is set to CONTAINER ; this layout type isn't supported. |
The property 'example1' in attribute 'example2' in tag 'example3' is set to 'example4', which is invalid. | Error thrown when invalid value is given for attributes height or width . For example, height=auto triggers this error for all supported layout types, with the exception of NODISPLAY . |
A Vine simple embed has equal width and height:
<amp-vine width="400" height="400"
data-vineid="MdKjXez002d">
</amp-vine>
data-vineid
The ID of the Vine. In a URL like https://vine.co/v/MdKjXez002d MdKjXez002d
is the vineID.