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 | 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 |
---|---|
TAG_REQUIRED_BY_MISSING | Error thrown when required amp-vine extension .js script tag is missing or incorrect. |
MANDATORY_ATTR_MISSING | Error thrown when required attribute, data-vineid , is missing. |
IMPLIED_LAYOUT_INVALID | Error thrown when implied layout is set to CONTAINER ; this layout type isn't supported. |
SPECIFIED_LAYOUT_INVALID | Error thrown when specified layout is set to CONTAINER ; this layout type isn't supported. |
INVALID_PROPERTY_VALUE_IN_ATTR_VALUE | 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.