MCPcopy Create free account
hub / github.com/ampproject/amphtml / createElementRules_

Function createElementRules_

extensions/amp-bind/0.1/bind-validator.js:205–487  ·  view source on GitHub ↗

* @return {{[key: string]: {[key: string]: ?PropertyRulesDef}}}} * @private

()

Source from the content-addressed store, hash-verified

203 * @private
204 */
205function createElementRules_() {
206 // Initialize `rules` with tag-specific constraints.
207 const rules = {
208 'AMP-AUDIO': {
209 'album': null,
210 'artist': null,
211 'artwork': null,
212 'controlsList': null,
213 'loop': null,
214 'src': {
215 'allowedProtocols': {
216 'https': true,
217 },
218 },
219 'title': null,
220 },
221 'AMP-AUTOCOMPLETE': {
222 'src': {
223 'allowedProtocols': {
224 'https': true,
225 },
226 },
227 },
228 'AMP-BASE-CAROUSEL': {
229 'advance-count': null,
230 'auto-advance-count': null,
231 'auto-advance-interval': null,
232 'auto-advance-loops': null,
233 'auto-advance': null,
234 'horizontal': null,
235 'initial-index': null,
236 'loop': null,
237 'mixed-length': null,
238 'side-slide-count': null,
239 'slide': null,
240 'snap-align': null,
241 'snap-by': null,
242 'snap': null,
243 'visible-count': null,
244 },
245 'AMP-BRIGHTCOVE': {
246 'data-account': null,
247 'data-embed': null,
248 'data-player': null,
249 'data-player-id': null,
250 'data-playlist-id': null,
251 'data-video-id': null,
252 },
253 'AMP-CAROUSEL': {
254 'slide': null,
255 },
256 'AMP-DATE-PICKER': {
257 'max': null,
258 'min': null,
259 'src': {
260 'allowedProtocols': {
261 'https': true,
262 },

Callers 1

bind-validator.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected