From 1ba80ecc3a1bb862cda77abf54df3b475477ca79 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 21 May 2021 15:02:33 +0100 Subject: [PATCH] Refactor CSS rulesets --- bin/src/Validator/SpecGenerator.php | 8 +- .../Validator/SpecGenerator/FileManager.php | 25 +- .../Validator/SpecGenerator/Section/Css.php | 132 ----------- .../SpecGenerator/Section/CssRulesets.php | 186 +++++++++++++++ .../Validator/SpecGenerator/Section/Tags.php | 6 +- .../Validator/SpecGenerator/Template/Css.php | 50 ---- .../SpecGenerator/Template/CssRuleset.php | 111 +++++++++ .../SpecGenerator/Template/CssRulesets.php | 110 +++++++++ .../Validator/SpecGenerator/Template/Tags.php | 5 +- src/Exception/InvalidCssName.php | 27 --- src/Exception/InvalidCssRulesetName.php | 27 +++ src/Validator/Spec.php | 26 +- src/Validator/Spec/CssRuleset.php | 113 +++++++++ src/Validator/Spec/CssRuleset/Amp4ads.php | 55 +++++ .../CssRuleset/Amp4emailDataCssStrict.php | 56 +++++ .../CssRuleset/Amp4emailNoDataCssStrict.php | 59 +++++ .../Spec/CssRuleset/AmpNoTransformed.php | 62 +++++ .../Spec/CssRuleset/AmpTransformed.php | 62 +++++ src/Validator/Spec/Section/Css.php | 222 ------------------ src/Validator/Spec/Section/CssRulesets.php | 159 +++++++++++++ src/Validator/Spec/Section/Tags.php | 2 +- src/Validator/Spec/Tag/A.php | 5 + src/Validator/Spec/Tag/AAmp4email.php | 5 + src/Validator/Spec/Tag/Abbr.php | 5 + src/Validator/Spec/Tag/Acronym.php | 5 + src/Validator/Spec/Tag/Address.php | 5 + src/Validator/Spec/Tag/Amp3dGltf.php | 5 + src/Validator/Spec/Tag/Amp3qPlayer.php | 5 + .../Spec/Tag/Amp4adsEngineScript.php | 5 + .../Spec/Tag/AmpAccessExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpAccordion.php | 5 + .../Spec/Tag/AmpAccordionSection.php | 5 + src/Validator/Spec/Tag/AmpActionMacro.php | 5 + src/Validator/Spec/Tag/AmpAd.php | 5 + src/Validator/Spec/Tag/AmpAdCustom.php | 5 + src/Validator/Spec/Tag/AmpAdExit.php | 5 + .../Spec/Tag/AmpAdExitConfigurationJson.php | 5 + .../Spec/Tag/AmpAdExtensionScript.php | 10 + .../AmpAdWithDataEnableRefreshAttribute.php | 5 + .../Tag/AmpAdWithDataMultiSizeAttribute.php | 5 + .../Spec/Tag/AmpAdWithTypeCustom.php | 5 + src/Validator/Spec/Tag/AmpAddthis.php | 5 + src/Validator/Spec/Tag/AmpAnalytics.php | 5 + .../Tag/AmpAnalyticsExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpAnim.php | 5 + src/Validator/Spec/Tag/AmpAnimAmp4email.php | 5 + .../Tag/AmpAnimExtensionScriptAmp4email.php | 10 + src/Validator/Spec/Tag/AmpAnimation.php | 5 + .../Tag/AmpAnimationExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpApesterMedia.php | 5 + src/Validator/Spec/Tag/AmpAppBanner.php | 5 + .../Spec/Tag/AmpAppBannerButtonOpenButton.php | 5 + src/Validator/Spec/Tag/AmpAudio.php | 5 + src/Validator/Spec/Tag/AmpAudioA4a.php | 5 + src/Validator/Spec/Tag/AmpAudioSource.php | 5 + src/Validator/Spec/Tag/AmpAudioTrack.php | 5 + .../Spec/Tag/AmpAudioTrackKindSubtitles.php | 5 + src/Validator/Spec/Tag/AmpAutoAds.php | 5 + src/Validator/Spec/Tag/AmpAutocomplete.php | 5 + .../Spec/Tag/AmpAutocompleteAmp4email.php | 5 + .../Spec/Tag/AmpAutocompleteInput.php | 5 + .../Spec/Tag/AmpAutocompleteJson.php | 5 + src/Validator/Spec/Tag/AmpBaseCarousel.php | 5 + .../Spec/Tag/AmpBaseCarouselLightbox.php | 5 + .../Spec/Tag/AmpBaseCarouselLightboxChild.php | 5 + ...AmpBaseCarouselLightboxLightboxExclude.php | 5 + src/Validator/Spec/Tag/AmpBeopinion.php | 5 + .../Spec/Tag/AmpBindExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpBindMacro.php | 5 + .../Spec/Tag/AmpBodymovinAnimation.php | 5 + src/Validator/Spec/Tag/AmpBridPlayer.php | 5 + src/Validator/Spec/Tag/AmpBrightcove.php | 5 + src/Validator/Spec/Tag/AmpBysideContent.php | 5 + src/Validator/Spec/Tag/AmpCallTracking.php | 5 + src/Validator/Spec/Tag/AmpCarousel.php | 5 + .../Spec/Tag/AmpCarouselLightbox.php | 5 + .../Spec/Tag/AmpCarouselLightboxChild.php | 5 + .../AmpCarouselLightboxLightboxExclude.php | 5 + src/Validator/Spec/Tag/AmpConnatixPlayer.php | 5 + src/Validator/Spec/Tag/AmpConsent.php | 5 + .../Tag/AmpConsentExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpConsentType.php | 5 + src/Validator/Spec/Tag/AmpDailymotion.php | 5 + src/Validator/Spec/Tag/AmpDateCountdown.php | 5 + src/Validator/Spec/Tag/AmpDateDisplay.php | 5 + .../Tag/AmpDatePickerTemplateDateTemplate.php | 5 + .../Tag/AmpDatePickerTemplateInfoTemplate.php | 5 + .../Tag/AmpDatePickerTypeRangeModeOverlay.php | 5 + .../Tag/AmpDatePickerTypeRangeModeStatic.php | 5 + .../AmpDatePickerTypeSingleModeOverlay.php | 5 + .../Tag/AmpDatePickerTypeSingleModeStatic.php | 5 + src/Validator/Spec/Tag/AmpDelightPlayer.php | 5 + src/Validator/Spec/Tag/AmpEmbed.php | 5 + .../AmpEmbedWithDataMultiSizeAttribute.php | 5 + src/Validator/Spec/Tag/AmpEmbedlyCard.php | 5 + src/Validator/Spec/Tag/AmpEmbedlyKey.php | 5 + src/Validator/Spec/Tag/AmpExperiment.php | 5 + .../Tag/AmpExperimentExtensionJsonScript.php | 5 + .../AmpExperimentStoryExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpFacebook.php | 5 + .../Spec/Tag/AmpFacebookComments.php | 5 + src/Validator/Spec/Tag/AmpFacebookLike.php | 5 + src/Validator/Spec/Tag/AmpFacebookPage.php | 5 + src/Validator/Spec/Tag/AmpFitText.php | 5 + src/Validator/Spec/Tag/AmpFont.php | 5 + src/Validator/Spec/Tag/AmpFxFlyingCarpet.php | 5 + src/Validator/Spec/Tag/AmpGeo.php | 5 + .../Spec/Tag/AmpGeoExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpGfycat.php | 5 + src/Validator/Spec/Tag/AmpGist.php | 5 + .../Tag/AmpGoogleAssistantAssistjsConfig.php | 5 + .../AmpGoogleAssistantInlineSuggestionBar.php | 5 + .../Spec/Tag/AmpGoogleAssistantVoiceBar.php | 5 + .../Tag/AmpGoogleAssistantVoiceButton.php | 5 + .../Spec/Tag/AmpGoogleDocumentEmbed.php | 5 + src/Validator/Spec/Tag/AmpGwdAnimation.php | 5 + src/Validator/Spec/Tag/AmpHulu.php | 5 + src/Validator/Spec/Tag/AmpIframe.php | 5 + src/Validator/Spec/Tag/AmpIframely.php | 5 + src/Validator/Spec/Tag/AmpImaVideo.php | 5 + .../AmpImaVideoScriptTypeApplicationJson.php | 5 + src/Validator/Spec/Tag/AmpImaVideoSource.php | 5 + src/Validator/Spec/Tag/AmpImaVideoTrack.php | 5 + .../Tag/AmpImaVideoTrackKindSubtitles.php | 5 + src/Validator/Spec/Tag/AmpImageLightbox.php | 5 + src/Validator/Spec/Tag/AmpImageSlider.php | 5 + .../Spec/Tag/AmpImageSliderDivFirst.php | 5 + .../Spec/Tag/AmpImageSliderDivSecond.php | 5 + .../Spec/Tag/AmpImageSliderTransformed.php | 5 + src/Validator/Spec/Tag/AmpImg.php | 5 + src/Validator/Spec/Tag/AmpImgAmp4email.php | 5 + .../Tag/AmpImgImgPlaceholderTransformed.php | 5 + .../Spec/Tag/AmpImgImgTransformed.php | 5 + src/Validator/Spec/Tag/AmpImgTransformed.php | 5 + src/Validator/Spec/Tag/AmpImgur.php | 5 + src/Validator/Spec/Tag/AmpInlineGallery.php | 5 + .../Spec/Tag/AmpInlineGalleryPagination.php | 5 + .../Tag/AmpInlineGalleryPaginationInset.php | 5 + .../Spec/Tag/AmpInlineGalleryThumbnails.php | 5 + src/Validator/Spec/Tag/AmpInstagram.php | 5 + .../Spec/Tag/AmpInstallServiceworker.php | 5 + src/Validator/Spec/Tag/AmpIzlesene.php | 5 + src/Validator/Spec/Tag/AmpJwplayer.php | 5 + src/Validator/Spec/Tag/AmpKalturaPlayer.php | 5 + src/Validator/Spec/Tag/AmpLayout.php | 5 + src/Validator/Spec/Tag/AmpLightbox.php | 5 + src/Validator/Spec/Tag/AmpLightboxAmp4ads.php | 5 + src/Validator/Spec/Tag/AmpLinkRewriter.php | 5 + .../AmpLinkRewriterExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpList.php | 5 + src/Validator/Spec/Tag/AmpListAmp4email.php | 5 + .../Spec/Tag/AmpListDivFetchError.php | 5 + src/Validator/Spec/Tag/AmpListLoadMore.php | 5 + ...AmpListLoadMoreButtonLoadMoreClickable.php | 5 + src/Validator/Spec/Tag/AmpLiveList.php | 5 + src/Validator/Spec/Tag/AmpLiveListItems.php | 5 + .../Spec/Tag/AmpLiveListItemsItem.php | 5 + .../Spec/Tag/AmpLiveListPagination.php | 5 + src/Validator/Spec/Tag/AmpLiveListUpdate.php | 5 + src/Validator/Spec/Tag/AmpMathml.php | 5 + src/Validator/Spec/Tag/AmpMegaMenu.php | 5 + src/Validator/Spec/Tag/AmpMegaMenuAmpList.php | 5 + .../Spec/Tag/AmpMegaMenuAmpListTemplate.php | 5 + .../Spec/Tag/AmpMegaMenuItemContent.php | 5 + .../Spec/Tag/AmpMegaMenuItemHeading.php | 5 + src/Validator/Spec/Tag/AmpMegaMenuNav.php | 5 + src/Validator/Spec/Tag/AmpMegaMenuNavUlOl.php | 5 + .../Spec/Tag/AmpMegaMenuNavUlOlLi.php | 5 + .../Spec/Tag/AmpMegaphoneDataEpisode.php | 5 + .../Spec/Tag/AmpMegaphoneDataPlaylist.php | 5 + .../Spec/Tag/AmpMinuteMediaPlayer.php | 5 + src/Validator/Spec/Tag/AmpMowplayer.php | 5 + src/Validator/Spec/Tag/AmpNestedMenu.php | 5 + src/Validator/Spec/Tag/AmpNextPageFooter.php | 5 + .../Spec/Tag/AmpNextPageRecommendationBox.php | 5 + .../AmpNextPageScriptTypeApplicationJson.php | 5 + .../Spec/Tag/AmpNextPageSeparator.php | 5 + .../Spec/Tag/AmpNextPageTypeAdsense.php | 5 + .../Spec/Tag/AmpNextPageWithInlineConfig.php | 5 + .../Spec/Tag/AmpNextPageWithSrcAttribute.php | 5 + src/Validator/Spec/Tag/AmpNexxtvPlayer.php | 5 + src/Validator/Spec/Tag/AmpO2Player.php | 5 + src/Validator/Spec/Tag/AmpOnetapGoogle.php | 5 + src/Validator/Spec/Tag/AmpOoyalaPlayer.php | 5 + .../Spec/Tag/AmpOrientationObserver.php | 5 + src/Validator/Spec/Tag/AmpPanZoom.php | 5 + src/Validator/Spec/Tag/AmpPinterest.php | 5 + src/Validator/Spec/Tag/AmpPixel.php | 5 + src/Validator/Spec/Tag/AmpPlaybuzz.php | 5 + .../Spec/Tag/AmpPositionObserver.php | 5 + src/Validator/Spec/Tag/AmpPowrPlayer.php | 5 + src/Validator/Spec/Tag/AmpReachPlayer.php | 5 + src/Validator/Spec/Tag/AmpRecaptchaInput.php | 5 + src/Validator/Spec/Tag/AmpRedbullPlayer.php | 5 + src/Validator/Spec/Tag/AmpReddit.php | 5 + src/Validator/Spec/Tag/AmpRiddleQuiz.php | 5 + src/Validator/Spec/Tag/AmpScript.php | 5 + .../Tag/AmpScriptExtensionLocalScript.php | 5 + src/Validator/Spec/Tag/AmpSelector.php | 5 + src/Validator/Spec/Tag/AmpSelectorChild.php | 5 + src/Validator/Spec/Tag/AmpSelectorOption.php | 5 + src/Validator/Spec/Tag/AmpSidebar.php | 5 + .../Spec/Tag/AmpSidebarAmp4email.php | 5 + src/Validator/Spec/Tag/AmpSidebarNav.php | 5 + src/Validator/Spec/Tag/AmpSkimlinks.php | 5 + src/Validator/Spec/Tag/AmpSmartlinks.php | 5 + src/Validator/Spec/Tag/AmpSocialShare.php | 5 + src/Validator/Spec/Tag/AmpSoundcloud.php | 5 + .../Spec/Tag/AmpSpringboardPlayer.php | 5 + src/Validator/Spec/Tag/AmpState.php | 5 + src/Validator/Spec/Tag/AmpStateAmp4email.php | 5 + src/Validator/Spec/Tag/AmpStickyAd.php | 5 + src/Validator/Spec/Tag/AmpStory.php | 5 + src/Validator/Spec/Tag/AmpStory360.php | 5 + src/Validator/Spec/Tag/AmpStoryAmpAudio.php | 5 + src/Validator/Spec/Tag/AmpStoryAmpSidebar.php | 5 + ...AmpStoryAmpStoryPageAttachmentAmpVideo.php | 5 + src/Validator/Spec/Tag/AmpStoryAmpVideo.php | 5 + src/Validator/Spec/Tag/AmpStoryAnimation.php | 5 + .../Spec/Tag/AmpStoryAnimationJsonScript.php | 5 + src/Validator/Spec/Tag/AmpStoryAutoAds.php | 5 + .../Spec/Tag/AmpStoryAutoAdsConfigScript.php | 5 + .../Spec/Tag/AmpStoryAutoAdsTemplate.php | 5 + .../Spec/Tag/AmpStoryAutoAnalytics.php | 5 + src/Validator/Spec/Tag/AmpStoryBookend.php | 5 + .../AmpStoryBookendExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpStoryConsent.php | 5 + .../AmpStoryConsentExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpStoryCtaLayer.php | 5 + .../Spec/Tag/AmpStoryCtaLayerAnimateIn.php | 5 + src/Validator/Spec/Tag/AmpStoryGridLayer.php | 5 + .../Spec/Tag/AmpStoryGridLayerAnimateIn.php | 5 + .../Spec/Tag/AmpStoryGridLayerDefault.php | 5 + .../Tag/AmpStoryInteractiveBinaryPoll.php | 5 + .../Spec/Tag/AmpStoryInteractivePoll.php | 5 + .../Spec/Tag/AmpStoryInteractiveQuiz.php | 5 + .../Spec/Tag/AmpStoryInteractiveResults.php | 5 + src/Validator/Spec/Tag/AmpStoryPage.php | 5 + .../Spec/Tag/AmpStoryPageAttachment.php | 5 + .../Spec/Tag/AmpStoryPageAttachmentHref.php | 5 + .../Spec/Tag/AmpStoryPageOutlink.php | 5 + .../Spec/Tag/AmpStoryPanningMedia.php | 5 + src/Validator/Spec/Tag/AmpStoryPlayer.php | 5 + src/Validator/Spec/Tag/AmpStoryPlayerImg.php | 5 + .../Spec/Tag/AmpStorySocialShare.php | 5 + ...AmpStorySocialShareExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpStreamGallery.php | 5 + .../AmpSubscriptionsExtensionJsonScript.php | 5 + src/Validator/Spec/Tag/AmpTimeago.php | 5 + src/Validator/Spec/Tag/AmpTruncateText.php | 5 + src/Validator/Spec/Tag/AmpTwitter.php | 5 + .../Spec/Tag/AmpUserNotification.php | 5 + src/Validator/Spec/Tag/AmpVideo.php | 5 + src/Validator/Spec/Tag/AmpVideoIframe.php | 5 + .../Spec/Tag/AmpVideoIframeTransformed.php | 5 + src/Validator/Spec/Tag/AmpVideoSource.php | 5 + src/Validator/Spec/Tag/AmpVideoTrack.php | 5 + .../Spec/Tag/AmpVideoTrackKindSubtitles.php | 5 + src/Validator/Spec/Tag/AmpVimeo.php | 5 + src/Validator/Spec/Tag/AmpVine.php | 5 + src/Validator/Spec/Tag/AmpViqeoPlayer.php | 5 + src/Validator/Spec/Tag/AmpVk.php | 5 + src/Validator/Spec/Tag/AmpWebPush.php | 5 + src/Validator/Spec/Tag/AmpWebPushWidget.php | 5 + src/Validator/Spec/Tag/AmpWistiaPlayer.php | 5 + src/Validator/Spec/Tag/AmpYotpo.php | 5 + src/Validator/Spec/Tag/AmpYoutube.php | 5 + .../Spec/Tag/AmphtmlEngineScript.php | 5 + .../Spec/Tag/AmphtmlEngineScriptAmp4email.php | 5 + .../Spec/Tag/AmphtmlEngineScriptLts.php | 5 + .../Spec/Tag/AmphtmlModuleEngineScript.php | 5 + .../Spec/Tag/AmphtmlModuleLtsEngineScript.php | 5 + .../Spec/Tag/AmphtmlNomoduleEngineScript.php | 5 + .../Tag/AmphtmlNomoduleLtsEngineScript.php | 5 + src/Validator/Spec/Tag/Article.php | 5 + src/Validator/Spec/Tag/Aside.php | 5 + src/Validator/Spec/Tag/Audio.php | 5 + src/Validator/Spec/Tag/AudioSource.php | 5 + src/Validator/Spec/Tag/AudioTrack.php | 5 + .../Spec/Tag/AudioTrackKindSubtitles.php | 5 + src/Validator/Spec/Tag/B.php | 5 + src/Validator/Spec/Tag/Base.php | 5 + src/Validator/Spec/Tag/Bdi.php | 5 + src/Validator/Spec/Tag/Bdo.php | 5 + src/Validator/Spec/Tag/Big.php | 5 + src/Validator/Spec/Tag/Blockquote.php | 5 + src/Validator/Spec/Tag/Body.php | 5 + src/Validator/Spec/Tag/Br.php | 5 + src/Validator/Spec/Tag/Button.php | 5 + .../Spec/Tag/ButtonAmpNestedMenu.php | 5 + src/Validator/Spec/Tag/Canvas.php | 5 + src/Validator/Spec/Tag/Caption.php | 5 + src/Validator/Spec/Tag/Center.php | 5 + src/Validator/Spec/Tag/Circle.php | 5 + src/Validator/Spec/Tag/Cite.php | 5 + src/Validator/Spec/Tag/Clippath.php | 5 + src/Validator/Spec/Tag/Code.php | 5 + src/Validator/Spec/Tag/Col.php | 5 + src/Validator/Spec/Tag/Colgroup.php | 5 + .../Spec/Tag/CryptokeysJsonScript.php | 5 + src/Validator/Spec/Tag/Data.php | 5 + src/Validator/Spec/Tag/Datalist.php | 5 + src/Validator/Spec/Tag/Dd.php | 5 + src/Validator/Spec/Tag/Defs.php | 5 + src/Validator/Spec/Tag/Del.php | 5 + src/Validator/Spec/Tag/Desc.php | 5 + src/Validator/Spec/Tag/Details.php | 5 + src/Validator/Spec/Tag/Dfn.php | 5 + src/Validator/Spec/Tag/Dir.php | 5 + src/Validator/Spec/Tag/Div.php | 5 + src/Validator/Spec/Tag/DivAmpNestedMenu.php | 5 + src/Validator/Spec/Tag/Dl.php | 5 + src/Validator/Spec/Tag/Dt.php | 5 + src/Validator/Spec/Tag/Ellipse.php | 5 + src/Validator/Spec/Tag/Em.php | 5 + src/Validator/Spec/Tag/Feblend.php | 5 + src/Validator/Spec/Tag/Fecolormatrix.php | 5 + .../Spec/Tag/Fecomponenttransfer.php | 5 + src/Validator/Spec/Tag/Fecomposite.php | 5 + src/Validator/Spec/Tag/Feconvolvematrix.php | 5 + src/Validator/Spec/Tag/Fediffuselighting.php | 5 + src/Validator/Spec/Tag/Fedisplacementmap.php | 5 + src/Validator/Spec/Tag/Fedistantlight.php | 5 + src/Validator/Spec/Tag/Fedropshadow.php | 5 + src/Validator/Spec/Tag/Feflood.php | 5 + src/Validator/Spec/Tag/Fefunca.php | 5 + src/Validator/Spec/Tag/Fefuncb.php | 5 + src/Validator/Spec/Tag/Fefuncg.php | 5 + src/Validator/Spec/Tag/Fefuncr.php | 5 + src/Validator/Spec/Tag/Fegaussianblur.php | 5 + src/Validator/Spec/Tag/Femerge.php | 5 + src/Validator/Spec/Tag/Femergenode.php | 5 + src/Validator/Spec/Tag/Femorphology.php | 5 + src/Validator/Spec/Tag/Feoffset.php | 5 + src/Validator/Spec/Tag/Fepointlight.php | 5 + src/Validator/Spec/Tag/Fespecularlighting.php | 5 + src/Validator/Spec/Tag/Fespotlight.php | 5 + src/Validator/Spec/Tag/Fetile.php | 5 + src/Validator/Spec/Tag/Feturbulence.php | 5 + src/Validator/Spec/Tag/Fieldset.php | 5 + src/Validator/Spec/Tag/Figcaption.php | 5 + src/Validator/Spec/Tag/Figure.php | 5 + src/Validator/Spec/Tag/Filter.php | 5 + src/Validator/Spec/Tag/Footer.php | 5 + src/Validator/Spec/Tag/FormDivSubmitError.php | 5 + .../Spec/Tag/FormDivSubmitErrorTemplate.php | 5 + .../Spec/Tag/FormDivSubmitSuccess.php | 5 + .../Spec/Tag/FormDivSubmitSuccessTemplate.php | 5 + src/Validator/Spec/Tag/FormDivSubmitting.php | 5 + .../Spec/Tag/FormDivSubmittingTemplate.php | 5 + src/Validator/Spec/Tag/FormDivVerifyError.php | 5 + .../Spec/Tag/FormDivVerifyErrorTemplate.php | 5 + src/Validator/Spec/Tag/FormMethodGet.php | 5 + .../Spec/Tag/FormMethodGetAmp4email.php | 5 + src/Validator/Spec/Tag/FormMethodPost.php | 5 + .../Spec/Tag/FormMethodPostAmp4email.php | 5 + src/Validator/Spec/Tag/G.php | 5 + src/Validator/Spec/Tag/Glyph.php | 5 + src/Validator/Spec/Tag/Glyphref.php | 5 + src/Validator/Spec/Tag/H1.php | 5 + src/Validator/Spec/Tag/H2.php | 5 + src/Validator/Spec/Tag/H2AmpNestedMenu.php | 5 + src/Validator/Spec/Tag/H3.php | 5 + src/Validator/Spec/Tag/H3AmpNestedMenu.php | 5 + src/Validator/Spec/Tag/H4.php | 5 + src/Validator/Spec/Tag/H4AmpNestedMenu.php | 5 + src/Validator/Spec/Tag/H5.php | 5 + src/Validator/Spec/Tag/H5AmpNestedMenu.php | 5 + src/Validator/Spec/Tag/H6.php | 5 + src/Validator/Spec/Tag/H6AmpNestedMenu.php | 5 + src/Validator/Spec/Tag/Head.php | 5 + .../Spec/Tag/HeadStyleAmp4adsBoilerplate.php | 5 + .../Tag/HeadStyleAmp4emailBoilerplate.php | 5 + .../Spec/Tag/HeadStyleAmpBoilerplate.php | 5 + .../HeadStyleAmpBoilerplateTransformed.php | 5 + src/Validator/Spec/Tag/Header.php | 5 + src/Validator/Spec/Tag/Hgroup.php | 5 + src/Validator/Spec/Tag/Hkern.php | 5 + src/Validator/Spec/Tag/Hr.php | 5 + src/Validator/Spec/Tag/Html.php | 5 + src/Validator/Spec/Tag/HtmlDoctype.php | 5 + src/Validator/Spec/Tag/HtmlDoctypeAmp4ads.php | 5 + src/Validator/Spec/Tag/HtmlTransformed.php | 5 + src/Validator/Spec/Tag/I.php | 5 + .../Spec/Tag/IAmphtmlSizerIntrinsic.php | 5 + .../Spec/Tag/IAmphtmlSizerResponsive.php | 5 + src/Validator/Spec/Tag/Iframe.php | 5 + src/Validator/Spec/Tag/Image.php | 5 + .../Spec/Tag/ImgIAmphtmlIntrinsicSizer.php | 5 + ...mgIAmphtmlIntrinsicSizerAmpStoryPlayer.php | 5 + src/Validator/Spec/Tag/Input.php | 5 + .../Spec/Tag/InputMaskCustomMask.php | 5 + .../Spec/Tag/InputMaskDateDdMmYyyy.php | 5 + .../Spec/Tag/InputMaskDateMmDdYyyy.php | 5 + src/Validator/Spec/Tag/InputMaskDateMmYy.php | 5 + .../Spec/Tag/InputMaskDateYyyyMmDd.php | 5 + .../Spec/Tag/InputMaskPaymentCard.php | 5 + src/Validator/Spec/Tag/InputTypeFile.php | 5 + src/Validator/Spec/Tag/InputTypePassword.php | 5 + src/Validator/Spec/Tag/Ins.php | 5 + src/Validator/Spec/Tag/Kbd.php | 5 + src/Validator/Spec/Tag/Label.php | 5 + src/Validator/Spec/Tag/Legend.php | 5 + src/Validator/Spec/Tag/Li.php | 5 + src/Validator/Spec/Tag/Line.php | 5 + src/Validator/Spec/Tag/Lineargradient.php | 5 + src/Validator/Spec/Tag/LineargradientStop.php | 5 + src/Validator/Spec/Tag/LinkItemprop.php | 5 + src/Validator/Spec/Tag/LinkItempropSameas.php | 5 + src/Validator/Spec/Tag/LinkProperty.php | 5 + src/Validator/Spec/Tag/LinkRel.php | 5 + src/Validator/Spec/Tag/LinkRelCanonical.php | 5 + src/Validator/Spec/Tag/LinkRelManifest.php | 5 + .../Spec/Tag/LinkRelModulepreload.php | 5 + src/Validator/Spec/Tag/LinkRelPreload.php | 5 + .../Spec/Tag/LinkRelStylesheetForFonts.php | 5 + src/Validator/Spec/Tag/Listing.php | 5 + src/Validator/Spec/Tag/Main.php | 5 + src/Validator/Spec/Tag/Mark.php | 5 + src/Validator/Spec/Tag/Marker.php | 5 + src/Validator/Spec/Tag/Mask.php | 5 + src/Validator/Spec/Tag/MetaCharsetUtf8.php | 5 + .../Spec/Tag/MetaHttpEquivContentLanguage.php | 5 + .../Tag/MetaHttpEquivContentScriptType.php | 5 + .../Tag/MetaHttpEquivContentStyleType.php | 5 + .../Spec/Tag/MetaHttpEquivContentType.php | 5 + .../Spec/Tag/MetaHttpEquivImagetoolbar.php | 5 + .../Spec/Tag/MetaHttpEquivOriginTrial.php | 5 + .../Spec/Tag/MetaHttpEquivPicsLabel.php | 5 + .../Spec/Tag/MetaHttpEquivResourceType.php | 5 + .../Tag/MetaHttpEquivXDnsPrefetchControl.php | 5 + .../Spec/Tag/MetaHttpEquivXUaCompatible.php | 5 + .../Spec/Tag/MetaNameAmp3pIframeSrc.php | 5 + src/Validator/Spec/Tag/MetaNameAmp4adsId.php | 5 + .../Spec/Tag/MetaNameAmp4adsVars.php | 5 + .../Spec/Tag/MetaNameAmpAdDoubleclickSra.php | 5 + .../Spec/Tag/MetaNameAmpAdEnableRefresh.php | 5 + .../Spec/Tag/MetaNameAmpConsentBlocking.php | 5 + .../Tag/MetaNameAmpCtaLandingPageType.php | 5 + src/Validator/Spec/Tag/MetaNameAmpCtaType.php | 5 + src/Validator/Spec/Tag/MetaNameAmpCtaUrl.php | 5 + .../Spec/Tag/MetaNameAmpExperimentToken.php | 5 + .../Spec/Tag/MetaNameAmpExperimentsOptIn.php | 5 + .../Tag/MetaNameAmpGoogleClientidIdApi.php | 5 + .../MetaNameAmpLinkVariableAllowedOrigin.php | 5 + .../Spec/Tag/MetaNameAmpListLoadMore.php | 5 + .../Spec/Tag/MetaNameAmpRecaptchaInput.php | 5 + .../Spec/Tag/MetaNameAmpScriptSrc.php | 5 + .../Tag/MetaNameAmpStoryGeneratorName.php | 5 + .../Tag/MetaNameAmpStoryGeneratorVersion.php | 5 + .../Spec/Tag/MetaNameAmpToAmpNavigation.php | 5 + src/Validator/Spec/Tag/MetaNameAndContent.php | 5 + .../Spec/Tag/MetaNameAppleItunesApp.php | 5 + src/Validator/Spec/Tag/MetaNameViewport.php | 5 + src/Validator/Spec/Tag/Metadata.php | 5 + src/Validator/Spec/Tag/Meter.php | 5 + src/Validator/Spec/Tag/Multicol.php | 5 + src/Validator/Spec/Tag/Nav.php | 5 + src/Validator/Spec/Tag/Nextid.php | 5 + src/Validator/Spec/Tag/Nobr.php | 5 + src/Validator/Spec/Tag/Noscript.php | 5 + .../Tag/NoscriptEnclosureForBoilerplate.php | 5 + ...riptEnclosureForBoilerplateTransformed.php | 5 + src/Validator/Spec/Tag/NoscriptImg.php | 5 + .../Spec/Tag/NoscriptStyleAmpBoilerplate.php | 5 + ...NoscriptStyleAmpBoilerplateTransformed.php | 5 + src/Validator/Spec/Tag/OP.php | 5 + src/Validator/Spec/Tag/Ol.php | 5 + src/Validator/Spec/Tag/Optgroup.php | 5 + src/Validator/Spec/Tag/Option.php | 5 + src/Validator/Spec/Tag/Output.php | 5 + src/Validator/Spec/Tag/P.php | 5 + src/Validator/Spec/Tag/Path.php | 5 + src/Validator/Spec/Tag/Pattern.php | 5 + src/Validator/Spec/Tag/Picture.php | 5 + src/Validator/Spec/Tag/PictureSource.php | 5 + src/Validator/Spec/Tag/Polygon.php | 5 + src/Validator/Spec/Tag/Polyline.php | 5 + src/Validator/Spec/Tag/Pre.php | 5 + src/Validator/Spec/Tag/Progress.php | 5 + src/Validator/Spec/Tag/Q.php | 5 + src/Validator/Spec/Tag/Radialgradient.php | 5 + src/Validator/Spec/Tag/RadialgradientStop.php | 5 + src/Validator/Spec/Tag/Rb.php | 5 + src/Validator/Spec/Tag/Rect.php | 5 + src/Validator/Spec/Tag/Rp.php | 5 + src/Validator/Spec/Tag/Rt.php | 5 + src/Validator/Spec/Tag/Rtc.php | 5 + src/Validator/Spec/Tag/Ruby.php | 5 + src/Validator/Spec/Tag/S.php | 5 + src/Validator/Spec/Tag/Samp.php | 5 + src/Validator/Spec/Tag/ScriptAmp3dGltf.php | 10 + src/Validator/Spec/Tag/ScriptAmp3qPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpAccess.php | 10 + .../Spec/Tag/ScriptAmpAccessLaterpay.php | 10 + .../Spec/Tag/ScriptAmpAccessPoool.php | 10 + .../Spec/Tag/ScriptAmpAccessScroll.php | 10 + src/Validator/Spec/Tag/ScriptAmpAccordion.php | 10 + .../Spec/Tag/ScriptAmpAccordion2.php | 10 + .../Spec/Tag/ScriptAmpActionMacro.php | 10 + src/Validator/Spec/Tag/ScriptAmpAdCustom.php | 10 + src/Validator/Spec/Tag/ScriptAmpAdExit.php | 10 + src/Validator/Spec/Tag/ScriptAmpAddthis.php | 10 + src/Validator/Spec/Tag/ScriptAmpAnalytics.php | 10 + src/Validator/Spec/Tag/ScriptAmpAnim.php | 10 + src/Validator/Spec/Tag/ScriptAmpAnimation.php | 10 + .../Spec/Tag/ScriptAmpApesterMedia.php | 10 + src/Validator/Spec/Tag/ScriptAmpAppBanner.php | 10 + src/Validator/Spec/Tag/ScriptAmpAudio.php | 10 + src/Validator/Spec/Tag/ScriptAmpAutoAds.php | 10 + .../Spec/Tag/ScriptAmpAutocomplete.php | 10 + .../Spec/Tag/ScriptAmpBaseCarousel.php | 10 + src/Validator/Spec/Tag/ScriptAmpBeopinion.php | 10 + src/Validator/Spec/Tag/ScriptAmpBind.php | 10 + .../Spec/Tag/ScriptAmpBodymovinAnimation.php | 10 + .../Spec/Tag/ScriptAmpBridPlayer.php | 10 + .../Spec/Tag/ScriptAmpBrightcove.php | 10 + .../Spec/Tag/ScriptAmpBysideContent.php | 10 + src/Validator/Spec/Tag/ScriptAmpCacheUrl.php | 10 + .../Spec/Tag/ScriptAmpCallTracking.php | 10 + src/Validator/Spec/Tag/ScriptAmpCarousel.php | 10 + .../Spec/Tag/ScriptAmpConnatixPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpConsent.php | 10 + .../Spec/Tag/ScriptAmpDailymotion.php | 10 + .../Spec/Tag/ScriptAmpDateCountdown.php | 10 + .../Spec/Tag/ScriptAmpDateDisplay.php | 10 + .../Spec/Tag/ScriptAmpDatePicker.php | 10 + .../Spec/Tag/ScriptAmpDelightPlayer.php | 10 + .../Spec/Tag/ScriptAmpDynamicCssClasses.php | 10 + .../Spec/Tag/ScriptAmpEmbedlyCard.php | 10 + .../Spec/Tag/ScriptAmpExperiment.php | 10 + src/Validator/Spec/Tag/ScriptAmpFacebook.php | 10 + .../Spec/Tag/ScriptAmpFacebookComments.php | 10 + .../Spec/Tag/ScriptAmpFacebookLike.php | 10 + .../Spec/Tag/ScriptAmpFacebookPage.php | 10 + src/Validator/Spec/Tag/ScriptAmpFitText.php | 10 + src/Validator/Spec/Tag/ScriptAmpFitText2.php | 10 + src/Validator/Spec/Tag/ScriptAmpFont.php | 10 + src/Validator/Spec/Tag/ScriptAmpForm.php | 10 + .../Spec/Tag/ScriptAmpFxCollection.php | 10 + .../Spec/Tag/ScriptAmpFxFlyingCarpet.php | 10 + src/Validator/Spec/Tag/ScriptAmpGeo.php | 10 + src/Validator/Spec/Tag/ScriptAmpGfycat.php | 10 + src/Validator/Spec/Tag/ScriptAmpGist.php | 10 + .../Tag/ScriptAmpGoogleAssistantAssistjs.php | 10 + .../Spec/Tag/ScriptAmpGoogleDocumentEmbed.php | 10 + .../Spec/Tag/ScriptAmpGwdAnimation.php | 10 + src/Validator/Spec/Tag/ScriptAmpHulu.php | 10 + src/Validator/Spec/Tag/ScriptAmpIframe.php | 10 + src/Validator/Spec/Tag/ScriptAmpIframely.php | 10 + src/Validator/Spec/Tag/ScriptAmpImaVideo.php | 10 + .../Spec/Tag/ScriptAmpImageLightbox.php | 10 + .../Spec/Tag/ScriptAmpImageSlider.php | 10 + src/Validator/Spec/Tag/ScriptAmpImgur.php | 10 + .../Spec/Tag/ScriptAmpInlineGallery.php | 10 + src/Validator/Spec/Tag/ScriptAmpInputmask.php | 10 + src/Validator/Spec/Tag/ScriptAmpInstagram.php | 10 + .../Spec/Tag/ScriptAmpInstagram2.php | 10 + .../Tag/ScriptAmpInstallServiceworker.php | 10 + src/Validator/Spec/Tag/ScriptAmpIzlesene.php | 10 + src/Validator/Spec/Tag/ScriptAmpJwplayer.php | 10 + .../Spec/Tag/ScriptAmpKalturaPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpLightbox.php | 10 + src/Validator/Spec/Tag/ScriptAmpLightbox2.php | 10 + .../Spec/Tag/ScriptAmpLightboxGallery.php | 10 + .../Spec/Tag/ScriptAmpLinkRewriter.php | 10 + src/Validator/Spec/Tag/ScriptAmpList.php | 10 + src/Validator/Spec/Tag/ScriptAmpLiveList.php | 10 + src/Validator/Spec/Tag/ScriptAmpMathml.php | 10 + src/Validator/Spec/Tag/ScriptAmpMegaMenu.php | 10 + src/Validator/Spec/Tag/ScriptAmpMegaphone.php | 10 + .../Spec/Tag/ScriptAmpMinuteMediaPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpMowplayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpMraid.php | 10 + src/Validator/Spec/Tag/ScriptAmpMustache.php | 10 + .../Spec/Tag/ScriptAmpNestedMenu.php | 10 + src/Validator/Spec/Tag/ScriptAmpNextPage.php | 10 + .../Spec/Tag/ScriptAmpNexxtvPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpO2Player.php | 10 + src/Validator/Spec/Tag/ScriptAmpOnerror.php | 5 + .../Spec/Tag/ScriptAmpOnetapGoogle.php | 10 + .../Spec/Tag/ScriptAmpOoyalaPlayer.php | 10 + .../Spec/Tag/ScriptAmpOrientationObserver.php | 10 + src/Validator/Spec/Tag/ScriptAmpPanZoom.php | 10 + src/Validator/Spec/Tag/ScriptAmpPinterest.php | 10 + src/Validator/Spec/Tag/ScriptAmpPlaybuzz.php | 10 + .../Spec/Tag/ScriptAmpPositionObserver.php | 10 + .../Spec/Tag/ScriptAmpPowrPlayer.php | 10 + .../Spec/Tag/ScriptAmpReachPlayer.php | 10 + .../Spec/Tag/ScriptAmpRecaptchaInput.php | 10 + .../Spec/Tag/ScriptAmpRedbullPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpReddit.php | 10 + .../Spec/Tag/ScriptAmpRiddleQuiz.php | 10 + src/Validator/Spec/Tag/ScriptAmpScript.php | 10 + src/Validator/Spec/Tag/ScriptAmpSelector.php | 10 + src/Validator/Spec/Tag/ScriptAmpSelector2.php | 10 + src/Validator/Spec/Tag/ScriptAmpSidebar.php | 10 + src/Validator/Spec/Tag/ScriptAmpSkimlinks.php | 10 + src/Validator/Spec/Tag/ScriptAmpSlides.php | 10 + .../Spec/Tag/ScriptAmpSmartlinks.php | 10 + .../Spec/Tag/ScriptAmpSocialShare.php | 10 + .../Spec/Tag/ScriptAmpSocialShare2.php | 10 + .../Spec/Tag/ScriptAmpSoundcloud.php | 10 + .../Spec/Tag/ScriptAmpSpringboardPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpStickyAd.php | 10 + src/Validator/Spec/Tag/ScriptAmpStory.php | 10 + src/Validator/Spec/Tag/ScriptAmpStory360.php | 10 + .../Spec/Tag/ScriptAmpStoryAutoAds.php | 10 + .../Spec/Tag/ScriptAmpStoryAutoAnalytics.php | 10 + .../Spec/Tag/ScriptAmpStoryInteractive.php | 10 + .../Spec/Tag/ScriptAmpStoryPanningMedia.php | 10 + .../Spec/Tag/ScriptAmpStoryPlayer.php | 10 + .../Spec/Tag/ScriptAmpStreamGallery.php | 10 + .../Spec/Tag/ScriptAmpSubscriptions.php | 10 + .../Spec/Tag/ScriptAmpSubscriptionsGoogle.php | 10 + src/Validator/Spec/Tag/ScriptAmpTimeago.php | 10 + .../Spec/Tag/ScriptAmpTruncateText.php | 10 + src/Validator/Spec/Tag/ScriptAmpTwitter.php | 10 + .../Spec/Tag/ScriptAmpUserNotification.php | 10 + src/Validator/Spec/Tag/ScriptAmpVideo.php | 10 + src/Validator/Spec/Tag/ScriptAmpVideo2.php | 10 + .../Spec/Tag/ScriptAmpVideoDocking.php | 10 + .../Spec/Tag/ScriptAmpVideoIframe.php | 10 + .../Spec/Tag/ScriptAmpVideoIframe2.php | 10 + src/Validator/Spec/Tag/ScriptAmpVimeo.php | 10 + src/Validator/Spec/Tag/ScriptAmpVimeo2.php | 10 + src/Validator/Spec/Tag/ScriptAmpVine.php | 10 + .../Spec/Tag/ScriptAmpViqeoPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpVk.php | 10 + src/Validator/Spec/Tag/ScriptAmpWebPush.php | 10 + .../Spec/Tag/ScriptAmpWistiaPlayer.php | 10 + src/Validator/Spec/Tag/ScriptAmpYotpo.php | 10 + src/Validator/Spec/Tag/ScriptAmpYoutube.php | 10 + src/Validator/Spec/Tag/ScriptAmpYoutube2.php | 10 + ...riptCustomElementAmpAccordionAmp4email.php | 10 + ...tCustomElementAmpAutocompleteAmp4email.php | 10 + .../ScriptCustomElementAmpBindAmp4email.php | 10 + ...criptCustomElementAmpCarouselAmp4email.php | 10 + ...ScriptCustomElementAmpFitTextAmp4email.php | 10 + .../ScriptCustomElementAmpFormAmp4email.php | 10 + ...CustomElementAmpImageLightboxAmp4email.php | 10 + .../ScriptCustomElementAmpLightboxAmp4ads.php | 10 + ...criptCustomElementAmpLightboxAmp4email.php | 10 + .../ScriptCustomElementAmpListAmp4email.php | 10 + ...criptCustomElementAmpSelectorAmp4email.php | 10 + ...ScriptCustomElementAmpSidebarAmp4email.php | 10 + ...ScriptCustomElementAmpTimeagoAmp4email.php | 10 + ...ScriptCustomTemplateAmpMustacheAmp4ads.php | 10 + ...riptCustomTemplateAmpMustacheAmp4email.php | 10 + src/Validator/Spec/Tag/ScriptIdAmpRtc.php | 5 + .../Spec/Tag/ScriptTypeApplicationLdJson.php | 5 + .../Spec/Tag/ScriptTypeTextPlain.php | 5 + .../Spec/Tag/ScriptTypeTextPlainAmp4email.php | 5 + src/Validator/Spec/Tag/Section.php | 5 + src/Validator/Spec/Tag/SectionAmp4email.php | 5 + src/Validator/Spec/Tag/Select.php | 5 + src/Validator/Spec/Tag/Slot.php | 5 + src/Validator/Spec/Tag/Small.php | 5 + src/Validator/Spec/Tag/Solidcolor.php | 5 + src/Validator/Spec/Tag/Spacer.php | 5 + src/Validator/Spec/Tag/Span.php | 5 + src/Validator/Spec/Tag/SpanAmpNestedMenu.php | 5 + .../Spec/Tag/SpanSwgAmpCacheNonce.php | 5 + src/Validator/Spec/Tag/Strike.php | 5 + src/Validator/Spec/Tag/Strong.php | 5 + src/Validator/Spec/Tag/StyleAmpCustom.php | 5 + .../Spec/Tag/StyleAmpCustomAmp4ads.php | 5 + .../Spec/Tag/StyleAmpCustomAmp4email.php | 5 + .../Spec/Tag/StyleAmpCustomCssStrict.php | 5 + .../Spec/Tag/StyleAmpCustomLengthCheck.php | 5 + src/Validator/Spec/Tag/StyleAmpKeyframes.php | 5 + .../Spec/Tag/StyleAmpRuntimeTransformed.php | 5 + src/Validator/Spec/Tag/Sub.php | 5 + .../Tag/SubscriptionsScriptCiphertext.php | 5 + ...riptionsSectionContentSwgAmpCacheNonce.php | 5 + src/Validator/Spec/Tag/Summary.php | 5 + src/Validator/Spec/Tag/Sup.php | 5 + src/Validator/Spec/Tag/Svg.php | 5 + src/Validator/Spec/Tag/SvgTitle.php | 5 + src/Validator/Spec/Tag/Switch_.php | 5 + src/Validator/Spec/Tag/Symbol.php | 5 + src/Validator/Spec/Tag/Table.php | 5 + src/Validator/Spec/Tag/Tbody.php | 5 + src/Validator/Spec/Tag/Td.php | 5 + src/Validator/Spec/Tag/Template.php | 5 + src/Validator/Spec/Tag/TemplateAmp4email.php | 5 + src/Validator/Spec/Tag/Text.php | 5 + src/Validator/Spec/Tag/Textarea.php | 5 + src/Validator/Spec/Tag/Textpath.php | 5 + src/Validator/Spec/Tag/Tfoot.php | 5 + src/Validator/Spec/Tag/Th.php | 5 + src/Validator/Spec/Tag/Thead.php | 5 + src/Validator/Spec/Tag/Time.php | 5 + src/Validator/Spec/Tag/Title.php | 5 + src/Validator/Spec/Tag/TitleAmp4email.php | 5 + src/Validator/Spec/Tag/Tr.php | 5 + src/Validator/Spec/Tag/Tref.php | 5 + src/Validator/Spec/Tag/Tspan.php | 5 + src/Validator/Spec/Tag/Tt.php | 5 + src/Validator/Spec/Tag/U.php | 5 + src/Validator/Spec/Tag/Ul.php | 5 + src/Validator/Spec/Tag/Use_.php | 5 + src/Validator/Spec/Tag/Var_.php | 5 + src/Validator/Spec/Tag/Video.php | 5 + src/Validator/Spec/Tag/VideoSource.php | 5 + src/Validator/Spec/Tag/VideoTrack.php | 5 + .../Spec/Tag/VideoTrackKindSubtitles.php | 5 + src/Validator/Spec/Tag/View.php | 5 + src/Validator/Spec/Tag/Vkern.php | 5 + src/Validator/Spec/Tag/Wbr.php | 5 + tests/Exception/InvalidCssNameTest.php | 26 -- tests/Exception/InvalidCssRulesetNameTest.php | 26 ++ tests/Validator/Spec/AttributeListTest.php | 2 +- tests/Validator/Spec/CssRulesetTest.php | 66 ++++++ tests/Validator/Spec/DeclarationListTest.php | 2 +- .../Validator/Spec/DescendantTagListTest.php | 2 +- .../Spec/Section/CssSpecRulesTest.php | 79 +++++++ tests/Validator/Spec/Section/CssTest.php | 58 ----- tests/Validator/Spec/TagTest.php | 16 +- tests/Validator/SpecTest.php | 6 +- .../src/ValidatorFixtures/DummyCssRuleset.php | 19 ++ 721 files changed, 5500 insertions(+), 545 deletions(-) delete mode 100644 bin/src/Validator/SpecGenerator/Section/Css.php create mode 100644 bin/src/Validator/SpecGenerator/Section/CssRulesets.php delete mode 100644 bin/src/Validator/SpecGenerator/Template/Css.php create mode 100644 bin/src/Validator/SpecGenerator/Template/CssRuleset.php create mode 100644 bin/src/Validator/SpecGenerator/Template/CssRulesets.php delete mode 100644 src/Exception/InvalidCssName.php create mode 100644 src/Exception/InvalidCssRulesetName.php create mode 100644 src/Validator/Spec/CssRuleset.php create mode 100644 src/Validator/Spec/CssRuleset/Amp4ads.php create mode 100644 src/Validator/Spec/CssRuleset/Amp4emailDataCssStrict.php create mode 100644 src/Validator/Spec/CssRuleset/Amp4emailNoDataCssStrict.php create mode 100644 src/Validator/Spec/CssRuleset/AmpNoTransformed.php create mode 100644 src/Validator/Spec/CssRuleset/AmpTransformed.php delete mode 100644 src/Validator/Spec/Section/Css.php create mode 100644 src/Validator/Spec/Section/CssRulesets.php delete mode 100644 tests/Exception/InvalidCssNameTest.php create mode 100644 tests/Exception/InvalidCssRulesetNameTest.php create mode 100644 tests/Validator/Spec/CssRulesetTest.php create mode 100644 tests/Validator/Spec/Section/CssSpecRulesTest.php delete mode 100644 tests/Validator/Spec/Section/CssTest.php create mode 100644 tests/src/ValidatorFixtures/DummyCssRuleset.php diff --git a/bin/src/Validator/SpecGenerator.php b/bin/src/Validator/SpecGenerator.php index b394c4712..24c9d5b05 100644 --- a/bin/src/Validator/SpecGenerator.php +++ b/bin/src/Validator/SpecGenerator.php @@ -47,10 +47,11 @@ public function generate($jsonSpec, $rootNamespace, $destination) $jsonSpec = $this->adaptJsonSpec($jsonSpec); $specRuleKeys = $this->collectSpecRuleKeys($jsonSpec); - $this->generateEntityClass('Tag', $fileManager); $this->generateEntityClass('AttributeList', $fileManager); $this->generateEntityClass('DeclarationList', $fileManager); $this->generateEntityClass('DescendantTagList', $fileManager); + $this->generateEntityClass('CssRuleset', $fileManager); + $this->generateEntityClass('Tag', $fileManager); $this->generateEntityClass('TagWithExtensionSpec', $fileManager, 'interface'); $this->generateEntityClass('ExtensionSpec', $fileManager, 'trait'); $this->generateEntityClass('IterableSection', $fileManager, 'interface'); @@ -217,6 +218,9 @@ private function generateErrorCodeInterface($jsonSpec, FileManager $fileManager) */ private function adaptJsonSpec($jsonSpec) { + $jsonSpec['cssRulesets'] = $jsonSpec['cssRulesets']; + unset($jsonSpec['cssRulesets']); + $jsonSpec['attributeLists'] = $jsonSpec['attrLists']; unset($jsonSpec['attrLists']); @@ -267,7 +271,7 @@ private function collectSpecRuleKeys($jsonSpec) } } break; - case 'css': + case 'cssRulesets': case 'doc': case 'errors': foreach ($sectionData as $ruleset) { diff --git a/bin/src/Validator/SpecGenerator/FileManager.php b/bin/src/Validator/SpecGenerator/FileManager.php index 264107ecb..7e1e1e2fd 100644 --- a/bin/src/Validator/SpecGenerator/FileManager.php +++ b/bin/src/Validator/SpecGenerator/FileManager.php @@ -61,6 +61,7 @@ public function ensureDirectoriesExist() $this->destination, "{$this->destination}/Spec", "{$this->destination}/Spec/AttributeList", + "{$this->destination}/Spec/CssRuleset", "{$this->destination}/Spec/DeclarationList", "{$this->destination}/Spec/DescendantTagList", "{$this->destination}/Spec/Section", @@ -291,6 +292,14 @@ private function getFullyQualifiedName($class) return $class; } + if (strpos($class, 'Tag\\') === 0) { + return "AmpProject\\Validator\\Spec\\Tag"; + } + + if (strpos($class, 'CssSpecRule\\') === 0) { + return "AmpProject\\Validator\\Spec\\CssSpecRule"; + } + if (strpos($class, 'AttributeList\\') === 0) { return "AmpProject\\Validator\\Spec\\AttributeList"; } @@ -303,11 +312,23 @@ private function getFullyQualifiedName($class) return "AmpProject\\Validator\\Spec\\DescendantTagList"; } - if (in_array($class, ['AttributeList', 'DeclarationList', 'DescendantTagList', 'SpecRule'], true)) { + if ( + in_array( + $class, + ['AttributeList', 'CssRuleset', 'DeclarationList', 'DescendantTagList', 'SpecRule'], + true + ) + ) { return "AmpProject\\Validator\\Spec\\{$class}"; } - if (in_array($class, ['AttributeLists', 'DeclarationLists', 'DescendantTagLists'], true)) { + if ( + in_array( + $class, + ['AttributeLists', 'CssRulesets', 'DeclarationLists', 'DescendantTagLists', 'Tags'], + true + ) + ) { return "AmpProject\\Validator\\Spec\\Section\\{$class}"; } diff --git a/bin/src/Validator/SpecGenerator/Section/Css.php b/bin/src/Validator/SpecGenerator/Section/Css.php deleted file mode 100644 index 1eea7a6bc..000000000 --- a/bin/src/Validator/SpecGenerator/Section/Css.php +++ /dev/null @@ -1,132 +0,0 @@ - - */ - private $css = []; - - /** - * Dumper instance to use. - * - * @var Dumper - */ - private $dumper; - - /** - * Css constructor. - */ - public function __construct() - { - $this->dumper = new Dumper(); - } - - /** - * Process a section. - * - * @param FileManager $fileManager FileManager instance to use. - * @param array $spec Associative array of spec data that was decoded from the JSON file. - * @param PhpNamespace $namespace Namespace object of the section. - * @param ClassType $class Class object of the section. - * @return void - */ - public function process(FileManager $fileManager, $spec, PhpNamespace $namespace, ClassType $class) - { - $namespace->addUse('AmpProject\\Attribute'); - $namespace->addUse('AmpProject\\Format'); - - $tagsTemplateClass = ClassType::withBodiesFrom(Template\Css::class); - foreach ($tagsTemplateClass->getMethods() as $method) { - $class->addMember($method); - } - - $class->addProperty('css') - ->setPrivate() - ->addComment('@var array'); - - $class->addProperty('byFormat') - ->setPrivate() - ->addComment('@var array'); - - $byFormat = []; - - $constructor = $class->addMethod('__construct'); - - $constructor->addBody('$this->css = ['); - - foreach ($spec as $ruleSet) { - $name = $this->getNameForRuleSet($ruleSet); - - $constructor->addBody(" '{$name}' => {$this->dumper->dump($ruleSet, 1)},"); - - if (array_key_exists('htmlFormat', $ruleSet)) { - foreach ($ruleSet['htmlFormat'] as $format) { - if (!array_key_exists($format, $byFormat)) { - $byFormat[$format] = []; - } - - $byFormat[$format][] = $name; - } - } - } - $constructor->addBody('];'); - - $constructor->addBody('$this->byFormat = ['); - foreach ($byFormat as $format => $ruleSetNames) { - $constant = $this->getFormatConstant($this->getConstantName($format)); - $constructor->addBody(" {$constant} => ["); - foreach ($ruleSetNames as $ruleSetName) { - $constructor->addBody(" \$this->css['{$ruleSetName}'],"); - } - $constructor->addBody(' ],'); - } - $constructor->addBody('];'); - } - - /** - * Get the name for a given ruleset. - * - * @param array $ruleSet Rule set to get the name for. - * @return string Name to use for the rule set. - */ - private function getNameForRuleSet($ruleSet) - { - static $index = 1; - - if (!array_key_exists('htmlFormat', $ruleSet) || count($ruleSet['htmlFormat']) === 0) { - $name = "ruleset-{$index}"; - $index++; - - return $name; - } - - $name = $ruleSet['htmlFormat'][0]; - - if (array_key_exists('enabledBy', $ruleSet) && count($ruleSet['enabledBy']) > 0) { - $name .= " ({$ruleSet['enabledBy'][0]})"; - } - - if (array_key_exists('disabledBy', $ruleSet) && count($ruleSet['disabledBy']) > 0) { - $name .= " (no-{$ruleSet['disabledBy'][0]})"; - } - - return $name; - } -} diff --git a/bin/src/Validator/SpecGenerator/Section/CssRulesets.php b/bin/src/Validator/SpecGenerator/Section/CssRulesets.php new file mode 100644 index 000000000..8ea3b7cce --- /dev/null +++ b/bin/src/Validator/SpecGenerator/Section/CssRulesets.php @@ -0,0 +1,186 @@ + + */ + private $css = []; + + /** + * Dumper instance to use. + * + * @var Dumper + */ + private $dumper; + + /** + * CssRulesets constructor. + */ + public function __construct() + { + $this->dumper = new Dumper(); + } + + /** + * Process a section. + * + * @param FileManager $fileManager FileManager instance to use. + * @param array $spec Associative array of spec data that was decoded from the JSON file. + * @param PhpNamespace $namespace Namespace object of the section. + * @param ClassType $class Class object of the section. + * @return void + */ + public function process(FileManager $fileManager, $spec, PhpNamespace $namespace, ClassType $class) + { + $cssRulesets = []; + $byFormat = []; + + $namespace->addUse("LogicException"); + $namespace->addUse("{$fileManager->getRootNamespace()}\\Spec\\IterableSection"); + $namespace->addUse("{$fileManager->getRootNamespace()}\\Spec\\Iteration"); + $namespace->addUse("{$fileManager->getRootNamespace()}\\Spec\\CssRuleset"); + + $cssRulesetsTemplateClass = ClassType::withBodiesFrom(Template\CssRulesets::class); + foreach ($cssRulesetsTemplateClass->getMethods() as $method) { + $class->addMember($method); + } + + $class->addImplement("{$fileManager->getRootNamespace()}\\Spec\\IterableSection"); + $class->addTrait( + "{$fileManager->getRootNamespace()}\\Spec\\Iteration", + ['Iteration::current as parentCurrent'] + ); + + $class->addProperty('cssRulesetsCache') + ->setPrivate() + ->addComment("Cache of instantiated CssRuleset objects.\n\n@var array") + ->setValue([]); + + $class->addProperty('iterationArray') + ->setPrivate() + ->addComment("Array used for storing the iteration index in.\n\n@var array|null"); + + foreach ($spec as $attributes) { + $cssRulesetId = $this->getNameForRuleset($attributes); + $cssRulesets[$cssRulesetId] = $attributes; + } + + $cssRulesetIds = array_keys($cssRulesets); + natcasesort($cssRulesetIds); + + $rulesets = []; + foreach ($cssRulesetIds as $cssRulesetId) { + $cssRulesetIdString = "CssRuleset\\{$this->getClassNameFromId($cssRulesetId)}::ID"; + + $className = $this->generateCssRulesetSpecificClass( + $cssRulesetId, + $cssRulesets[$cssRulesetId], + $fileManager + ); + + $rulesets["CssRuleset\\{$className}::ID"] = "CssRuleset\\{$className}::class"; + + if (array_key_exists('htmlFormat', $cssRulesets[$cssRulesetId])) { + $formats = $cssRulesets[$cssRulesetId]['htmlFormat']; + foreach ($formats as $format) { + $format = $this->getFormatConstant($this->getConstantName($format)); + if (!array_key_exists($format, $byFormat)) { + $byFormat[$format] = []; + } + $byFormat[$format][] = $cssRulesetIdString; + } + } + } + + $class->addConstant('CSS_RULESETS', $rulesets) + ->addComment("Mapping of CSS ruleset ID to CSS ruleset implementation.\n\n@var array"); + + $class->addConstant('BY_FORMAT', $byFormat) + ->addComment( + "Mapping of AMP format to array of CSS ruleset IDs.\n\n" + . "This is used to optimize querying by AMP format.\n\n" + . "@var array>" + ); + } + + /** + * Get the name for a given ruleset. + * + * @param array $ruleSet Rule set to get the name for. + * @return string Name to use for the rule set. + */ + private function getNameForRuleSet($ruleSet) + { + static $index = 1; + + if (!array_key_exists('htmlFormat', $ruleSet) || count($ruleSet['htmlFormat']) === 0) { + $name = "ruleset-{$index}"; + $index++; + + return $name; + } + + $name = $ruleSet['htmlFormat'][0]; + + if (array_key_exists('enabledBy', $ruleSet) && count($ruleSet['enabledBy']) > 0) { + $name .= " ({$ruleSet['enabledBy'][0]})"; + } + + if (array_key_exists('disabledBy', $ruleSet) && count($ruleSet['disabledBy']) > 0) { + $name .= " (no-{$ruleSet['disabledBy'][0]})"; + } + + return $name; + } + + /** + * Generate the CSS ruleset-specific class file. + * + * @param string $ruleset ID of the CSS ruleset to generate the class for. + * @param array $jsonSpec Array of spec data for the CSS ruleset. + * @param FileManager $fileManager File manager instance to use. + */ + private function generateCssRulesetSpecificClass($ruleset, $jsonSpec, FileManager $fileManager) + { + list($file, $namespace) = $fileManager->createNewNamespacedFile('Spec\\CssRuleset'); + + $className = $this->getClassNameFromId($ruleset); + + $namespace->addUse("{$fileManager->getRootNamespace()}\\Spec\\SpecRule"); + $namespace->addUse("{$fileManager->getRootNamespace()}\\Spec\\CssRuleset"); + + /** @var ClassType $class */ + $class = $namespace->addClass($className) + ->setFinal() + ->addExtend('AmpProject\Validator\Spec\CssRuleset'); + + $class->addConstant('ID', $ruleset) + ->addComment("ID of the ruleset.\n\n@var string"); + + $class->addConstant('SPEC', $jsonSpec) + ->addComment("Array of spec rules.\n\n@var array"); + + $fileManager->saveFile($file, "Spec/CssRuleset/{$className}.php"); + + return $className; + } +} diff --git a/bin/src/Validator/SpecGenerator/Section/Tags.php b/bin/src/Validator/SpecGenerator/Section/Tags.php index 8055b2606..8b0944438 100644 --- a/bin/src/Validator/SpecGenerator/Section/Tags.php +++ b/bin/src/Validator/SpecGenerator/Section/Tags.php @@ -271,7 +271,8 @@ private function generateTagSpecificClass($tagId, $jsonSpec, FileManager $fileMa $extensionSpec = $jsonSpec['extensionSpec']; $jsonSpec['extensionSpec'] = "self::EXTENSION_SPEC"; - $class->addConstant('EXTENSION_SPEC', $extensionSpec); + $class->addConstant('EXTENSION_SPEC', $extensionSpec) + ->addComment("Array of extension spec rules.\n\n@var array"); $namespace->addUse("{$fileManager->getRootNamespace()}\\Spec\\TagWithExtensionSpec"); $class->addImplement("{$fileManager->getRootNamespace()}\\Spec\\TagWithExtensionSpec"); @@ -279,7 +280,8 @@ private function generateTagSpecificClass($tagId, $jsonSpec, FileManager $fileMa $class->addTrait("{$fileManager->getRootNamespace()}\\Spec\\ExtensionSpec"); } - $class->addConstant('SPEC', $jsonSpec); + $class->addConstant('SPEC', $jsonSpec) + ->addComment("Array of spec rules.\n\n@var array"); $fileManager->saveFile($file, "Spec/Tag/{$className}.php"); } diff --git a/bin/src/Validator/SpecGenerator/Template/Css.php b/bin/src/Validator/SpecGenerator/Template/Css.php deleted file mode 100644 index 0a6281b51..000000000 --- a/bin/src/Validator/SpecGenerator/Template/Css.php +++ /dev/null @@ -1,50 +0,0 @@ - */ - private $css = []; - - /** @var array */ - private $byFormat = []; - - /** - * Get the CSS spec for a given name. - * - * @param string $name Format to get the CSS spec for. - * @return array CSS rule set. - */ - public function getByName($name) - { - if (!array_key_exists($name, $this->css)) { - throw InvalidCssName::forCssName($name); - } - - return $this->css[$name]; - } - - /** - * Get the CSS spec for a given format. - * - * @param string $format Format to get the CSS spec for. - * @return array Array of CSS rule sets. - */ - public function getByFormat($format) - { - if (!in_array($format, Amp::FORMATS, true)) { - throw InvalidFormat::forFormat($format); - } - - if (!array_key_exists($format, $this->byFormat)) { - return []; - } - - return $this->byFormat[$format]; - } -} diff --git a/bin/src/Validator/SpecGenerator/Template/CssRuleset.php b/bin/src/Validator/SpecGenerator/Template/CssRuleset.php new file mode 100644 index 000000000..a76ed4026 --- /dev/null +++ b/bin/src/Validator/SpecGenerator/Template/CssRuleset.php @@ -0,0 +1,111 @@ + $declarationListSvg + * @property-read array $disabledBy + * @property-read array $enabledBy + * @property-read array $fontUrlSpec + * @property-read array $htmlFormat + * @property-read array $imageUrlSpec + */ +class CssRuleset +{ + + /** + * ID of the CSS ruleset. + * + * This needs to be overridden in the extending class. + * + * @var string + */ + const ID = '[cssRulesets ruleset base class]'; + + /** + * Spec data of the CSS ruleset. + * + * @var array + */ + const SPEC = []; + + /** + * Get the ID of the CSS ruleset. + * + * @return string ID of the CSS ruleset. + */ + public function getId() + { + return static::ID; + } + + + /** + * Check whether a given spec rule is present. + * + * @param string $cssRulesetName Name of the spec rule to check for. + * @return bool Whether the given spec rule is contained in the spec. + */ + public function has($cssRulesetName) + { + return array_key_exists($cssRulesetName, static::SPEC); + } + + /** + * Get a specific spec rule. + * + * @param string $cssRulesetName Name of the spec rule to get. + * @return array Spec rule data that was requested. + */ + public function get($cssRulesetName) + { + if (!$this->has($cssRulesetName)) { + throw InvalidSpecRuleName::forSpecRuleName($cssRulesetName); + } + + return static::SPEC[$cssRulesetName]; + } + + /** + * Magic getter to return the spec rules. + * + * @param string $cssRulesetName Name of the spec rule to return. + * @return mixed Value of the spec rule. + */ + public function __get($cssRulesetName) + { + switch ($cssRulesetName) { + case SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE: + case SpecRule::ALLOW_IMPORTANT: + case SpecRule::EXPAND_VENDOR_PREFIXES: + case SpecRule::MAX_BYTES_IS_WARNING: + case SpecRule::URL_BYTES_INCLUDED: + return array_key_exists($cssRulesetName, static::SPEC) ? static::SPEC[$cssRulesetName] : false; + case SpecRule::DECLARATION_LIST_SVG: + case SpecRule::DISABLED_BY: + case SpecRule::ENABLED_BY: + case SpecRule::FONT_URL_SPEC: + case SpecRule::HTML_FORMAT: + case SpecRule::IMAGE_URL_SPEC: + return array_key_exists($cssRulesetName, static::SPEC) ? static::SPEC[$cssRulesetName] : []; + default: + if (!array_key_exists($cssRulesetName, static::SPEC)) { + throw InvalidSpecRuleName::forSpecRuleName($cssRulesetName); + } + + return static::SPEC[$cssRulesetName]; + } + } +} diff --git a/bin/src/Validator/SpecGenerator/Template/CssRulesets.php b/bin/src/Validator/SpecGenerator/Template/CssRulesets.php new file mode 100644 index 000000000..6cc83d8f0 --- /dev/null +++ b/bin/src/Validator/SpecGenerator/Template/CssRulesets.php @@ -0,0 +1,110 @@ +cssRulesetsCache)) { + return $this->cssRulesetsCache[$cssRulesetId]; + } + + $cssRulesetClassName = self::CSS_RULESETS[$cssRulesetId]; + + /** @var CssRuleset $cssRuleset */ + $cssRuleset = new $cssRulesetClassName(); + + $this->cssRulesetsCache[$cssRulesetId] = $cssRuleset; + + return $cssRuleset; + } + + /** + * Get a collection of CSS rulesets for a given AMP HTML format name. + * + * @param string $format AMP HTML format to get the CSS rulesets for. + * @return array Array of CSS rulesets matching the requested AMP HTML format. + * @throws InvalidFormat If an invalid AMP HTML format is requested. + */ + public function byFormat($format) + { + if (!array_key_exists($format, self::BY_FORMAT)) { + throw InvalidFormat::forFormat($format); + } + + $cssRulesetIds = self::BY_FORMAT[$format]; + if (!is_array($cssRulesetIds)) { + $cssRulesetIds = [$cssRulesetIds]; + } + + $cssRulesets = []; + foreach ($cssRulesetIds as $cssRulesetId) { + $cssRulesets[] = $this->get($cssRulesetId); + } + + return $cssRulesets; + } + + /** + * Get the list of available keys. + * + * @return array Array of available keys. + */ + public function getAvailableKeys() + { + return array_keys(self::CSS_RULESETS); + } + + /** + * Find the instantiated object for the current key. + * + * This should use its own caching mechanism as needed. + * + * Ideally, current() should be overridden as well to provide the correct object type-hint. + * + * @param string $key Key to retrieve the instantiated object for. + * @return CssRuleset Instantiated object for the current key. + */ + public function findByKey($key) + { + return $this->get($key); + } + + /** + * Return the current iterable object. + * + * @return CssRuleset CssRuleset object. + */ + public function current() + { + return $this->parentCurrent(); + } +} diff --git a/bin/src/Validator/SpecGenerator/Template/Tags.php b/bin/src/Validator/SpecGenerator/Template/Tags.php index 917d0df57..9a9708f15 100644 --- a/bin/src/Validator/SpecGenerator/Template/Tags.php +++ b/bin/src/Validator/SpecGenerator/Template/Tags.php @@ -6,7 +6,6 @@ use AmpProject\Exception\InvalidFormat; use AmpProject\Exception\InvalidSpecName; use AmpProject\Exception\InvalidTagId; -use Iterator; use LogicException; final class Tags @@ -21,7 +20,7 @@ final class Tags /** * Cache of already instantiated Tag objects. - + * * @var \AmpProject\Validator\Spec\Tag[] */ private $tagsCache = []; @@ -74,7 +73,7 @@ public function bySpecName($specName) * * @param string $format AMP HTML format to get the tags for. * @return array Array of tags matching the requested AMP HTML format. - * @throws InvalidSpecName If an invalid AMP HTML format is requested. + * @throws InvalidFormat If an invalid AMP HTML format is requested. */ public function byFormat($format) { diff --git a/src/Exception/InvalidCssName.php b/src/Exception/InvalidCssName.php deleted file mode 100644 index 26c03cf69..000000000 --- a/src/Exception/InvalidCssName.php +++ /dev/null @@ -1,27 +0,0 @@ -css === null) { - $this->css = new Spec\Section\Css(); + if ($this->doc === null) { + $this->doc = new Spec\Section\Doc(); } - return $this->css; + return $this->doc; } /** - * @return Spec\Section\Doc + * @return Spec\Section\CssRulesets */ - public function doc() + public function cssRulesets() { - if ($this->doc === null) { - $this->doc = new Spec\Section\Doc(); + if ($this->cssRulesets === null) { + $this->cssRulesets = new Spec\Section\CssRulesets(); } - return $this->doc; + return $this->cssRulesets; } /** diff --git a/src/Validator/Spec/CssRuleset.php b/src/Validator/Spec/CssRuleset.php new file mode 100644 index 000000000..34ec8c5bf --- /dev/null +++ b/src/Validator/Spec/CssRuleset.php @@ -0,0 +1,113 @@ + $declarationListSvg + * @property-read array $disabledBy + * @property-read array $enabledBy + * @property-read array $fontUrlSpec + * @property-read array $htmlFormat + * @property-read array $imageUrlSpec + */ +class CssRuleset +{ + /** + * ID of the CSS ruleset. + * + * This needs to be overridden in the extending class. + * + * @var string + */ + const ID = '[css ruleset base class]'; + + /** + * Spec data of the CSS ruleset. + * + * @var array + */ + const SPEC = []; + + /** + * Get the ID of the CSS ruleset. + * + * @return string ID of the CSS ruleset. + */ + public function getId() + { + return static::ID; + } + + /** + * Check whether a given spec rule is present. + * + * @param string $cssRulesetName Name of the spec rule to check for. + * @return bool Whether the given spec rule is contained in the spec. + */ + public function has($cssRulesetName) + { + return array_key_exists($cssRulesetName, static::SPEC); + } + + /** + * Get a specific spec rule. + * + * @param string $cssRulesetName Name of the spec rule to get. + * @return array Spec rule data that was requested. + */ + public function get($cssRulesetName) + { + if (!$this->has($cssRulesetName)) { + throw InvalidSpecRuleName::forSpecRuleName($cssRulesetName); + } + + return static::SPEC[$cssRulesetName]; + } + + /** + * Magic getter to return the spec rules. + * + * @param string $cssRulesetName Name of the spec rule to return. + * @return mixed Value of the spec rule. + */ + public function __get($cssRulesetName) + { + switch ($cssRulesetName) { + case SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE: + case SpecRule::ALLOW_IMPORTANT: + case SpecRule::EXPAND_VENDOR_PREFIXES: + case SpecRule::MAX_BYTES_IS_WARNING: + case SpecRule::URL_BYTES_INCLUDED: + return array_key_exists($cssRulesetName, static::SPEC) ? static::SPEC[$cssRulesetName] : false; + case SpecRule::DECLARATION_LIST_SVG: + case SpecRule::DISABLED_BY: + case SpecRule::ENABLED_BY: + case SpecRule::FONT_URL_SPEC: + case SpecRule::HTML_FORMAT: + case SpecRule::IMAGE_URL_SPEC: + return array_key_exists($cssRulesetName, static::SPEC) ? static::SPEC[$cssRulesetName] : []; + default: + if (!array_key_exists($cssRulesetName, static::SPEC)) { + throw InvalidSpecRuleName::forSpecRuleName($cssRulesetName); + } + + return static::SPEC[$cssRulesetName]; + } + } +} diff --git a/src/Validator/Spec/CssRuleset/Amp4ads.php b/src/Validator/Spec/CssRuleset/Amp4ads.php new file mode 100644 index 000000000..3ee342a53 --- /dev/null +++ b/src/Validator/Spec/CssRuleset/Amp4ads.php @@ -0,0 +1,55 @@ + [ + Format::AMP4ADS, + ], + SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/a4a_spec/#css', + SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/a4a_spec/#css', + SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, + SpecRule::IMAGE_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + Protocol::HTTP, + Protocol::DATA, + ], + SpecRule::ALLOW_EMPTY => true, + ], + SpecRule::FONT_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + Protocol::HTTP, + Protocol::DATA, + ], + SpecRule::ALLOW_EMPTY => true, + ], + SpecRule::ALLOW_IMPORTANT => false, + SpecRule::EXPAND_VENDOR_PREFIXES => true, + ]; +} diff --git a/src/Validator/Spec/CssRuleset/Amp4emailDataCssStrict.php b/src/Validator/Spec/CssRuleset/Amp4emailDataCssStrict.php new file mode 100644 index 000000000..d873eb0a3 --- /dev/null +++ b/src/Validator/Spec/CssRuleset/Amp4emailDataCssStrict.php @@ -0,0 +1,56 @@ + [ + Format::AMP4EMAIL, + ], + SpecRule::ENABLED_BY => [ + Attribute::DATA_CSS_STRICT, + ], + SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/email-spec/amp-email-css', + SpecRule::MAX_BYTES => 75000, + SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1000, + SpecRule::URL_BYTES_INCLUDED => true, + SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', + SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => false, + SpecRule::DECLARATION_LIST => [ + DeclarationList\EmailSpecificDeclarations::ID, + ], + SpecRule::IMAGE_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + ], + ], + SpecRule::ALLOW_IMPORTANT => false, + SpecRule::MAX_BYTES_IS_WARNING => false, + SpecRule::EXPAND_VENDOR_PREFIXES => false, + ]; +} diff --git a/src/Validator/Spec/CssRuleset/Amp4emailNoDataCssStrict.php b/src/Validator/Spec/CssRuleset/Amp4emailNoDataCssStrict.php new file mode 100644 index 000000000..b4ba364ac --- /dev/null +++ b/src/Validator/Spec/CssRuleset/Amp4emailNoDataCssStrict.php @@ -0,0 +1,59 @@ + [ + Format::AMP4EMAIL, + ], + SpecRule::DISABLED_BY => [ + Attribute::DATA_CSS_STRICT, + ], + SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/email-spec/amp-email-css', + SpecRule::MAX_BYTES => 75000, + SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1000, + SpecRule::URL_BYTES_INCLUDED => true, + SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', + SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, + SpecRule::DECLARATION_LIST => [ + DeclarationList\BasicDeclarations::ID, + ], + SpecRule::DECLARATION_LIST_SVG => [ + 'SVG_BASIC_DECLARATIONS', + ], + SpecRule::IMAGE_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + ], + ], + SpecRule::ALLOW_IMPORTANT => false, + SpecRule::MAX_BYTES_IS_WARNING => true, + SpecRule::EXPAND_VENDOR_PREFIXES => true, + ]; +} diff --git a/src/Validator/Spec/CssRuleset/AmpNoTransformed.php b/src/Validator/Spec/CssRuleset/AmpNoTransformed.php new file mode 100644 index 000000000..c580ef4f9 --- /dev/null +++ b/src/Validator/Spec/CssRuleset/AmpNoTransformed.php @@ -0,0 +1,62 @@ + [ + Format::AMP, + ], + SpecRule::DISABLED_BY => [ + Attribute::TRANSFORMED, + ], + SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#stylesheets', + SpecRule::MAX_BYTES => 75000, + SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1000, + SpecRule::URL_BYTES_INCLUDED => true, + SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', + SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, + SpecRule::IMAGE_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + Protocol::HTTP, + Protocol::DATA, + ], + SpecRule::ALLOW_EMPTY => true, + ], + SpecRule::FONT_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + Protocol::HTTP, + Protocol::DATA, + ], + SpecRule::ALLOW_EMPTY => true, + ], + SpecRule::ALLOW_IMPORTANT => false, + SpecRule::EXPAND_VENDOR_PREFIXES => true, + ]; +} diff --git a/src/Validator/Spec/CssRuleset/AmpTransformed.php b/src/Validator/Spec/CssRuleset/AmpTransformed.php new file mode 100644 index 000000000..f187b2397 --- /dev/null +++ b/src/Validator/Spec/CssRuleset/AmpTransformed.php @@ -0,0 +1,62 @@ + [ + Format::AMP, + ], + SpecRule::ENABLED_BY => [ + Attribute::TRANSFORMED, + ], + SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#stylesheets', + SpecRule::MAX_BYTES => 112500, + SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1500, + SpecRule::URL_BYTES_INCLUDED => false, + SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', + SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, + SpecRule::IMAGE_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + Protocol::HTTP, + Protocol::DATA, + ], + SpecRule::ALLOW_EMPTY => true, + ], + SpecRule::FONT_URL_SPEC => [ + SpecRule::PROTOCOL => [ + Protocol::HTTPS, + Protocol::HTTP, + Protocol::DATA, + ], + SpecRule::ALLOW_EMPTY => true, + ], + SpecRule::ALLOW_IMPORTANT => false, + SpecRule::EXPAND_VENDOR_PREFIXES => true, + ]; +} diff --git a/src/Validator/Spec/Section/Css.php b/src/Validator/Spec/Section/Css.php deleted file mode 100644 index 466228338..000000000 --- a/src/Validator/Spec/Section/Css.php +++ /dev/null @@ -1,222 +0,0 @@ - */ - private $css; - - /** @var array */ - private $byFormat; - - /** - * Get the CSS spec for a given name. - * - * @param string $name Format to get the CSS spec for. - * @return array CSS rule set. - */ - public function getByName($name) - { - if (!array_key_exists($name, $this->css)) { - throw InvalidCssName::forCssName($name); - } - - return $this->css[$name]; - } - - /** - * Get the CSS spec for a given format. - * - * @param string $format Format to get the CSS spec for. - * @return array Array of CSS rule sets. - */ - public function getByFormat($format) - { - if (!in_array($format, Amp::FORMATS, true)) { - throw InvalidFormat::forFormat($format); - } - - if (!array_key_exists($format, $this->byFormat)) { - return []; - } - - return $this->byFormat[$format]; - } - - public function __construct() - { - $this->css = [ - 'AMP (no-transformed)' => [ - SpecRule::HTML_FORMAT => [ - Format::AMP, - ], - SpecRule::DISABLED_BY => [ - Attribute::TRANSFORMED, - ], - SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#stylesheets', - SpecRule::MAX_BYTES => 75000, - SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1000, - SpecRule::URL_BYTES_INCLUDED => true, - SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', - SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, - SpecRule::IMAGE_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - Protocol::HTTP, - Protocol::DATA, - ], - SpecRule::ALLOW_EMPTY => true, - ], - SpecRule::FONT_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - Protocol::HTTP, - Protocol::DATA, - ], - SpecRule::ALLOW_EMPTY => true, - ], - SpecRule::ALLOW_IMPORTANT => false, - SpecRule::EXPAND_VENDOR_PREFIXES => true, - ], - 'AMP (transformed)' => [ - SpecRule::HTML_FORMAT => [ - Format::AMP, - ], - SpecRule::ENABLED_BY => [ - Attribute::TRANSFORMED, - ], - SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#stylesheets', - SpecRule::MAX_BYTES => 112500, - SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1500, - SpecRule::URL_BYTES_INCLUDED => false, - SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', - SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, - SpecRule::IMAGE_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - Protocol::HTTP, - Protocol::DATA, - ], - SpecRule::ALLOW_EMPTY => true, - ], - SpecRule::FONT_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - Protocol::HTTP, - Protocol::DATA, - ], - SpecRule::ALLOW_EMPTY => true, - ], - SpecRule::ALLOW_IMPORTANT => false, - SpecRule::EXPAND_VENDOR_PREFIXES => true, - ], - 'AMP4ADS' => [ - SpecRule::HTML_FORMAT => [ - Format::AMP4ADS, - ], - SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/a4a_spec/#css', - SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/a4a_spec/#css', - SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, - SpecRule::IMAGE_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - Protocol::HTTP, - Protocol::DATA, - ], - SpecRule::ALLOW_EMPTY => true, - ], - SpecRule::FONT_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - Protocol::HTTP, - Protocol::DATA, - ], - SpecRule::ALLOW_EMPTY => true, - ], - SpecRule::ALLOW_IMPORTANT => false, - SpecRule::EXPAND_VENDOR_PREFIXES => true, - ], - 'AMP4EMAIL (no-data-css-strict)' => [ - SpecRule::HTML_FORMAT => [ - Format::AMP4EMAIL, - ], - SpecRule::DISABLED_BY => [ - Attribute::DATA_CSS_STRICT, - ], - SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/email-spec/amp-email-css', - SpecRule::MAX_BYTES => 75000, - SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1000, - SpecRule::URL_BYTES_INCLUDED => true, - SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', - SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => true, - SpecRule::DECLARATION_LIST => [ - DeclarationList\BasicDeclarations::ID, - ], - SpecRule::DECLARATION_LIST_SVG => [ - 'SVG_BASIC_DECLARATIONS', - ], - SpecRule::IMAGE_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - ], - ], - SpecRule::ALLOW_IMPORTANT => false, - SpecRule::MAX_BYTES_IS_WARNING => true, - SpecRule::EXPAND_VENDOR_PREFIXES => true, - ], - 'AMP4EMAIL (data-css-strict)' => [ - SpecRule::HTML_FORMAT => [ - Format::AMP4EMAIL, - ], - SpecRule::ENABLED_BY => [ - Attribute::DATA_CSS_STRICT, - ], - SpecRule::SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/email-spec/amp-email-css', - SpecRule::MAX_BYTES => 75000, - SpecRule::MAX_BYTES_PER_INLINE_STYLE => 1000, - SpecRule::URL_BYTES_INCLUDED => true, - SpecRule::MAX_BYTES_SPEC_URL => 'https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size', - SpecRule::ALLOW_ALL_DECLARATION_IN_STYLE => false, - SpecRule::DECLARATION_LIST => [ - DeclarationList\EmailSpecificDeclarations::ID, - ], - SpecRule::IMAGE_URL_SPEC => [ - SpecRule::PROTOCOL => [ - Protocol::HTTPS, - ], - ], - SpecRule::ALLOW_IMPORTANT => false, - SpecRule::MAX_BYTES_IS_WARNING => false, - SpecRule::EXPAND_VENDOR_PREFIXES => false, - ], - ]; - $this->byFormat = [ - Format::AMP => [ - $this->css['AMP (no-transformed)'], - $this->css['AMP (transformed)'], - ], - Format::AMP4ADS => [ - $this->css['AMP4ADS'], - ], - Format::AMP4EMAIL => [ - $this->css['AMP4EMAIL (no-data-css-strict)'], - $this->css['AMP4EMAIL (data-css-strict)'], - ], - ]; - } -} diff --git a/src/Validator/Spec/Section/CssRulesets.php b/src/Validator/Spec/Section/CssRulesets.php new file mode 100644 index 000000000..b5c6be4b7 --- /dev/null +++ b/src/Validator/Spec/Section/CssRulesets.php @@ -0,0 +1,159 @@ + + */ + const CSS_RULESETS = [ + CssRuleset\AmpNoTransformed::ID => CssRuleset\AmpNoTransformed::class, + CssRuleset\AmpTransformed::ID => CssRuleset\AmpTransformed::class, + CssRuleset\Amp4ads::ID => CssRuleset\Amp4ads::class, + CssRuleset\Amp4emailDataCssStrict::ID => CssRuleset\Amp4emailDataCssStrict::class, + CssRuleset\Amp4emailNoDataCssStrict::ID => CssRuleset\Amp4emailNoDataCssStrict::class, + ]; + + /** + * Mapping of AMP format to array of CSS ruleset IDs. + * + * This is used to optimize querying by AMP format. + * + * @var array> + */ + const BY_FORMAT = [ + Format::AMP => [ + CssRuleset\AmpNoTransformed::ID, + CssRuleset\AmpTransformed::ID, + ], + Format::AMP4ADS => [ + CssRuleset\Amp4ads::ID, + ], + Format::AMP4EMAIL => [ + CssRuleset\Amp4emailDataCssStrict::ID, + CssRuleset\Amp4emailNoDataCssStrict::ID, + ], + ]; + + /** + * Cache of instantiated CssRuleset objects. + * + * @var array + */ + private $cssRulesetsCache = []; + + /** + * Array used for storing the iteration index in. + * + * @var array|null + */ + private $iterationArray; + + /** + * Get a CSS ruleset by its CSS ruleset ID. + * + * @param string $cssRulesetId CSS ruleset ID to get the collection of CSS rulesets for. + * @return CssRuleset Requested CSS ruleset. + * @throws InvalidCssRulesetName If an invalid CSS ruleset name is requested. + */ + public function get($cssRulesetId) + { + if (!array_key_exists($cssRulesetId, self::CSS_RULESETS)) { + throw InvalidCssRulesetName::forCssRulesetName($cssRulesetId); + } + + if (array_key_exists($cssRulesetId, $this->cssRulesetsCache)) { + return $this->cssRulesetsCache[$cssRulesetId]; + } + + $cssRulesetClassName = self::CSS_RULESETS[$cssRulesetId]; + + /** @var CssRuleset $cssRuleset */ + $cssRuleset = new $cssRulesetClassName(); + + $this->cssRulesetsCache[$cssRulesetId] = $cssRuleset; + + return $cssRuleset; + } + + /** + * Get a collection of CSS rulesets for a given AMP HTML format name. + * + * @param string $format AMP HTML format to get the CSS rulesets for. + * @return array Array of CSS rulesets matching the requested AMP HTML format. + * @throws InvalidFormat If an invalid AMP HTML format is requested. + */ + public function byFormat($format) + { + if (!array_key_exists($format, self::BY_FORMAT)) { + throw InvalidFormat::forFormat($format); + } + + $cssRulesetIds = self::BY_FORMAT[$format]; + if (!is_array($cssRulesetIds)) { + $cssRulesetIds = [$cssRulesetIds]; + } + + $cssRulesets = []; + foreach ($cssRulesetIds as $cssRulesetId) { + $cssRulesets[] = $this->get($cssRulesetId); + } + + return $cssRulesets; + } + + /** + * Get the list of available keys. + * + * @return array Array of available keys. + */ + public function getAvailableKeys() + { + return array_keys(self::CSS_RULESETS); + } + + /** + * Find the instantiated object for the current key. + * + * This should use its own caching mechanism as needed. + * + * Ideally, current() should be overridden as well to provide the correct object type-hint. + * + * @param string $key Key to retrieve the instantiated object for. + * @return CssRuleset Instantiated object for the current key. + */ + public function findByKey($key) + { + return $this->get($key); + } + + /** + * Return the current iterable object. + * + * @return CssRuleset CssRuleset object. + */ + public function current() + { + return $this->parentCurrent(); + } +} diff --git a/src/Validator/Spec/Section/Tags.php b/src/Validator/Spec/Section/Tags.php index 750004298..30277f305 100644 --- a/src/Validator/Spec/Section/Tags.php +++ b/src/Validator/Spec/Section/Tags.php @@ -3012,7 +3012,7 @@ public function bySpecName($specName) * * @param string $format AMP HTML format to get the tags for. * @return array Array of tags matching the requested AMP HTML format. - * @throws InvalidSpecName If an invalid AMP HTML format is requested. + * @throws InvalidFormat If an invalid AMP HTML format is requested. */ public function byFormat($format) { diff --git a/src/Validator/Spec/Tag/A.php b/src/Validator/Spec/Tag/A.php index 85d9dff75..48773c7f1 100644 --- a/src/Validator/Spec/Tag/A.php +++ b/src/Validator/Spec/Tag/A.php @@ -24,6 +24,11 @@ final class A extends Tag */ const ID = 'A'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::A, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AAmp4email.php b/src/Validator/Spec/Tag/AAmp4email.php index 417c13b92..58d4b29ad 100644 --- a/src/Validator/Spec/Tag/AAmp4email.php +++ b/src/Validator/Spec/Tag/AAmp4email.php @@ -23,6 +23,11 @@ final class AAmp4email extends Tag */ const ID = 'A (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::A, SpecRule::SPEC_NAME => 'A (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/Abbr.php b/src/Validator/Spec/Tag/Abbr.php index 22718ef9e..4530fb937 100644 --- a/src/Validator/Spec/Tag/Abbr.php +++ b/src/Validator/Spec/Tag/Abbr.php @@ -21,6 +21,11 @@ final class Abbr extends Tag */ const ID = 'ABBR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::ABBR, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Acronym.php b/src/Validator/Spec/Tag/Acronym.php index 1947b5218..3a22c3c21 100644 --- a/src/Validator/Spec/Tag/Acronym.php +++ b/src/Validator/Spec/Tag/Acronym.php @@ -21,6 +21,11 @@ final class Acronym extends Tag */ const ID = 'ACRONYM'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::ACRONYM, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Address.php b/src/Validator/Spec/Tag/Address.php index 61ce0cc20..d84dbd14a 100644 --- a/src/Validator/Spec/Tag/Address.php +++ b/src/Validator/Spec/Tag/Address.php @@ -21,6 +21,11 @@ final class Address extends Tag */ const ID = 'ADDRESS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::ADDRESS, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Amp3dGltf.php b/src/Validator/Spec/Tag/Amp3dGltf.php index e1885421a..4f3f3247f 100644 --- a/src/Validator/Spec/Tag/Amp3dGltf.php +++ b/src/Validator/Spec/Tag/Amp3dGltf.php @@ -25,6 +25,11 @@ final class Amp3dGltf extends Tag */ const ID = 'AMP-3D-GLTF'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::_3D_GLTF, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Amp3qPlayer.php b/src/Validator/Spec/Tag/Amp3qPlayer.php index 64a183082..5d9172d21 100644 --- a/src/Validator/Spec/Tag/Amp3qPlayer.php +++ b/src/Validator/Spec/Tag/Amp3qPlayer.php @@ -24,6 +24,11 @@ final class Amp3qPlayer extends Tag */ const ID = 'AMP-3Q-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::_3Q_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Amp4adsEngineScript.php b/src/Validator/Spec/Tag/Amp4adsEngineScript.php index 223c4befc..f5025791b 100644 --- a/src/Validator/Spec/Tag/Amp4adsEngineScript.php +++ b/src/Validator/Spec/Tag/Amp4adsEngineScript.php @@ -23,6 +23,11 @@ final class Amp4adsEngineScript extends Tag */ const ID = 'amp4ads engine script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp4ads engine script', diff --git a/src/Validator/Spec/Tag/AmpAccessExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpAccessExtensionJsonScript.php index 15ce99a50..637add4a0 100644 --- a/src/Validator/Spec/Tag/AmpAccessExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpAccessExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpAccessExtensionJsonScript extends Tag */ const ID = 'amp-access extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-access extension .json script', diff --git a/src/Validator/Spec/Tag/AmpAccordion.php b/src/Validator/Spec/Tag/AmpAccordion.php index 40bc08e21..24530afbe 100644 --- a/src/Validator/Spec/Tag/AmpAccordion.php +++ b/src/Validator/Spec/Tag/AmpAccordion.php @@ -24,6 +24,11 @@ final class AmpAccordion extends Tag */ const ID = 'AMP-ACCORDION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ACCORDION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAccordionSection.php b/src/Validator/Spec/Tag/AmpAccordionSection.php index d73c88478..4e4b53ea7 100644 --- a/src/Validator/Spec/Tag/AmpAccordionSection.php +++ b/src/Validator/Spec/Tag/AmpAccordionSection.php @@ -23,6 +23,11 @@ final class AmpAccordionSection extends Tag */ const ID = 'amp-accordion > section'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SECTION, SpecRule::SPEC_NAME => 'amp-accordion > section', diff --git a/src/Validator/Spec/Tag/AmpActionMacro.php b/src/Validator/Spec/Tag/AmpActionMacro.php index 07c8edf81..cf3bfdea6 100644 --- a/src/Validator/Spec/Tag/AmpActionMacro.php +++ b/src/Validator/Spec/Tag/AmpActionMacro.php @@ -23,6 +23,11 @@ final class AmpActionMacro extends Tag */ const ID = 'AMP-ACTION-MACRO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ACTION_MACRO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAd.php b/src/Validator/Spec/Tag/AmpAd.php index 428fd2545..1431918e6 100644 --- a/src/Validator/Spec/Tag/AmpAd.php +++ b/src/Validator/Spec/Tag/AmpAd.php @@ -25,6 +25,11 @@ final class AmpAd extends Tag */ const ID = 'AMP-AD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AD, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAdCustom.php b/src/Validator/Spec/Tag/AmpAdCustom.php index c779f04b1..ae4d251b2 100644 --- a/src/Validator/Spec/Tag/AmpAdCustom.php +++ b/src/Validator/Spec/Tag/AmpAdCustom.php @@ -25,6 +25,11 @@ final class AmpAdCustom extends Tag */ const ID = 'AMP-AD-CUSTOM'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AD_CUSTOM, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAdExit.php b/src/Validator/Spec/Tag/AmpAdExit.php index 954236779..f36fdaa3e 100644 --- a/src/Validator/Spec/Tag/AmpAdExit.php +++ b/src/Validator/Spec/Tag/AmpAdExit.php @@ -23,6 +23,11 @@ final class AmpAdExit extends Tag */ const ID = 'AMP-AD-EXIT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AD_EXIT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpAdExitConfigurationJson.php b/src/Validator/Spec/Tag/AmpAdExitConfigurationJson.php index 9bb0b9be6..330be6c2f 100644 --- a/src/Validator/Spec/Tag/AmpAdExitConfigurationJson.php +++ b/src/Validator/Spec/Tag/AmpAdExitConfigurationJson.php @@ -24,6 +24,11 @@ final class AmpAdExitConfigurationJson extends Tag */ const ID = 'amp-ad-exit configuration JSON'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-ad-exit configuration JSON', diff --git a/src/Validator/Spec/Tag/AmpAdExtensionScript.php b/src/Validator/Spec/Tag/AmpAdExtensionScript.php index 00fecfed7..795044f65 100644 --- a/src/Validator/Spec/Tag/AmpAdExtensionScript.php +++ b/src/Validator/Spec/Tag/AmpAdExtensionScript.php @@ -26,6 +26,11 @@ final class AmpAdExtensionScript extends Tag implements TagWithExtensionSpec */ const ID = 'amp-ad extension script'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-ad', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class AmpAdExtensionScript extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-ad extension script', diff --git a/src/Validator/Spec/Tag/AmpAdWithDataEnableRefreshAttribute.php b/src/Validator/Spec/Tag/AmpAdWithDataEnableRefreshAttribute.php index 77cec30cd..df5c50232 100644 --- a/src/Validator/Spec/Tag/AmpAdWithDataEnableRefreshAttribute.php +++ b/src/Validator/Spec/Tag/AmpAdWithDataEnableRefreshAttribute.php @@ -25,6 +25,11 @@ final class AmpAdWithDataEnableRefreshAttribute extends Tag */ const ID = 'amp-ad with data-enable-refresh attribute'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AD, SpecRule::SPEC_NAME => 'amp-ad with data-enable-refresh attribute', diff --git a/src/Validator/Spec/Tag/AmpAdWithDataMultiSizeAttribute.php b/src/Validator/Spec/Tag/AmpAdWithDataMultiSizeAttribute.php index a03739558..610a18d07 100644 --- a/src/Validator/Spec/Tag/AmpAdWithDataMultiSizeAttribute.php +++ b/src/Validator/Spec/Tag/AmpAdWithDataMultiSizeAttribute.php @@ -25,6 +25,11 @@ final class AmpAdWithDataMultiSizeAttribute extends Tag */ const ID = 'amp-ad with data-multi-size attribute'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AD, SpecRule::SPEC_NAME => 'amp-ad with data-multi-size attribute', diff --git a/src/Validator/Spec/Tag/AmpAdWithTypeCustom.php b/src/Validator/Spec/Tag/AmpAdWithTypeCustom.php index 9e04b5ddd..d68f0e5b1 100644 --- a/src/Validator/Spec/Tag/AmpAdWithTypeCustom.php +++ b/src/Validator/Spec/Tag/AmpAdWithTypeCustom.php @@ -25,6 +25,11 @@ final class AmpAdWithTypeCustom extends Tag */ const ID = 'amp-ad with type=custom'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AD, SpecRule::SPEC_NAME => 'amp-ad with type=custom', diff --git a/src/Validator/Spec/Tag/AmpAddthis.php b/src/Validator/Spec/Tag/AmpAddthis.php index a2a648766..1e2616db4 100644 --- a/src/Validator/Spec/Tag/AmpAddthis.php +++ b/src/Validator/Spec/Tag/AmpAddthis.php @@ -25,6 +25,11 @@ final class AmpAddthis extends Tag */ const ID = 'AMP-ADDTHIS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ADDTHIS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAnalytics.php b/src/Validator/Spec/Tag/AmpAnalytics.php index 77ceb89a2..383d6d30b 100644 --- a/src/Validator/Spec/Tag/AmpAnalytics.php +++ b/src/Validator/Spec/Tag/AmpAnalytics.php @@ -23,6 +23,11 @@ final class AmpAnalytics extends Tag */ const ID = 'AMP-ANALYTICS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ANALYTICS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAnalyticsExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpAnalyticsExtensionJsonScript.php index 551e9339b..51ec31443 100644 --- a/src/Validator/Spec/Tag/AmpAnalyticsExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpAnalyticsExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpAnalyticsExtensionJsonScript extends Tag */ const ID = 'amp-analytics extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-analytics extension .json script', diff --git a/src/Validator/Spec/Tag/AmpAnim.php b/src/Validator/Spec/Tag/AmpAnim.php index 7431451fa..a97bbe843 100644 --- a/src/Validator/Spec/Tag/AmpAnim.php +++ b/src/Validator/Spec/Tag/AmpAnim.php @@ -24,6 +24,11 @@ final class AmpAnim extends Tag */ const ID = 'AMP-ANIM'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ANIM, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAnimAmp4email.php b/src/Validator/Spec/Tag/AmpAnimAmp4email.php index a75443b4b..5a888f56d 100644 --- a/src/Validator/Spec/Tag/AmpAnimAmp4email.php +++ b/src/Validator/Spec/Tag/AmpAnimAmp4email.php @@ -24,6 +24,11 @@ final class AmpAnimAmp4email extends Tag */ const ID = 'AMP-ANIM (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ANIM, SpecRule::SPEC_NAME => 'AMP-ANIM (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/AmpAnimExtensionScriptAmp4email.php b/src/Validator/Spec/Tag/AmpAnimExtensionScriptAmp4email.php index 45554a5a5..c47f078bb 100644 --- a/src/Validator/Spec/Tag/AmpAnimExtensionScriptAmp4email.php +++ b/src/Validator/Spec/Tag/AmpAnimExtensionScriptAmp4email.php @@ -26,6 +26,11 @@ final class AmpAnimExtensionScriptAmp4email extends Tag implements TagWithExtens */ const ID = 'amp-anim extension script (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-anim', SpecRule::VERSION => [ @@ -33,6 +38,11 @@ final class AmpAnimExtensionScriptAmp4email extends Tag implements TagWithExtens ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-anim extension script (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/AmpAnimation.php b/src/Validator/Spec/Tag/AmpAnimation.php index 3136aca54..21c416ef5 100644 --- a/src/Validator/Spec/Tag/AmpAnimation.php +++ b/src/Validator/Spec/Tag/AmpAnimation.php @@ -24,6 +24,11 @@ final class AmpAnimation extends Tag */ const ID = 'AMP-ANIMATION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ANIMATION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAnimationExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpAnimationExtensionJsonScript.php index 8692514e8..435b311d3 100644 --- a/src/Validator/Spec/Tag/AmpAnimationExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpAnimationExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpAnimationExtensionJsonScript extends Tag */ const ID = 'amp-animation extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-animation extension .json script', diff --git a/src/Validator/Spec/Tag/AmpApesterMedia.php b/src/Validator/Spec/Tag/AmpApesterMedia.php index a5648c415..99cb887c5 100644 --- a/src/Validator/Spec/Tag/AmpApesterMedia.php +++ b/src/Validator/Spec/Tag/AmpApesterMedia.php @@ -24,6 +24,11 @@ final class AmpApesterMedia extends Tag */ const ID = 'AMP-APESTER-MEDIA'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::APESTER_MEDIA, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAppBanner.php b/src/Validator/Spec/Tag/AmpAppBanner.php index a774c991f..45275f6d6 100644 --- a/src/Validator/Spec/Tag/AmpAppBanner.php +++ b/src/Validator/Spec/Tag/AmpAppBanner.php @@ -24,6 +24,11 @@ final class AmpAppBanner extends Tag */ const ID = 'AMP-APP-BANNER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::APP_BANNER, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpAppBannerButtonOpenButton.php b/src/Validator/Spec/Tag/AmpAppBannerButtonOpenButton.php index 35ebc54b7..2822ca0bb 100644 --- a/src/Validator/Spec/Tag/AmpAppBannerButtonOpenButton.php +++ b/src/Validator/Spec/Tag/AmpAppBannerButtonOpenButton.php @@ -24,6 +24,11 @@ final class AmpAppBannerButtonOpenButton extends Tag */ const ID = 'amp-app-banner button[open-button]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BUTTON, SpecRule::SPEC_NAME => 'amp-app-banner button[open-button]', diff --git a/src/Validator/Spec/Tag/AmpAudio.php b/src/Validator/Spec/Tag/AmpAudio.php index cdd9546a0..be26fb052 100644 --- a/src/Validator/Spec/Tag/AmpAudio.php +++ b/src/Validator/Spec/Tag/AmpAudio.php @@ -24,6 +24,11 @@ final class AmpAudio extends Tag */ const ID = 'AMP-AUDIO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AUDIO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAudioA4a.php b/src/Validator/Spec/Tag/AmpAudioA4a.php index cf686c936..6f4aeca76 100644 --- a/src/Validator/Spec/Tag/AmpAudioA4a.php +++ b/src/Validator/Spec/Tag/AmpAudioA4a.php @@ -23,6 +23,11 @@ final class AmpAudioA4a extends Tag */ const ID = 'amp-audio (A4A)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AUDIO, SpecRule::SPEC_NAME => 'amp-audio (A4A)', diff --git a/src/Validator/Spec/Tag/AmpAudioSource.php b/src/Validator/Spec/Tag/AmpAudioSource.php index 1b2aed9fe..1d6d78b6f 100644 --- a/src/Validator/Spec/Tag/AmpAudioSource.php +++ b/src/Validator/Spec/Tag/AmpAudioSource.php @@ -24,6 +24,11 @@ final class AmpAudioSource extends Tag */ const ID = 'amp-audio > source'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SOURCE, SpecRule::SPEC_NAME => 'amp-audio > source', diff --git a/src/Validator/Spec/Tag/AmpAudioTrack.php b/src/Validator/Spec/Tag/AmpAudioTrack.php index b2da32dd8..ba7349901 100644 --- a/src/Validator/Spec/Tag/AmpAudioTrack.php +++ b/src/Validator/Spec/Tag/AmpAudioTrack.php @@ -23,6 +23,11 @@ final class AmpAudioTrack extends Tag */ const ID = 'amp-audio > track'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'amp-audio > track', diff --git a/src/Validator/Spec/Tag/AmpAudioTrackKindSubtitles.php b/src/Validator/Spec/Tag/AmpAudioTrackKindSubtitles.php index 80fc8d0ba..2f840d457 100644 --- a/src/Validator/Spec/Tag/AmpAudioTrackKindSubtitles.php +++ b/src/Validator/Spec/Tag/AmpAudioTrackKindSubtitles.php @@ -23,6 +23,11 @@ final class AmpAudioTrackKindSubtitles extends Tag */ const ID = 'amp-audio > track[kind=subtitles]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'amp-audio > track[kind=subtitles]', diff --git a/src/Validator/Spec/Tag/AmpAutoAds.php b/src/Validator/Spec/Tag/AmpAutoAds.php index 74fb40dfd..bd77dfb5b 100644 --- a/src/Validator/Spec/Tag/AmpAutoAds.php +++ b/src/Validator/Spec/Tag/AmpAutoAds.php @@ -23,6 +23,11 @@ final class AmpAutoAds extends Tag */ const ID = 'AMP-AUTO-ADS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AUTO_ADS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpAutocomplete.php b/src/Validator/Spec/Tag/AmpAutocomplete.php index a8dcdb185..26bae89a1 100644 --- a/src/Validator/Spec/Tag/AmpAutocomplete.php +++ b/src/Validator/Spec/Tag/AmpAutocomplete.php @@ -25,6 +25,11 @@ final class AmpAutocomplete extends Tag */ const ID = 'amp-autocomplete'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AUTOCOMPLETE, SpecRule::SPEC_NAME => 'amp-autocomplete', diff --git a/src/Validator/Spec/Tag/AmpAutocompleteAmp4email.php b/src/Validator/Spec/Tag/AmpAutocompleteAmp4email.php index a7de6ed79..54c159682 100644 --- a/src/Validator/Spec/Tag/AmpAutocompleteAmp4email.php +++ b/src/Validator/Spec/Tag/AmpAutocompleteAmp4email.php @@ -25,6 +25,11 @@ final class AmpAutocompleteAmp4email extends Tag */ const ID = 'AMP-AUTOCOMPLETE (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AUTOCOMPLETE, SpecRule::SPEC_NAME => 'AMP-AUTOCOMPLETE (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/AmpAutocompleteInput.php b/src/Validator/Spec/Tag/AmpAutocompleteInput.php index 337c6450e..bbedadf3b 100644 --- a/src/Validator/Spec/Tag/AmpAutocompleteInput.php +++ b/src/Validator/Spec/Tag/AmpAutocompleteInput.php @@ -23,6 +23,11 @@ final class AmpAutocompleteInput extends Tag */ const ID = 'amp-autocomplete > input'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'amp-autocomplete > input', diff --git a/src/Validator/Spec/Tag/AmpAutocompleteJson.php b/src/Validator/Spec/Tag/AmpAutocompleteJson.php index caeea463c..7835011ed 100644 --- a/src/Validator/Spec/Tag/AmpAutocompleteJson.php +++ b/src/Validator/Spec/Tag/AmpAutocompleteJson.php @@ -24,6 +24,11 @@ final class AmpAutocompleteJson extends Tag */ const ID = 'amp-autocomplete JSON'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-autocomplete JSON', diff --git a/src/Validator/Spec/Tag/AmpBaseCarousel.php b/src/Validator/Spec/Tag/AmpBaseCarousel.php index 0279019e9..1b00be151 100644 --- a/src/Validator/Spec/Tag/AmpBaseCarousel.php +++ b/src/Validator/Spec/Tag/AmpBaseCarousel.php @@ -23,6 +23,11 @@ final class AmpBaseCarousel extends Tag */ const ID = 'AMP-BASE-CAROUSEL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BASE_CAROUSEL, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpBaseCarouselLightbox.php b/src/Validator/Spec/Tag/AmpBaseCarouselLightbox.php index a2d87f03d..ff0ca4ae0 100644 --- a/src/Validator/Spec/Tag/AmpBaseCarouselLightbox.php +++ b/src/Validator/Spec/Tag/AmpBaseCarouselLightbox.php @@ -24,6 +24,11 @@ final class AmpBaseCarouselLightbox extends Tag */ const ID = 'AMP-BASE-CAROUSEL [lightbox]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BASE_CAROUSEL, SpecRule::SPEC_NAME => 'AMP-BASE-CAROUSEL [lightbox]', diff --git a/src/Validator/Spec/Tag/AmpBaseCarouselLightboxChild.php b/src/Validator/Spec/Tag/AmpBaseCarouselLightboxChild.php index f7a81c01b..7b28dd086 100644 --- a/src/Validator/Spec/Tag/AmpBaseCarouselLightboxChild.php +++ b/src/Validator/Spec/Tag/AmpBaseCarouselLightboxChild.php @@ -21,6 +21,11 @@ final class AmpBaseCarouselLightboxChild extends Tag */ const ID = 'AMP-BASE-CAROUSEL lightbox [child]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-BASE-CAROUSEL lightbox [child]', diff --git a/src/Validator/Spec/Tag/AmpBaseCarouselLightboxLightboxExclude.php b/src/Validator/Spec/Tag/AmpBaseCarouselLightboxLightboxExclude.php index 0ab18c766..a61f30674 100644 --- a/src/Validator/Spec/Tag/AmpBaseCarouselLightboxLightboxExclude.php +++ b/src/Validator/Spec/Tag/AmpBaseCarouselLightboxLightboxExclude.php @@ -21,6 +21,11 @@ final class AmpBaseCarouselLightboxLightboxExclude extends Tag */ const ID = 'AMP-BASE-CAROUSEL lightbox [lightbox-exclude]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-BASE-CAROUSEL lightbox [lightbox-exclude]', diff --git a/src/Validator/Spec/Tag/AmpBeopinion.php b/src/Validator/Spec/Tag/AmpBeopinion.php index db242d7d4..a1f7142d5 100644 --- a/src/Validator/Spec/Tag/AmpBeopinion.php +++ b/src/Validator/Spec/Tag/AmpBeopinion.php @@ -24,6 +24,11 @@ final class AmpBeopinion extends Tag */ const ID = 'AMP-BEOPINION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BEOPINION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpBindExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpBindExtensionJsonScript.php index 750fc078b..66e1cd5ad 100644 --- a/src/Validator/Spec/Tag/AmpBindExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpBindExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpBindExtensionJsonScript extends Tag */ const ID = 'amp-bind extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-bind extension .json script', diff --git a/src/Validator/Spec/Tag/AmpBindMacro.php b/src/Validator/Spec/Tag/AmpBindMacro.php index 975ae21b5..72a11190d 100644 --- a/src/Validator/Spec/Tag/AmpBindMacro.php +++ b/src/Validator/Spec/Tag/AmpBindMacro.php @@ -23,6 +23,11 @@ final class AmpBindMacro extends Tag */ const ID = 'AMP-BIND-MACRO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BIND_MACRO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpBodymovinAnimation.php b/src/Validator/Spec/Tag/AmpBodymovinAnimation.php index 246e8bb49..d1052bb5d 100644 --- a/src/Validator/Spec/Tag/AmpBodymovinAnimation.php +++ b/src/Validator/Spec/Tag/AmpBodymovinAnimation.php @@ -24,6 +24,11 @@ final class AmpBodymovinAnimation extends Tag */ const ID = 'AMP-BODYMOVIN-ANIMATION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BODYMOVIN_ANIMATION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpBridPlayer.php b/src/Validator/Spec/Tag/AmpBridPlayer.php index e235c5285..cad02793f 100644 --- a/src/Validator/Spec/Tag/AmpBridPlayer.php +++ b/src/Validator/Spec/Tag/AmpBridPlayer.php @@ -24,6 +24,11 @@ final class AmpBridPlayer extends Tag */ const ID = 'AMP-BRID-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BRID_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpBrightcove.php b/src/Validator/Spec/Tag/AmpBrightcove.php index c412aa7c1..e8ce18cdd 100644 --- a/src/Validator/Spec/Tag/AmpBrightcove.php +++ b/src/Validator/Spec/Tag/AmpBrightcove.php @@ -24,6 +24,11 @@ final class AmpBrightcove extends Tag */ const ID = 'AMP-BRIGHTCOVE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BRIGHTCOVE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpBysideContent.php b/src/Validator/Spec/Tag/AmpBysideContent.php index f6070725e..473c5babb 100644 --- a/src/Validator/Spec/Tag/AmpBysideContent.php +++ b/src/Validator/Spec/Tag/AmpBysideContent.php @@ -24,6 +24,11 @@ final class AmpBysideContent extends Tag */ const ID = 'AMP-BYSIDE-CONTENT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::BYSIDE_CONTENT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpCallTracking.php b/src/Validator/Spec/Tag/AmpCallTracking.php index 9271da52e..f4dda2e51 100644 --- a/src/Validator/Spec/Tag/AmpCallTracking.php +++ b/src/Validator/Spec/Tag/AmpCallTracking.php @@ -25,6 +25,11 @@ final class AmpCallTracking extends Tag */ const ID = 'AMP-CALL-TRACKING'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::CALL_TRACKING, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpCarousel.php b/src/Validator/Spec/Tag/AmpCarousel.php index a3245a645..0da26a1a9 100644 --- a/src/Validator/Spec/Tag/AmpCarousel.php +++ b/src/Validator/Spec/Tag/AmpCarousel.php @@ -23,6 +23,11 @@ final class AmpCarousel extends Tag */ const ID = 'AMP-CAROUSEL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::CAROUSEL, SpecRule::SPEC_NAME => 'AMP-CAROUSEL', diff --git a/src/Validator/Spec/Tag/AmpCarouselLightbox.php b/src/Validator/Spec/Tag/AmpCarouselLightbox.php index 6e21b6af3..678412a37 100644 --- a/src/Validator/Spec/Tag/AmpCarouselLightbox.php +++ b/src/Validator/Spec/Tag/AmpCarouselLightbox.php @@ -24,6 +24,11 @@ final class AmpCarouselLightbox extends Tag */ const ID = 'AMP-CAROUSEL lightbox'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::CAROUSEL, SpecRule::SPEC_NAME => 'AMP-CAROUSEL lightbox', diff --git a/src/Validator/Spec/Tag/AmpCarouselLightboxChild.php b/src/Validator/Spec/Tag/AmpCarouselLightboxChild.php index 663427e85..c0341b7f8 100644 --- a/src/Validator/Spec/Tag/AmpCarouselLightboxChild.php +++ b/src/Validator/Spec/Tag/AmpCarouselLightboxChild.php @@ -21,6 +21,11 @@ final class AmpCarouselLightboxChild extends Tag */ const ID = 'AMP-CAROUSEL lightbox [child]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-CAROUSEL lightbox [child]', diff --git a/src/Validator/Spec/Tag/AmpCarouselLightboxLightboxExclude.php b/src/Validator/Spec/Tag/AmpCarouselLightboxLightboxExclude.php index 1bb7c178e..3b4e6acb5 100644 --- a/src/Validator/Spec/Tag/AmpCarouselLightboxLightboxExclude.php +++ b/src/Validator/Spec/Tag/AmpCarouselLightboxLightboxExclude.php @@ -21,6 +21,11 @@ final class AmpCarouselLightboxLightboxExclude extends Tag */ const ID = 'AMP-CAROUSEL lightbox [lightbox-exclude]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-CAROUSEL lightbox [lightbox-exclude]', diff --git a/src/Validator/Spec/Tag/AmpConnatixPlayer.php b/src/Validator/Spec/Tag/AmpConnatixPlayer.php index 4f90f9ddb..03d25e4e8 100644 --- a/src/Validator/Spec/Tag/AmpConnatixPlayer.php +++ b/src/Validator/Spec/Tag/AmpConnatixPlayer.php @@ -24,6 +24,11 @@ final class AmpConnatixPlayer extends Tag */ const ID = 'AMP-CONNATIX-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::CONNATIX_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpConsent.php b/src/Validator/Spec/Tag/AmpConsent.php index 0ae39dff6..7891f25e4 100644 --- a/src/Validator/Spec/Tag/AmpConsent.php +++ b/src/Validator/Spec/Tag/AmpConsent.php @@ -23,6 +23,11 @@ final class AmpConsent extends Tag */ const ID = 'AMP-CONSENT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::CONSENT, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpConsentExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpConsentExtensionJsonScript.php index 103f221e1..731bc5287 100644 --- a/src/Validator/Spec/Tag/AmpConsentExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpConsentExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpConsentExtensionJsonScript extends Tag */ const ID = 'amp-consent extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-consent extension .json script', diff --git a/src/Validator/Spec/Tag/AmpConsentType.php b/src/Validator/Spec/Tag/AmpConsentType.php index e0952ebd7..b1ffdc559 100644 --- a/src/Validator/Spec/Tag/AmpConsentType.php +++ b/src/Validator/Spec/Tag/AmpConsentType.php @@ -24,6 +24,11 @@ final class AmpConsentType extends Tag */ const ID = 'amp-consent [type]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::CONSENT, SpecRule::SPEC_NAME => 'amp-consent [type]', diff --git a/src/Validator/Spec/Tag/AmpDailymotion.php b/src/Validator/Spec/Tag/AmpDailymotion.php index 5cb024b60..6e0a71d5d 100644 --- a/src/Validator/Spec/Tag/AmpDailymotion.php +++ b/src/Validator/Spec/Tag/AmpDailymotion.php @@ -24,6 +24,11 @@ final class AmpDailymotion extends Tag */ const ID = 'AMP-DAILYMOTION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DAILYMOTION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpDateCountdown.php b/src/Validator/Spec/Tag/AmpDateCountdown.php index c45d8ef35..a226e3d6d 100644 --- a/src/Validator/Spec/Tag/AmpDateCountdown.php +++ b/src/Validator/Spec/Tag/AmpDateCountdown.php @@ -24,6 +24,11 @@ final class AmpDateCountdown extends Tag */ const ID = 'AMP-DATE-COUNTDOWN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DATE_COUNTDOWN, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpDateDisplay.php b/src/Validator/Spec/Tag/AmpDateDisplay.php index 3df947405..5f29f54a9 100644 --- a/src/Validator/Spec/Tag/AmpDateDisplay.php +++ b/src/Validator/Spec/Tag/AmpDateDisplay.php @@ -24,6 +24,11 @@ final class AmpDateDisplay extends Tag */ const ID = 'AMP-DATE-DISPLAY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DATE_DISPLAY, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpDatePickerTemplateDateTemplate.php b/src/Validator/Spec/Tag/AmpDatePickerTemplateDateTemplate.php index 0a07d9edf..3badfe20d 100644 --- a/src/Validator/Spec/Tag/AmpDatePickerTemplateDateTemplate.php +++ b/src/Validator/Spec/Tag/AmpDatePickerTemplateDateTemplate.php @@ -23,6 +23,11 @@ final class AmpDatePickerTemplateDateTemplate extends Tag */ const ID = 'amp-date-picker > template [date-template]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEMPLATE, SpecRule::SPEC_NAME => 'amp-date-picker > template [date-template]', diff --git a/src/Validator/Spec/Tag/AmpDatePickerTemplateInfoTemplate.php b/src/Validator/Spec/Tag/AmpDatePickerTemplateInfoTemplate.php index f69f0433e..03be7a0fe 100644 --- a/src/Validator/Spec/Tag/AmpDatePickerTemplateInfoTemplate.php +++ b/src/Validator/Spec/Tag/AmpDatePickerTemplateInfoTemplate.php @@ -23,6 +23,11 @@ final class AmpDatePickerTemplateInfoTemplate extends Tag */ const ID = 'amp-date-picker > template [info-template]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEMPLATE, SpecRule::SPEC_NAME => 'amp-date-picker > template [info-template]', diff --git a/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeOverlay.php b/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeOverlay.php index 8b18588fb..73387e586 100644 --- a/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeOverlay.php +++ b/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeOverlay.php @@ -24,6 +24,11 @@ final class AmpDatePickerTypeRangeModeOverlay extends Tag */ const ID = 'amp-date-picker[type=range][mode=overlay]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DATE_PICKER, SpecRule::SPEC_NAME => 'amp-date-picker[type=range][mode=overlay]', diff --git a/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeStatic.php b/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeStatic.php index b0acaf239..74151d18b 100644 --- a/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeStatic.php +++ b/src/Validator/Spec/Tag/AmpDatePickerTypeRangeModeStatic.php @@ -24,6 +24,11 @@ final class AmpDatePickerTypeRangeModeStatic extends Tag */ const ID = 'amp-date-picker[type=range][mode=static]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DATE_PICKER, SpecRule::SPEC_NAME => 'amp-date-picker[type=range][mode=static]', diff --git a/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeOverlay.php b/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeOverlay.php index 1d3290a72..e6452bac5 100644 --- a/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeOverlay.php +++ b/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeOverlay.php @@ -24,6 +24,11 @@ final class AmpDatePickerTypeSingleModeOverlay extends Tag */ const ID = 'amp-date-picker[type=single][mode=overlay]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DATE_PICKER, SpecRule::SPEC_NAME => 'amp-date-picker[type=single][mode=overlay]', diff --git a/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeStatic.php b/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeStatic.php index b569dcb25..fca405787 100644 --- a/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeStatic.php +++ b/src/Validator/Spec/Tag/AmpDatePickerTypeSingleModeStatic.php @@ -24,6 +24,11 @@ final class AmpDatePickerTypeSingleModeStatic extends Tag */ const ID = 'amp-date-picker[type=single][mode=static]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DATE_PICKER, SpecRule::SPEC_NAME => 'amp-date-picker[type=single][mode=static]', diff --git a/src/Validator/Spec/Tag/AmpDelightPlayer.php b/src/Validator/Spec/Tag/AmpDelightPlayer.php index f1c257078..12168eb81 100644 --- a/src/Validator/Spec/Tag/AmpDelightPlayer.php +++ b/src/Validator/Spec/Tag/AmpDelightPlayer.php @@ -24,6 +24,11 @@ final class AmpDelightPlayer extends Tag */ const ID = 'AMP-DELIGHT-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::DELIGHT_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpEmbed.php b/src/Validator/Spec/Tag/AmpEmbed.php index ce3b6bcc4..127e17857 100644 --- a/src/Validator/Spec/Tag/AmpEmbed.php +++ b/src/Validator/Spec/Tag/AmpEmbed.php @@ -25,6 +25,11 @@ final class AmpEmbed extends Tag */ const ID = 'AMP-EMBED'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::EMBED, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpEmbedWithDataMultiSizeAttribute.php b/src/Validator/Spec/Tag/AmpEmbedWithDataMultiSizeAttribute.php index 68e5dd314..11ccbf8c7 100644 --- a/src/Validator/Spec/Tag/AmpEmbedWithDataMultiSizeAttribute.php +++ b/src/Validator/Spec/Tag/AmpEmbedWithDataMultiSizeAttribute.php @@ -25,6 +25,11 @@ final class AmpEmbedWithDataMultiSizeAttribute extends Tag */ const ID = 'amp-embed with data-multi-size attribute'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::EMBED, SpecRule::SPEC_NAME => 'amp-embed with data-multi-size attribute', diff --git a/src/Validator/Spec/Tag/AmpEmbedlyCard.php b/src/Validator/Spec/Tag/AmpEmbedlyCard.php index 04c5b061f..d5cb7d42f 100644 --- a/src/Validator/Spec/Tag/AmpEmbedlyCard.php +++ b/src/Validator/Spec/Tag/AmpEmbedlyCard.php @@ -25,6 +25,11 @@ final class AmpEmbedlyCard extends Tag */ const ID = 'AMP-EMBEDLY-CARD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::EMBEDLY_CARD, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpEmbedlyKey.php b/src/Validator/Spec/Tag/AmpEmbedlyKey.php index 36810c766..6bdc736b6 100644 --- a/src/Validator/Spec/Tag/AmpEmbedlyKey.php +++ b/src/Validator/Spec/Tag/AmpEmbedlyKey.php @@ -23,6 +23,11 @@ final class AmpEmbedlyKey extends Tag */ const ID = 'AMP-EMBEDLY-KEY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::EMBEDLY_KEY, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpExperiment.php b/src/Validator/Spec/Tag/AmpExperiment.php index e56f6978c..25db2d6a9 100644 --- a/src/Validator/Spec/Tag/AmpExperiment.php +++ b/src/Validator/Spec/Tag/AmpExperiment.php @@ -21,6 +21,11 @@ final class AmpExperiment extends Tag */ const ID = 'AMP-EXPERIMENT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::EXPERIMENT, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpExperimentExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpExperimentExtensionJsonScript.php index eaed3972f..fdea34bf7 100644 --- a/src/Validator/Spec/Tag/AmpExperimentExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpExperimentExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpExperimentExtensionJsonScript extends Tag */ const ID = 'amp-experiment extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-experiment extension .json script', diff --git a/src/Validator/Spec/Tag/AmpExperimentStoryExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpExperimentStoryExtensionJsonScript.php index 54e444122..7808ca22e 100644 --- a/src/Validator/Spec/Tag/AmpExperimentStoryExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpExperimentStoryExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpExperimentStoryExtensionJsonScript extends Tag */ const ID = 'amp-experiment story extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-experiment story extension .json script', diff --git a/src/Validator/Spec/Tag/AmpFacebook.php b/src/Validator/Spec/Tag/AmpFacebook.php index 64b5e98f6..ccd8d6f0f 100644 --- a/src/Validator/Spec/Tag/AmpFacebook.php +++ b/src/Validator/Spec/Tag/AmpFacebook.php @@ -24,6 +24,11 @@ final class AmpFacebook extends Tag */ const ID = 'AMP-FACEBOOK'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::FACEBOOK, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpFacebookComments.php b/src/Validator/Spec/Tag/AmpFacebookComments.php index 9064ad75d..423171a85 100644 --- a/src/Validator/Spec/Tag/AmpFacebookComments.php +++ b/src/Validator/Spec/Tag/AmpFacebookComments.php @@ -24,6 +24,11 @@ final class AmpFacebookComments extends Tag */ const ID = 'AMP-FACEBOOK-COMMENTS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::FACEBOOK_COMMENTS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpFacebookLike.php b/src/Validator/Spec/Tag/AmpFacebookLike.php index c0a4ed157..e8fad02c7 100644 --- a/src/Validator/Spec/Tag/AmpFacebookLike.php +++ b/src/Validator/Spec/Tag/AmpFacebookLike.php @@ -25,6 +25,11 @@ final class AmpFacebookLike extends Tag */ const ID = 'AMP-FACEBOOK-LIKE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::FACEBOOK_LIKE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpFacebookPage.php b/src/Validator/Spec/Tag/AmpFacebookPage.php index 30e857cf2..edd31ada8 100644 --- a/src/Validator/Spec/Tag/AmpFacebookPage.php +++ b/src/Validator/Spec/Tag/AmpFacebookPage.php @@ -25,6 +25,11 @@ final class AmpFacebookPage extends Tag */ const ID = 'AMP-FACEBOOK-PAGE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::FACEBOOK_PAGE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpFitText.php b/src/Validator/Spec/Tag/AmpFitText.php index 0c7f8a1d8..57e6e5819 100644 --- a/src/Validator/Spec/Tag/AmpFitText.php +++ b/src/Validator/Spec/Tag/AmpFitText.php @@ -24,6 +24,11 @@ final class AmpFitText extends Tag */ const ID = 'AMP-FIT-TEXT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::FIT_TEXT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpFont.php b/src/Validator/Spec/Tag/AmpFont.php index 0e0b15a8f..c3d6862e3 100644 --- a/src/Validator/Spec/Tag/AmpFont.php +++ b/src/Validator/Spec/Tag/AmpFont.php @@ -24,6 +24,11 @@ final class AmpFont extends Tag */ const ID = 'AMP-FONT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::FONT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpFxFlyingCarpet.php b/src/Validator/Spec/Tag/AmpFxFlyingCarpet.php index 540388cda..bc6160d20 100644 --- a/src/Validator/Spec/Tag/AmpFxFlyingCarpet.php +++ b/src/Validator/Spec/Tag/AmpFxFlyingCarpet.php @@ -23,6 +23,11 @@ final class AmpFxFlyingCarpet extends Tag */ const ID = 'AMP-FX-FLYING-CARPET'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::FX_FLYING_CARPET, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpGeo.php b/src/Validator/Spec/Tag/AmpGeo.php index 75e7a9f1d..faf4d9275 100644 --- a/src/Validator/Spec/Tag/AmpGeo.php +++ b/src/Validator/Spec/Tag/AmpGeo.php @@ -23,6 +23,11 @@ final class AmpGeo extends Tag */ const ID = 'AMP-GEO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GEO, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpGeoExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpGeoExtensionJsonScript.php index 45553dc0a..ada385840 100644 --- a/src/Validator/Spec/Tag/AmpGeoExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpGeoExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpGeoExtensionJsonScript extends Tag */ const ID = 'amp-geo extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-geo extension .json script', diff --git a/src/Validator/Spec/Tag/AmpGfycat.php b/src/Validator/Spec/Tag/AmpGfycat.php index efe52beb4..fb3279373 100644 --- a/src/Validator/Spec/Tag/AmpGfycat.php +++ b/src/Validator/Spec/Tag/AmpGfycat.php @@ -24,6 +24,11 @@ final class AmpGfycat extends Tag */ const ID = 'AMP-GFYCAT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GFYCAT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpGist.php b/src/Validator/Spec/Tag/AmpGist.php index b97d01ff1..44cc23dbd 100644 --- a/src/Validator/Spec/Tag/AmpGist.php +++ b/src/Validator/Spec/Tag/AmpGist.php @@ -24,6 +24,11 @@ final class AmpGist extends Tag */ const ID = 'AMP-GIST'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GIST, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpGoogleAssistantAssistjsConfig.php b/src/Validator/Spec/Tag/AmpGoogleAssistantAssistjsConfig.php index 0548dcf95..26408127d 100644 --- a/src/Validator/Spec/Tag/AmpGoogleAssistantAssistjsConfig.php +++ b/src/Validator/Spec/Tag/AmpGoogleAssistantAssistjsConfig.php @@ -22,6 +22,11 @@ final class AmpGoogleAssistantAssistjsConfig extends Tag */ const ID = 'AMP-GOOGLE-ASSISTANT-ASSISTJS-CONFIG'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GOOGLE_ASSISTANT_ASSISTJS_CONFIG, SpecRule::AMP_LAYOUT => [ diff --git a/src/Validator/Spec/Tag/AmpGoogleAssistantInlineSuggestionBar.php b/src/Validator/Spec/Tag/AmpGoogleAssistantInlineSuggestionBar.php index 4feb77339..8c135e62d 100644 --- a/src/Validator/Spec/Tag/AmpGoogleAssistantInlineSuggestionBar.php +++ b/src/Validator/Spec/Tag/AmpGoogleAssistantInlineSuggestionBar.php @@ -23,6 +23,11 @@ final class AmpGoogleAssistantInlineSuggestionBar extends Tag */ const ID = 'AMP-GOOGLE-ASSISTANT-INLINE-SUGGESTION-BAR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GOOGLE_ASSISTANT_INLINE_SUGGESTION_BAR, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceBar.php b/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceBar.php index a3a293bfd..c24546c08 100644 --- a/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceBar.php +++ b/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceBar.php @@ -23,6 +23,11 @@ final class AmpGoogleAssistantVoiceBar extends Tag */ const ID = 'AMP-GOOGLE-ASSISTANT-VOICE-BAR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GOOGLE_ASSISTANT_VOICE_BAR, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceButton.php b/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceButton.php index d393dea94..e55519e54 100644 --- a/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceButton.php +++ b/src/Validator/Spec/Tag/AmpGoogleAssistantVoiceButton.php @@ -23,6 +23,11 @@ final class AmpGoogleAssistantVoiceButton extends Tag */ const ID = 'AMP-GOOGLE-ASSISTANT-VOICE-BUTTON'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GOOGLE_ASSISTANT_VOICE_BUTTON, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpGoogleDocumentEmbed.php b/src/Validator/Spec/Tag/AmpGoogleDocumentEmbed.php index 5e85b12dc..6f3122fac 100644 --- a/src/Validator/Spec/Tag/AmpGoogleDocumentEmbed.php +++ b/src/Validator/Spec/Tag/AmpGoogleDocumentEmbed.php @@ -25,6 +25,11 @@ final class AmpGoogleDocumentEmbed extends Tag */ const ID = 'AMP-GOOGLE-DOCUMENT-EMBED'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GOOGLE_DOCUMENT_EMBED, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpGwdAnimation.php b/src/Validator/Spec/Tag/AmpGwdAnimation.php index f5367e3ca..aa4da1f7e 100644 --- a/src/Validator/Spec/Tag/AmpGwdAnimation.php +++ b/src/Validator/Spec/Tag/AmpGwdAnimation.php @@ -24,6 +24,11 @@ final class AmpGwdAnimation extends Tag */ const ID = 'AMP-GWD-ANIMATION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::GWD_ANIMATION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpHulu.php b/src/Validator/Spec/Tag/AmpHulu.php index 9b548fd2e..7942cef88 100644 --- a/src/Validator/Spec/Tag/AmpHulu.php +++ b/src/Validator/Spec/Tag/AmpHulu.php @@ -24,6 +24,11 @@ final class AmpHulu extends Tag */ const ID = 'AMP-HULU'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::HULU, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpIframe.php b/src/Validator/Spec/Tag/AmpIframe.php index 56b904985..190660b31 100644 --- a/src/Validator/Spec/Tag/AmpIframe.php +++ b/src/Validator/Spec/Tag/AmpIframe.php @@ -25,6 +25,11 @@ final class AmpIframe extends Tag */ const ID = 'AMP-IFRAME'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IFRAME, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpIframely.php b/src/Validator/Spec/Tag/AmpIframely.php index fbbb1452b..b0b2da022 100644 --- a/src/Validator/Spec/Tag/AmpIframely.php +++ b/src/Validator/Spec/Tag/AmpIframely.php @@ -24,6 +24,11 @@ final class AmpIframely extends Tag */ const ID = 'AMP-IFRAMELY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IFRAMELY, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpImaVideo.php b/src/Validator/Spec/Tag/AmpImaVideo.php index e6dc0d7ea..61f51590d 100644 --- a/src/Validator/Spec/Tag/AmpImaVideo.php +++ b/src/Validator/Spec/Tag/AmpImaVideo.php @@ -25,6 +25,11 @@ final class AmpImaVideo extends Tag */ const ID = 'AMP-IMA-VIDEO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMA_VIDEO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpImaVideoScriptTypeApplicationJson.php b/src/Validator/Spec/Tag/AmpImaVideoScriptTypeApplicationJson.php index 3409c4c06..359287acb 100644 --- a/src/Validator/Spec/Tag/AmpImaVideoScriptTypeApplicationJson.php +++ b/src/Validator/Spec/Tag/AmpImaVideoScriptTypeApplicationJson.php @@ -23,6 +23,11 @@ final class AmpImaVideoScriptTypeApplicationJson extends Tag */ const ID = 'amp-ima-video > script[type=application/json]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-ima-video > script[type=application/json]', diff --git a/src/Validator/Spec/Tag/AmpImaVideoSource.php b/src/Validator/Spec/Tag/AmpImaVideoSource.php index e69f83c6a..13fc99c45 100644 --- a/src/Validator/Spec/Tag/AmpImaVideoSource.php +++ b/src/Validator/Spec/Tag/AmpImaVideoSource.php @@ -24,6 +24,11 @@ final class AmpImaVideoSource extends Tag */ const ID = 'amp-ima-video > source'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SOURCE, SpecRule::SPEC_NAME => 'amp-ima-video > source', diff --git a/src/Validator/Spec/Tag/AmpImaVideoTrack.php b/src/Validator/Spec/Tag/AmpImaVideoTrack.php index e7e1a64c2..d0b60513b 100644 --- a/src/Validator/Spec/Tag/AmpImaVideoTrack.php +++ b/src/Validator/Spec/Tag/AmpImaVideoTrack.php @@ -23,6 +23,11 @@ final class AmpImaVideoTrack extends Tag */ const ID = 'amp-ima-video > track'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'amp-ima-video > track', diff --git a/src/Validator/Spec/Tag/AmpImaVideoTrackKindSubtitles.php b/src/Validator/Spec/Tag/AmpImaVideoTrackKindSubtitles.php index 877d7495e..79ce4626e 100644 --- a/src/Validator/Spec/Tag/AmpImaVideoTrackKindSubtitles.php +++ b/src/Validator/Spec/Tag/AmpImaVideoTrackKindSubtitles.php @@ -23,6 +23,11 @@ final class AmpImaVideoTrackKindSubtitles extends Tag */ const ID = 'amp-ima-video > track[kind=subtitles]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'amp-ima-video > track[kind=subtitles]', diff --git a/src/Validator/Spec/Tag/AmpImageLightbox.php b/src/Validator/Spec/Tag/AmpImageLightbox.php index 0e5348a97..18e4c6aa2 100644 --- a/src/Validator/Spec/Tag/AmpImageLightbox.php +++ b/src/Validator/Spec/Tag/AmpImageLightbox.php @@ -24,6 +24,11 @@ final class AmpImageLightbox extends Tag */ const ID = 'AMP-IMAGE-LIGHTBOX'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMAGE_LIGHTBOX, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpImageSlider.php b/src/Validator/Spec/Tag/AmpImageSlider.php index 7706c2671..de0fe78dd 100644 --- a/src/Validator/Spec/Tag/AmpImageSlider.php +++ b/src/Validator/Spec/Tag/AmpImageSlider.php @@ -24,6 +24,11 @@ final class AmpImageSlider extends Tag */ const ID = 'AMP-IMAGE-SLIDER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMAGE_SLIDER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpImageSliderDivFirst.php b/src/Validator/Spec/Tag/AmpImageSliderDivFirst.php index 17f0486f2..b4cb6fb13 100644 --- a/src/Validator/Spec/Tag/AmpImageSliderDivFirst.php +++ b/src/Validator/Spec/Tag/AmpImageSliderDivFirst.php @@ -23,6 +23,11 @@ final class AmpImageSliderDivFirst extends Tag */ const ID = 'AMP-IMAGE-SLIDER > DIV [first]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'AMP-IMAGE-SLIDER > DIV [first]', diff --git a/src/Validator/Spec/Tag/AmpImageSliderDivSecond.php b/src/Validator/Spec/Tag/AmpImageSliderDivSecond.php index a55f0a8a9..945cdf35f 100644 --- a/src/Validator/Spec/Tag/AmpImageSliderDivSecond.php +++ b/src/Validator/Spec/Tag/AmpImageSliderDivSecond.php @@ -23,6 +23,11 @@ final class AmpImageSliderDivSecond extends Tag */ const ID = 'AMP-IMAGE-SLIDER > DIV [second]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'AMP-IMAGE-SLIDER > DIV [second]', diff --git a/src/Validator/Spec/Tag/AmpImageSliderTransformed.php b/src/Validator/Spec/Tag/AmpImageSliderTransformed.php index b7cb621e7..157ff5337 100644 --- a/src/Validator/Spec/Tag/AmpImageSliderTransformed.php +++ b/src/Validator/Spec/Tag/AmpImageSliderTransformed.php @@ -24,6 +24,11 @@ final class AmpImageSliderTransformed extends Tag */ const ID = 'amp-image-slider (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMAGE_SLIDER, SpecRule::SPEC_NAME => 'amp-image-slider (transformed)', diff --git a/src/Validator/Spec/Tag/AmpImg.php b/src/Validator/Spec/Tag/AmpImg.php index 2c2549c1e..df0d63f6b 100644 --- a/src/Validator/Spec/Tag/AmpImg.php +++ b/src/Validator/Spec/Tag/AmpImg.php @@ -24,6 +24,11 @@ final class AmpImg extends Tag */ const ID = 'AMP-IMG'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMG, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpImgAmp4email.php b/src/Validator/Spec/Tag/AmpImgAmp4email.php index 071884119..1e9e701b8 100644 --- a/src/Validator/Spec/Tag/AmpImgAmp4email.php +++ b/src/Validator/Spec/Tag/AmpImgAmp4email.php @@ -24,6 +24,11 @@ final class AmpImgAmp4email extends Tag */ const ID = 'AMP-IMG (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMG, SpecRule::SPEC_NAME => 'AMP-IMG (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/AmpImgImgPlaceholderTransformed.php b/src/Validator/Spec/Tag/AmpImgImgPlaceholderTransformed.php index 47fd7b897..5ac630e35 100644 --- a/src/Validator/Spec/Tag/AmpImgImgPlaceholderTransformed.php +++ b/src/Validator/Spec/Tag/AmpImgImgPlaceholderTransformed.php @@ -23,6 +23,11 @@ final class AmpImgImgPlaceholderTransformed extends Tag */ const ID = 'amp-img > img[placeholder] (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IMG, SpecRule::SPEC_NAME => 'amp-img > img[placeholder] (transformed)', diff --git a/src/Validator/Spec/Tag/AmpImgImgTransformed.php b/src/Validator/Spec/Tag/AmpImgImgTransformed.php index 083e4ff6f..bbad0c357 100644 --- a/src/Validator/Spec/Tag/AmpImgImgTransformed.php +++ b/src/Validator/Spec/Tag/AmpImgImgTransformed.php @@ -23,6 +23,11 @@ final class AmpImgImgTransformed extends Tag */ const ID = 'amp-img > img (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IMG, SpecRule::SPEC_NAME => 'amp-img > img (transformed)', diff --git a/src/Validator/Spec/Tag/AmpImgTransformed.php b/src/Validator/Spec/Tag/AmpImgTransformed.php index c4307f304..c7a79de08 100644 --- a/src/Validator/Spec/Tag/AmpImgTransformed.php +++ b/src/Validator/Spec/Tag/AmpImgTransformed.php @@ -24,6 +24,11 @@ final class AmpImgTransformed extends Tag */ const ID = 'amp-img (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMG, SpecRule::SPEC_NAME => 'amp-img (transformed)', diff --git a/src/Validator/Spec/Tag/AmpImgur.php b/src/Validator/Spec/Tag/AmpImgur.php index d4d881fb3..e4b63b970 100644 --- a/src/Validator/Spec/Tag/AmpImgur.php +++ b/src/Validator/Spec/Tag/AmpImgur.php @@ -24,6 +24,11 @@ final class AmpImgur extends Tag */ const ID = 'AMP-IMGUR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IMGUR, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpInlineGallery.php b/src/Validator/Spec/Tag/AmpInlineGallery.php index 3cb0fc4f3..58f7fcb03 100644 --- a/src/Validator/Spec/Tag/AmpInlineGallery.php +++ b/src/Validator/Spec/Tag/AmpInlineGallery.php @@ -23,6 +23,11 @@ final class AmpInlineGallery extends Tag */ const ID = 'AMP-INLINE-GALLERY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::INLINE_GALLERY, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpInlineGalleryPagination.php b/src/Validator/Spec/Tag/AmpInlineGalleryPagination.php index e466c647d..dd2ec9c86 100644 --- a/src/Validator/Spec/Tag/AmpInlineGalleryPagination.php +++ b/src/Validator/Spec/Tag/AmpInlineGalleryPagination.php @@ -23,6 +23,11 @@ final class AmpInlineGalleryPagination extends Tag */ const ID = 'amp-inline-gallery-pagination'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::INLINE_GALLERY_PAGINATION, SpecRule::SPEC_NAME => 'amp-inline-gallery-pagination', diff --git a/src/Validator/Spec/Tag/AmpInlineGalleryPaginationInset.php b/src/Validator/Spec/Tag/AmpInlineGalleryPaginationInset.php index a6a7cf070..d08481def 100644 --- a/src/Validator/Spec/Tag/AmpInlineGalleryPaginationInset.php +++ b/src/Validator/Spec/Tag/AmpInlineGalleryPaginationInset.php @@ -24,6 +24,11 @@ final class AmpInlineGalleryPaginationInset extends Tag */ const ID = 'amp-inline-gallery-pagination [inset]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::INLINE_GALLERY_PAGINATION, SpecRule::SPEC_NAME => 'amp-inline-gallery-pagination [inset]', diff --git a/src/Validator/Spec/Tag/AmpInlineGalleryThumbnails.php b/src/Validator/Spec/Tag/AmpInlineGalleryThumbnails.php index 1f209fc2d..f79a73ba1 100644 --- a/src/Validator/Spec/Tag/AmpInlineGalleryThumbnails.php +++ b/src/Validator/Spec/Tag/AmpInlineGalleryThumbnails.php @@ -24,6 +24,11 @@ final class AmpInlineGalleryThumbnails extends Tag */ const ID = 'AMP-INLINE-GALLERY-THUMBNAILS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::INLINE_GALLERY_THUMBNAILS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpInstagram.php b/src/Validator/Spec/Tag/AmpInstagram.php index 8d92c4c16..832cdcdc8 100644 --- a/src/Validator/Spec/Tag/AmpInstagram.php +++ b/src/Validator/Spec/Tag/AmpInstagram.php @@ -24,6 +24,11 @@ final class AmpInstagram extends Tag */ const ID = 'AMP-INSTAGRAM'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::INSTAGRAM, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpInstallServiceworker.php b/src/Validator/Spec/Tag/AmpInstallServiceworker.php index b2607290e..153eeb84b 100644 --- a/src/Validator/Spec/Tag/AmpInstallServiceworker.php +++ b/src/Validator/Spec/Tag/AmpInstallServiceworker.php @@ -24,6 +24,11 @@ final class AmpInstallServiceworker extends Tag */ const ID = 'AMP-INSTALL-SERVICEWORKER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::INSTALL_SERVICEWORKER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpIzlesene.php b/src/Validator/Spec/Tag/AmpIzlesene.php index e332c6c0a..1bfe6e6ae 100644 --- a/src/Validator/Spec/Tag/AmpIzlesene.php +++ b/src/Validator/Spec/Tag/AmpIzlesene.php @@ -24,6 +24,11 @@ final class AmpIzlesene extends Tag */ const ID = 'AMP-IZLESENE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::IZLESENE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpJwplayer.php b/src/Validator/Spec/Tag/AmpJwplayer.php index 2b4e7fa34..c61ad137d 100644 --- a/src/Validator/Spec/Tag/AmpJwplayer.php +++ b/src/Validator/Spec/Tag/AmpJwplayer.php @@ -23,6 +23,11 @@ final class AmpJwplayer extends Tag */ const ID = 'AMP-JWPLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::JWPLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpKalturaPlayer.php b/src/Validator/Spec/Tag/AmpKalturaPlayer.php index 707ceeb6a..387b398fd 100644 --- a/src/Validator/Spec/Tag/AmpKalturaPlayer.php +++ b/src/Validator/Spec/Tag/AmpKalturaPlayer.php @@ -24,6 +24,11 @@ final class AmpKalturaPlayer extends Tag */ const ID = 'AMP-KALTURA-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::KALTURA_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpLayout.php b/src/Validator/Spec/Tag/AmpLayout.php index 2aee16a85..327b8c52e 100644 --- a/src/Validator/Spec/Tag/AmpLayout.php +++ b/src/Validator/Spec/Tag/AmpLayout.php @@ -23,6 +23,11 @@ final class AmpLayout extends Tag */ const ID = 'AMP-LAYOUT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LAYOUT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpLightbox.php b/src/Validator/Spec/Tag/AmpLightbox.php index 2d80133fe..c9ffbc1f2 100644 --- a/src/Validator/Spec/Tag/AmpLightbox.php +++ b/src/Validator/Spec/Tag/AmpLightbox.php @@ -24,6 +24,11 @@ final class AmpLightbox extends Tag */ const ID = 'AMP-LIGHTBOX'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LIGHTBOX, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpLightboxAmp4ads.php b/src/Validator/Spec/Tag/AmpLightboxAmp4ads.php index 9c0977a95..38db33981 100644 --- a/src/Validator/Spec/Tag/AmpLightboxAmp4ads.php +++ b/src/Validator/Spec/Tag/AmpLightboxAmp4ads.php @@ -24,6 +24,11 @@ final class AmpLightboxAmp4ads extends Tag */ const ID = 'amp-lightbox [AMP4ADS]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LIGHTBOX, SpecRule::SPEC_NAME => 'amp-lightbox [AMP4ADS]', diff --git a/src/Validator/Spec/Tag/AmpLinkRewriter.php b/src/Validator/Spec/Tag/AmpLinkRewriter.php index 7004c9325..42327c995 100644 --- a/src/Validator/Spec/Tag/AmpLinkRewriter.php +++ b/src/Validator/Spec/Tag/AmpLinkRewriter.php @@ -22,6 +22,11 @@ final class AmpLinkRewriter extends Tag */ const ID = 'AMP-LINK-REWRITER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LINK_REWRITER, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpLinkRewriterExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpLinkRewriterExtensionJsonScript.php index 1ec563d42..93fadbb5b 100644 --- a/src/Validator/Spec/Tag/AmpLinkRewriterExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpLinkRewriterExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpLinkRewriterExtensionJsonScript extends Tag */ const ID = 'amp-link-rewriter extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-link-rewriter extension .json script', diff --git a/src/Validator/Spec/Tag/AmpList.php b/src/Validator/Spec/Tag/AmpList.php index e13baeb0e..f3766e459 100644 --- a/src/Validator/Spec/Tag/AmpList.php +++ b/src/Validator/Spec/Tag/AmpList.php @@ -25,6 +25,11 @@ final class AmpList extends Tag */ const ID = 'AMP-LIST'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LIST_, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpListAmp4email.php b/src/Validator/Spec/Tag/AmpListAmp4email.php index e1eda0bbd..fbb9ff032 100644 --- a/src/Validator/Spec/Tag/AmpListAmp4email.php +++ b/src/Validator/Spec/Tag/AmpListAmp4email.php @@ -25,6 +25,11 @@ final class AmpListAmp4email extends Tag */ const ID = 'AMP-LIST (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LIST_, SpecRule::SPEC_NAME => 'AMP-LIST (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/AmpListDivFetchError.php b/src/Validator/Spec/Tag/AmpListDivFetchError.php index 14d285a92..adae6251d 100644 --- a/src/Validator/Spec/Tag/AmpListDivFetchError.php +++ b/src/Validator/Spec/Tag/AmpListDivFetchError.php @@ -23,6 +23,11 @@ final class AmpListDivFetchError extends Tag */ const ID = 'AMP-LIST DIV [fetch-error]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'AMP-LIST DIV [fetch-error]', diff --git a/src/Validator/Spec/Tag/AmpListLoadMore.php b/src/Validator/Spec/Tag/AmpListLoadMore.php index e0499b87e..3bb88c678 100644 --- a/src/Validator/Spec/Tag/AmpListLoadMore.php +++ b/src/Validator/Spec/Tag/AmpListLoadMore.php @@ -22,6 +22,11 @@ final class AmpListLoadMore extends Tag */ const ID = 'AMP-LIST-LOAD-MORE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LIST_LOAD_MORE, SpecRule::MANDATORY_PARENT => Extension::LIST_, diff --git a/src/Validator/Spec/Tag/AmpListLoadMoreButtonLoadMoreClickable.php b/src/Validator/Spec/Tag/AmpListLoadMoreButtonLoadMoreClickable.php index 7d9f72f33..5068eed8e 100644 --- a/src/Validator/Spec/Tag/AmpListLoadMoreButtonLoadMoreClickable.php +++ b/src/Validator/Spec/Tag/AmpListLoadMoreButtonLoadMoreClickable.php @@ -24,6 +24,11 @@ final class AmpListLoadMoreButtonLoadMoreClickable extends Tag */ const ID = 'amp-list-load-more button[load-more-clickable]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BUTTON, SpecRule::SPEC_NAME => 'amp-list-load-more button[load-more-clickable]', diff --git a/src/Validator/Spec/Tag/AmpLiveList.php b/src/Validator/Spec/Tag/AmpLiveList.php index 5f91ad898..ebbb4c311 100644 --- a/src/Validator/Spec/Tag/AmpLiveList.php +++ b/src/Validator/Spec/Tag/AmpLiveList.php @@ -24,6 +24,11 @@ final class AmpLiveList extends Tag */ const ID = 'AMP-LIVE-LIST'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::LIVE_LIST, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpLiveListItems.php b/src/Validator/Spec/Tag/AmpLiveListItems.php index 58f01c2b6..1b227aa43 100644 --- a/src/Validator/Spec/Tag/AmpLiveListItems.php +++ b/src/Validator/Spec/Tag/AmpLiveListItems.php @@ -21,6 +21,11 @@ final class AmpLiveListItems extends Tag */ const ID = 'AMP-LIVE-LIST [items]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-LIVE-LIST [items]', diff --git a/src/Validator/Spec/Tag/AmpLiveListItemsItem.php b/src/Validator/Spec/Tag/AmpLiveListItemsItem.php index 0fff62be8..4b56244c4 100644 --- a/src/Validator/Spec/Tag/AmpLiveListItemsItem.php +++ b/src/Validator/Spec/Tag/AmpLiveListItemsItem.php @@ -22,6 +22,11 @@ final class AmpLiveListItemsItem extends Tag */ const ID = 'AMP-LIVE-LIST [items] item'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-LIVE-LIST [items] item', diff --git a/src/Validator/Spec/Tag/AmpLiveListPagination.php b/src/Validator/Spec/Tag/AmpLiveListPagination.php index 898cce393..83bcb127d 100644 --- a/src/Validator/Spec/Tag/AmpLiveListPagination.php +++ b/src/Validator/Spec/Tag/AmpLiveListPagination.php @@ -21,6 +21,11 @@ final class AmpLiveListPagination extends Tag */ const ID = 'AMP-LIVE-LIST [pagination]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-LIVE-LIST [pagination]', diff --git a/src/Validator/Spec/Tag/AmpLiveListUpdate.php b/src/Validator/Spec/Tag/AmpLiveListUpdate.php index 880a5fb6a..8bf22043a 100644 --- a/src/Validator/Spec/Tag/AmpLiveListUpdate.php +++ b/src/Validator/Spec/Tag/AmpLiveListUpdate.php @@ -21,6 +21,11 @@ final class AmpLiveListUpdate extends Tag */ const ID = 'AMP-LIVE-LIST [update]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-LIVE-LIST [update]', diff --git a/src/Validator/Spec/Tag/AmpMathml.php b/src/Validator/Spec/Tag/AmpMathml.php index 427c58700..1d89fc32a 100644 --- a/src/Validator/Spec/Tag/AmpMathml.php +++ b/src/Validator/Spec/Tag/AmpMathml.php @@ -24,6 +24,11 @@ final class AmpMathml extends Tag */ const ID = 'AMP-MATHML'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::MATHML, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpMegaMenu.php b/src/Validator/Spec/Tag/AmpMegaMenu.php index b7c359753..19eeefe5f 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenu.php +++ b/src/Validator/Spec/Tag/AmpMegaMenu.php @@ -24,6 +24,11 @@ final class AmpMegaMenu extends Tag */ const ID = 'AMP-MEGA-MENU'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::MEGA_MENU, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpMegaMenuAmpList.php b/src/Validator/Spec/Tag/AmpMegaMenuAmpList.php index 1ee8f0424..c79678fb3 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenuAmpList.php +++ b/src/Validator/Spec/Tag/AmpMegaMenuAmpList.php @@ -21,6 +21,11 @@ final class AmpMegaMenuAmpList extends Tag */ const ID = 'AMP-MEGA-MENU > AMP-LIST'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-MEGA-MENU > AMP-LIST', diff --git a/src/Validator/Spec/Tag/AmpMegaMenuAmpListTemplate.php b/src/Validator/Spec/Tag/AmpMegaMenuAmpListTemplate.php index 9063bc871..3b4f0f654 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenuAmpListTemplate.php +++ b/src/Validator/Spec/Tag/AmpMegaMenuAmpListTemplate.php @@ -21,6 +21,11 @@ final class AmpMegaMenuAmpListTemplate extends Tag */ const ID = 'AMP-MEGA-MENU > AMP-LIST > TEMPLATE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-MEGA-MENU > AMP-LIST > TEMPLATE', diff --git a/src/Validator/Spec/Tag/AmpMegaMenuItemContent.php b/src/Validator/Spec/Tag/AmpMegaMenuItemContent.php index e7d869da0..bf8c2b24a 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenuItemContent.php +++ b/src/Validator/Spec/Tag/AmpMegaMenuItemContent.php @@ -21,6 +21,11 @@ final class AmpMegaMenuItemContent extends Tag */ const ID = 'AMP-MEGA-MENU item-content'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-MEGA-MENU item-content', diff --git a/src/Validator/Spec/Tag/AmpMegaMenuItemHeading.php b/src/Validator/Spec/Tag/AmpMegaMenuItemHeading.php index bc9aba193..7af811742 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenuItemHeading.php +++ b/src/Validator/Spec/Tag/AmpMegaMenuItemHeading.php @@ -21,6 +21,11 @@ final class AmpMegaMenuItemHeading extends Tag */ const ID = 'AMP-MEGA-MENU item-heading'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-MEGA-MENU item-heading', diff --git a/src/Validator/Spec/Tag/AmpMegaMenuNav.php b/src/Validator/Spec/Tag/AmpMegaMenuNav.php index 5bf32372b..1c223d657 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenuNav.php +++ b/src/Validator/Spec/Tag/AmpMegaMenuNav.php @@ -20,6 +20,11 @@ final class AmpMegaMenuNav extends Tag */ const ID = 'AMP-MEGA-MENU > NAV'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-MEGA-MENU > NAV', diff --git a/src/Validator/Spec/Tag/AmpMegaMenuNavUlOl.php b/src/Validator/Spec/Tag/AmpMegaMenuNavUlOl.php index 4772f48da..82da9d4c7 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenuNavUlOl.php +++ b/src/Validator/Spec/Tag/AmpMegaMenuNavUlOl.php @@ -21,6 +21,11 @@ final class AmpMegaMenuNavUlOl extends Tag */ const ID = 'AMP-MEGA-MENU NAV > UL/OL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-MEGA-MENU NAV > UL/OL', diff --git a/src/Validator/Spec/Tag/AmpMegaMenuNavUlOlLi.php b/src/Validator/Spec/Tag/AmpMegaMenuNavUlOlLi.php index b6f02b6a5..7e1b46c8d 100644 --- a/src/Validator/Spec/Tag/AmpMegaMenuNavUlOlLi.php +++ b/src/Validator/Spec/Tag/AmpMegaMenuNavUlOlLi.php @@ -20,6 +20,11 @@ final class AmpMegaMenuNavUlOlLi extends Tag */ const ID = 'AMP-MEGA-MENU NAV > UL/OL > LI'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-MEGA-MENU NAV > UL/OL > LI', diff --git a/src/Validator/Spec/Tag/AmpMegaphoneDataEpisode.php b/src/Validator/Spec/Tag/AmpMegaphoneDataEpisode.php index 29f4b3ce8..8edfa85ba 100644 --- a/src/Validator/Spec/Tag/AmpMegaphoneDataEpisode.php +++ b/src/Validator/Spec/Tag/AmpMegaphoneDataEpisode.php @@ -24,6 +24,11 @@ final class AmpMegaphoneDataEpisode extends Tag */ const ID = 'amp-megaphone [data-episode]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::MEGAPHONE, SpecRule::SPEC_NAME => 'amp-megaphone [data-episode]', diff --git a/src/Validator/Spec/Tag/AmpMegaphoneDataPlaylist.php b/src/Validator/Spec/Tag/AmpMegaphoneDataPlaylist.php index 8bba78f27..ad38a7648 100644 --- a/src/Validator/Spec/Tag/AmpMegaphoneDataPlaylist.php +++ b/src/Validator/Spec/Tag/AmpMegaphoneDataPlaylist.php @@ -24,6 +24,11 @@ final class AmpMegaphoneDataPlaylist extends Tag */ const ID = 'amp-megaphone [data-playlist]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::MEGAPHONE, SpecRule::SPEC_NAME => 'amp-megaphone [data-playlist]', diff --git a/src/Validator/Spec/Tag/AmpMinuteMediaPlayer.php b/src/Validator/Spec/Tag/AmpMinuteMediaPlayer.php index 484c467b8..b5782fc88 100644 --- a/src/Validator/Spec/Tag/AmpMinuteMediaPlayer.php +++ b/src/Validator/Spec/Tag/AmpMinuteMediaPlayer.php @@ -24,6 +24,11 @@ final class AmpMinuteMediaPlayer extends Tag */ const ID = 'AMP-MINUTE-MEDIA-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::MINUTE_MEDIA_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpMowplayer.php b/src/Validator/Spec/Tag/AmpMowplayer.php index ba1d3d906..0a719eb30 100644 --- a/src/Validator/Spec/Tag/AmpMowplayer.php +++ b/src/Validator/Spec/Tag/AmpMowplayer.php @@ -24,6 +24,11 @@ final class AmpMowplayer extends Tag */ const ID = 'AMP-MOWPLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::MOWPLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpNestedMenu.php b/src/Validator/Spec/Tag/AmpNestedMenu.php index 82354230e..caaa2e025 100644 --- a/src/Validator/Spec/Tag/AmpNestedMenu.php +++ b/src/Validator/Spec/Tag/AmpNestedMenu.php @@ -25,6 +25,11 @@ final class AmpNestedMenu extends Tag */ const ID = 'AMP-NESTED-MENU'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::NESTED_MENU, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpNextPageFooter.php b/src/Validator/Spec/Tag/AmpNextPageFooter.php index cc9002c7c..b3cc6ac55 100644 --- a/src/Validator/Spec/Tag/AmpNextPageFooter.php +++ b/src/Validator/Spec/Tag/AmpNextPageFooter.php @@ -22,6 +22,11 @@ final class AmpNextPageFooter extends Tag */ const ID = 'AMP-NEXT-PAGE > [footer]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-NEXT-PAGE > [footer]', diff --git a/src/Validator/Spec/Tag/AmpNextPageRecommendationBox.php b/src/Validator/Spec/Tag/AmpNextPageRecommendationBox.php index 85afa0337..852246460 100644 --- a/src/Validator/Spec/Tag/AmpNextPageRecommendationBox.php +++ b/src/Validator/Spec/Tag/AmpNextPageRecommendationBox.php @@ -22,6 +22,11 @@ final class AmpNextPageRecommendationBox extends Tag */ const ID = 'AMP-NEXT-PAGE > [recommendation-box]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-NEXT-PAGE > [recommendation-box]', diff --git a/src/Validator/Spec/Tag/AmpNextPageScriptTypeApplicationJson.php b/src/Validator/Spec/Tag/AmpNextPageScriptTypeApplicationJson.php index 497f01706..8602dd411 100644 --- a/src/Validator/Spec/Tag/AmpNextPageScriptTypeApplicationJson.php +++ b/src/Validator/Spec/Tag/AmpNextPageScriptTypeApplicationJson.php @@ -23,6 +23,11 @@ final class AmpNextPageScriptTypeApplicationJson extends Tag */ const ID = 'AMP-NEXT-PAGE > SCRIPT[type=application/json]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'AMP-NEXT-PAGE > SCRIPT[type=application/json]', diff --git a/src/Validator/Spec/Tag/AmpNextPageSeparator.php b/src/Validator/Spec/Tag/AmpNextPageSeparator.php index 4d669092d..4b370d71b 100644 --- a/src/Validator/Spec/Tag/AmpNextPageSeparator.php +++ b/src/Validator/Spec/Tag/AmpNextPageSeparator.php @@ -22,6 +22,11 @@ final class AmpNextPageSeparator extends Tag */ const ID = 'AMP-NEXT-PAGE > [separator]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-NEXT-PAGE > [separator]', diff --git a/src/Validator/Spec/Tag/AmpNextPageTypeAdsense.php b/src/Validator/Spec/Tag/AmpNextPageTypeAdsense.php index 0a40aa420..b6ed260c6 100644 --- a/src/Validator/Spec/Tag/AmpNextPageTypeAdsense.php +++ b/src/Validator/Spec/Tag/AmpNextPageTypeAdsense.php @@ -22,6 +22,11 @@ final class AmpNextPageTypeAdsense extends Tag */ const ID = 'amp-next-page [type=adsense]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::NEXT_PAGE, SpecRule::SPEC_NAME => 'amp-next-page [type=adsense]', diff --git a/src/Validator/Spec/Tag/AmpNextPageWithInlineConfig.php b/src/Validator/Spec/Tag/AmpNextPageWithInlineConfig.php index 7baf67d5e..97adb5fff 100644 --- a/src/Validator/Spec/Tag/AmpNextPageWithInlineConfig.php +++ b/src/Validator/Spec/Tag/AmpNextPageWithInlineConfig.php @@ -22,6 +22,11 @@ final class AmpNextPageWithInlineConfig extends Tag */ const ID = 'amp-next-page with inline config'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::NEXT_PAGE, SpecRule::SPEC_NAME => 'amp-next-page with inline config', diff --git a/src/Validator/Spec/Tag/AmpNextPageWithSrcAttribute.php b/src/Validator/Spec/Tag/AmpNextPageWithSrcAttribute.php index cc0b2a512..bf4cd7204 100644 --- a/src/Validator/Spec/Tag/AmpNextPageWithSrcAttribute.php +++ b/src/Validator/Spec/Tag/AmpNextPageWithSrcAttribute.php @@ -23,6 +23,11 @@ final class AmpNextPageWithSrcAttribute extends Tag */ const ID = 'amp-next-page with src attribute'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::NEXT_PAGE, SpecRule::SPEC_NAME => 'amp-next-page with src attribute', diff --git a/src/Validator/Spec/Tag/AmpNexxtvPlayer.php b/src/Validator/Spec/Tag/AmpNexxtvPlayer.php index c07b236a6..715cb6d00 100644 --- a/src/Validator/Spec/Tag/AmpNexxtvPlayer.php +++ b/src/Validator/Spec/Tag/AmpNexxtvPlayer.php @@ -24,6 +24,11 @@ final class AmpNexxtvPlayer extends Tag */ const ID = 'AMP-NEXXTV-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::NEXXTV_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpO2Player.php b/src/Validator/Spec/Tag/AmpO2Player.php index c00c108d9..4b9c312e3 100644 --- a/src/Validator/Spec/Tag/AmpO2Player.php +++ b/src/Validator/Spec/Tag/AmpO2Player.php @@ -24,6 +24,11 @@ final class AmpO2Player extends Tag */ const ID = 'AMP-O2-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::O2_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpOnetapGoogle.php b/src/Validator/Spec/Tag/AmpOnetapGoogle.php index 947108e2c..7909a3b79 100644 --- a/src/Validator/Spec/Tag/AmpOnetapGoogle.php +++ b/src/Validator/Spec/Tag/AmpOnetapGoogle.php @@ -25,6 +25,11 @@ final class AmpOnetapGoogle extends Tag */ const ID = 'AMP-ONETAP-GOOGLE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ONETAP_GOOGLE, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpOoyalaPlayer.php b/src/Validator/Spec/Tag/AmpOoyalaPlayer.php index 82e69d730..6ece01937 100644 --- a/src/Validator/Spec/Tag/AmpOoyalaPlayer.php +++ b/src/Validator/Spec/Tag/AmpOoyalaPlayer.php @@ -24,6 +24,11 @@ final class AmpOoyalaPlayer extends Tag */ const ID = 'AMP-OOYALA-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::OOYALA_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpOrientationObserver.php b/src/Validator/Spec/Tag/AmpOrientationObserver.php index 02f30c383..03ba4fffe 100644 --- a/src/Validator/Spec/Tag/AmpOrientationObserver.php +++ b/src/Validator/Spec/Tag/AmpOrientationObserver.php @@ -24,6 +24,11 @@ final class AmpOrientationObserver extends Tag */ const ID = 'AMP-ORIENTATION-OBSERVER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::ORIENTATION_OBSERVER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpPanZoom.php b/src/Validator/Spec/Tag/AmpPanZoom.php index 8f5d58e52..c4ab43fbc 100644 --- a/src/Validator/Spec/Tag/AmpPanZoom.php +++ b/src/Validator/Spec/Tag/AmpPanZoom.php @@ -24,6 +24,11 @@ final class AmpPanZoom extends Tag */ const ID = 'AMP-PAN-ZOOM'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::PAN_ZOOM, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpPinterest.php b/src/Validator/Spec/Tag/AmpPinterest.php index 92e992612..26d85244d 100644 --- a/src/Validator/Spec/Tag/AmpPinterest.php +++ b/src/Validator/Spec/Tag/AmpPinterest.php @@ -24,6 +24,11 @@ final class AmpPinterest extends Tag */ const ID = 'AMP-PINTEREST'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::PINTEREST, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpPixel.php b/src/Validator/Spec/Tag/AmpPixel.php index a0139285b..a64dab710 100644 --- a/src/Validator/Spec/Tag/AmpPixel.php +++ b/src/Validator/Spec/Tag/AmpPixel.php @@ -25,6 +25,11 @@ final class AmpPixel extends Tag */ const ID = 'AMP-PIXEL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::PIXEL, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpPlaybuzz.php b/src/Validator/Spec/Tag/AmpPlaybuzz.php index cf7335b37..3f30cb917 100644 --- a/src/Validator/Spec/Tag/AmpPlaybuzz.php +++ b/src/Validator/Spec/Tag/AmpPlaybuzz.php @@ -24,6 +24,11 @@ final class AmpPlaybuzz extends Tag */ const ID = 'AMP-PLAYBUZZ'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::PLAYBUZZ, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpPositionObserver.php b/src/Validator/Spec/Tag/AmpPositionObserver.php index 5f6a7eef6..6f228364a 100644 --- a/src/Validator/Spec/Tag/AmpPositionObserver.php +++ b/src/Validator/Spec/Tag/AmpPositionObserver.php @@ -24,6 +24,11 @@ final class AmpPositionObserver extends Tag */ const ID = 'AMP-POSITION-OBSERVER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::POSITION_OBSERVER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpPowrPlayer.php b/src/Validator/Spec/Tag/AmpPowrPlayer.php index fbe979d47..2091dd272 100644 --- a/src/Validator/Spec/Tag/AmpPowrPlayer.php +++ b/src/Validator/Spec/Tag/AmpPowrPlayer.php @@ -24,6 +24,11 @@ final class AmpPowrPlayer extends Tag */ const ID = 'AMP-POWR-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::POWR_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpReachPlayer.php b/src/Validator/Spec/Tag/AmpReachPlayer.php index 11e89f2de..b8760ff18 100644 --- a/src/Validator/Spec/Tag/AmpReachPlayer.php +++ b/src/Validator/Spec/Tag/AmpReachPlayer.php @@ -24,6 +24,11 @@ final class AmpReachPlayer extends Tag */ const ID = 'AMP-REACH-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::REACH_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpRecaptchaInput.php b/src/Validator/Spec/Tag/AmpRecaptchaInput.php index 0d3236c92..20807ed08 100644 --- a/src/Validator/Spec/Tag/AmpRecaptchaInput.php +++ b/src/Validator/Spec/Tag/AmpRecaptchaInput.php @@ -25,6 +25,11 @@ final class AmpRecaptchaInput extends Tag */ const ID = 'AMP-RECAPTCHA-INPUT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::RECAPTCHA_INPUT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpRedbullPlayer.php b/src/Validator/Spec/Tag/AmpRedbullPlayer.php index 83570051b..ace607e6f 100644 --- a/src/Validator/Spec/Tag/AmpRedbullPlayer.php +++ b/src/Validator/Spec/Tag/AmpRedbullPlayer.php @@ -24,6 +24,11 @@ final class AmpRedbullPlayer extends Tag */ const ID = 'AMP-REDBULL-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::REDBULL_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpReddit.php b/src/Validator/Spec/Tag/AmpReddit.php index d1da6a36d..078262a8c 100644 --- a/src/Validator/Spec/Tag/AmpReddit.php +++ b/src/Validator/Spec/Tag/AmpReddit.php @@ -24,6 +24,11 @@ final class AmpReddit extends Tag */ const ID = 'AMP-REDDIT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::REDDIT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpRiddleQuiz.php b/src/Validator/Spec/Tag/AmpRiddleQuiz.php index 6d8ff443d..02620f096 100644 --- a/src/Validator/Spec/Tag/AmpRiddleQuiz.php +++ b/src/Validator/Spec/Tag/AmpRiddleQuiz.php @@ -24,6 +24,11 @@ final class AmpRiddleQuiz extends Tag */ const ID = 'AMP-RIDDLE-QUIZ'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::RIDDLE_QUIZ, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpScript.php b/src/Validator/Spec/Tag/AmpScript.php index 8a869ea04..8378ed771 100644 --- a/src/Validator/Spec/Tag/AmpScript.php +++ b/src/Validator/Spec/Tag/AmpScript.php @@ -25,6 +25,11 @@ final class AmpScript extends Tag */ const ID = 'AMP-SCRIPT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SCRIPT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpScriptExtensionLocalScript.php b/src/Validator/Spec/Tag/AmpScriptExtensionLocalScript.php index 1a25d2a7d..cc9c54947 100644 --- a/src/Validator/Spec/Tag/AmpScriptExtensionLocalScript.php +++ b/src/Validator/Spec/Tag/AmpScriptExtensionLocalScript.php @@ -24,6 +24,11 @@ final class AmpScriptExtensionLocalScript extends Tag */ const ID = 'amp-script extension local script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-script extension local script', diff --git a/src/Validator/Spec/Tag/AmpSelector.php b/src/Validator/Spec/Tag/AmpSelector.php index e6620095f..a3a343e80 100644 --- a/src/Validator/Spec/Tag/AmpSelector.php +++ b/src/Validator/Spec/Tag/AmpSelector.php @@ -24,6 +24,11 @@ final class AmpSelector extends Tag */ const ID = 'AMP-SELECTOR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SELECTOR, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpSelectorChild.php b/src/Validator/Spec/Tag/AmpSelectorChild.php index 7786a9383..e33b0b853 100644 --- a/src/Validator/Spec/Tag/AmpSelectorChild.php +++ b/src/Validator/Spec/Tag/AmpSelectorChild.php @@ -20,6 +20,11 @@ final class AmpSelectorChild extends Tag */ const ID = 'AMP-SELECTOR child'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-SELECTOR child', diff --git a/src/Validator/Spec/Tag/AmpSelectorOption.php b/src/Validator/Spec/Tag/AmpSelectorOption.php index ca3210bd5..74b710024 100644 --- a/src/Validator/Spec/Tag/AmpSelectorOption.php +++ b/src/Validator/Spec/Tag/AmpSelectorOption.php @@ -21,6 +21,11 @@ final class AmpSelectorOption extends Tag */ const ID = 'AMP-SELECTOR option'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-SELECTOR option', diff --git a/src/Validator/Spec/Tag/AmpSidebar.php b/src/Validator/Spec/Tag/AmpSidebar.php index b6d8b66fc..21e72b615 100644 --- a/src/Validator/Spec/Tag/AmpSidebar.php +++ b/src/Validator/Spec/Tag/AmpSidebar.php @@ -24,6 +24,11 @@ final class AmpSidebar extends Tag */ const ID = 'amp-sidebar'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SIDEBAR, SpecRule::SPEC_NAME => 'amp-sidebar', diff --git a/src/Validator/Spec/Tag/AmpSidebarAmp4email.php b/src/Validator/Spec/Tag/AmpSidebarAmp4email.php index 22ae446b9..7bbeeeb51 100644 --- a/src/Validator/Spec/Tag/AmpSidebarAmp4email.php +++ b/src/Validator/Spec/Tag/AmpSidebarAmp4email.php @@ -24,6 +24,11 @@ final class AmpSidebarAmp4email extends Tag */ const ID = 'amp-sidebar (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SIDEBAR, SpecRule::SPEC_NAME => 'amp-sidebar (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/AmpSidebarNav.php b/src/Validator/Spec/Tag/AmpSidebarNav.php index 4110e3ee5..7d02a9ffe 100644 --- a/src/Validator/Spec/Tag/AmpSidebarNav.php +++ b/src/Validator/Spec/Tag/AmpSidebarNav.php @@ -23,6 +23,11 @@ final class AmpSidebarNav extends Tag */ const ID = 'amp-sidebar > nav'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::NAV, SpecRule::SPEC_NAME => 'amp-sidebar > nav', diff --git a/src/Validator/Spec/Tag/AmpSkimlinks.php b/src/Validator/Spec/Tag/AmpSkimlinks.php index aa5c2decd..c7acbaaf9 100644 --- a/src/Validator/Spec/Tag/AmpSkimlinks.php +++ b/src/Validator/Spec/Tag/AmpSkimlinks.php @@ -24,6 +24,11 @@ final class AmpSkimlinks extends Tag */ const ID = 'AMP-SKIMLINKS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SKIMLINKS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpSmartlinks.php b/src/Validator/Spec/Tag/AmpSmartlinks.php index 2d02220b7..4c86d2e0b 100644 --- a/src/Validator/Spec/Tag/AmpSmartlinks.php +++ b/src/Validator/Spec/Tag/AmpSmartlinks.php @@ -24,6 +24,11 @@ final class AmpSmartlinks extends Tag */ const ID = 'AMP-SMARTLINKS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SMARTLINKS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpSocialShare.php b/src/Validator/Spec/Tag/AmpSocialShare.php index 70547aa97..01f26c30e 100644 --- a/src/Validator/Spec/Tag/AmpSocialShare.php +++ b/src/Validator/Spec/Tag/AmpSocialShare.php @@ -25,6 +25,11 @@ final class AmpSocialShare extends Tag */ const ID = 'AMP-SOCIAL-SHARE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SOCIAL_SHARE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpSoundcloud.php b/src/Validator/Spec/Tag/AmpSoundcloud.php index 90f90d0d5..6c040a782 100644 --- a/src/Validator/Spec/Tag/AmpSoundcloud.php +++ b/src/Validator/Spec/Tag/AmpSoundcloud.php @@ -24,6 +24,11 @@ final class AmpSoundcloud extends Tag */ const ID = 'AMP-SOUNDCLOUD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SOUNDCLOUD, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpSpringboardPlayer.php b/src/Validator/Spec/Tag/AmpSpringboardPlayer.php index 1d9d61ed5..c550bad36 100644 --- a/src/Validator/Spec/Tag/AmpSpringboardPlayer.php +++ b/src/Validator/Spec/Tag/AmpSpringboardPlayer.php @@ -24,6 +24,11 @@ final class AmpSpringboardPlayer extends Tag */ const ID = 'AMP-SPRINGBOARD-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SPRINGBOARD_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpState.php b/src/Validator/Spec/Tag/AmpState.php index ebfaa2bbf..f2bbfd19f 100644 --- a/src/Validator/Spec/Tag/AmpState.php +++ b/src/Validator/Spec/Tag/AmpState.php @@ -24,6 +24,11 @@ final class AmpState extends Tag */ const ID = 'amp-state'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STATE, SpecRule::SPEC_NAME => 'amp-state', diff --git a/src/Validator/Spec/Tag/AmpStateAmp4email.php b/src/Validator/Spec/Tag/AmpStateAmp4email.php index 911b2a3ac..2578e6ff5 100644 --- a/src/Validator/Spec/Tag/AmpStateAmp4email.php +++ b/src/Validator/Spec/Tag/AmpStateAmp4email.php @@ -22,6 +22,11 @@ final class AmpStateAmp4email extends Tag */ const ID = 'amp-state (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STATE, SpecRule::SPEC_NAME => 'amp-state (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/AmpStickyAd.php b/src/Validator/Spec/Tag/AmpStickyAd.php index c713d1a20..7a78d9045 100644 --- a/src/Validator/Spec/Tag/AmpStickyAd.php +++ b/src/Validator/Spec/Tag/AmpStickyAd.php @@ -23,6 +23,11 @@ final class AmpStickyAd extends Tag */ const ID = 'AMP-STICKY-AD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STICKY_AD, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpStory.php b/src/Validator/Spec/Tag/AmpStory.php index 598b435b2..7d31c5764 100644 --- a/src/Validator/Spec/Tag/AmpStory.php +++ b/src/Validator/Spec/Tag/AmpStory.php @@ -24,6 +24,11 @@ final class AmpStory extends Tag */ const ID = 'AMP-STORY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY, SpecRule::MANDATORY_PARENT => Element::BODY, diff --git a/src/Validator/Spec/Tag/AmpStory360.php b/src/Validator/Spec/Tag/AmpStory360.php index e5721abee..c9dc8424a 100644 --- a/src/Validator/Spec/Tag/AmpStory360.php +++ b/src/Validator/Spec/Tag/AmpStory360.php @@ -23,6 +23,11 @@ final class AmpStory360 extends Tag */ const ID = 'AMP-STORY-360'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_360, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryAmpAudio.php b/src/Validator/Spec/Tag/AmpStoryAmpAudio.php index de62888d1..37dd62ed2 100644 --- a/src/Validator/Spec/Tag/AmpStoryAmpAudio.php +++ b/src/Validator/Spec/Tag/AmpStoryAmpAudio.php @@ -24,6 +24,11 @@ final class AmpStoryAmpAudio extends Tag */ const ID = 'amp-story >> amp-audio'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::AUDIO, SpecRule::SPEC_NAME => 'amp-story >> amp-audio', diff --git a/src/Validator/Spec/Tag/AmpStoryAmpSidebar.php b/src/Validator/Spec/Tag/AmpStoryAmpSidebar.php index 46e318d5a..8c8e64e07 100644 --- a/src/Validator/Spec/Tag/AmpStoryAmpSidebar.php +++ b/src/Validator/Spec/Tag/AmpStoryAmpSidebar.php @@ -22,6 +22,11 @@ final class AmpStoryAmpSidebar extends Tag */ const ID = 'amp-story >> amp-sidebar'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::SIDEBAR, SpecRule::SPEC_NAME => 'amp-story >> amp-sidebar', diff --git a/src/Validator/Spec/Tag/AmpStoryAmpStoryPageAttachmentAmpVideo.php b/src/Validator/Spec/Tag/AmpStoryAmpStoryPageAttachmentAmpVideo.php index f534130fc..33d94066f 100644 --- a/src/Validator/Spec/Tag/AmpStoryAmpStoryPageAttachmentAmpVideo.php +++ b/src/Validator/Spec/Tag/AmpStoryAmpStoryPageAttachmentAmpVideo.php @@ -24,6 +24,11 @@ final class AmpStoryAmpStoryPageAttachmentAmpVideo extends Tag */ const ID = 'amp-story >> amp-story-page-attachment >> amp-video'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VIDEO, SpecRule::SPEC_NAME => 'amp-story >> amp-story-page-attachment >> amp-video', diff --git a/src/Validator/Spec/Tag/AmpStoryAmpVideo.php b/src/Validator/Spec/Tag/AmpStoryAmpVideo.php index b06587cdc..e620efeea 100644 --- a/src/Validator/Spec/Tag/AmpStoryAmpVideo.php +++ b/src/Validator/Spec/Tag/AmpStoryAmpVideo.php @@ -24,6 +24,11 @@ final class AmpStoryAmpVideo extends Tag */ const ID = 'amp-story >> amp-video'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VIDEO, SpecRule::SPEC_NAME => 'amp-story >> amp-video', diff --git a/src/Validator/Spec/Tag/AmpStoryAnimation.php b/src/Validator/Spec/Tag/AmpStoryAnimation.php index c452c786a..0e14b58ad 100644 --- a/src/Validator/Spec/Tag/AmpStoryAnimation.php +++ b/src/Validator/Spec/Tag/AmpStoryAnimation.php @@ -24,6 +24,11 @@ final class AmpStoryAnimation extends Tag */ const ID = 'AMP-STORY-ANIMATION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_ANIMATION, SpecRule::MANDATORY_PARENT => Extension::STORY_PAGE, diff --git a/src/Validator/Spec/Tag/AmpStoryAnimationJsonScript.php b/src/Validator/Spec/Tag/AmpStoryAnimationJsonScript.php index 3b2dbc9a2..2ac149901 100644 --- a/src/Validator/Spec/Tag/AmpStoryAnimationJsonScript.php +++ b/src/Validator/Spec/Tag/AmpStoryAnimationJsonScript.php @@ -24,6 +24,11 @@ final class AmpStoryAnimationJsonScript extends Tag */ const ID = 'amp-story-animation json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-story-animation json script', diff --git a/src/Validator/Spec/Tag/AmpStoryAutoAds.php b/src/Validator/Spec/Tag/AmpStoryAutoAds.php index 647695572..2a3f1efc5 100644 --- a/src/Validator/Spec/Tag/AmpStoryAutoAds.php +++ b/src/Validator/Spec/Tag/AmpStoryAutoAds.php @@ -21,6 +21,11 @@ final class AmpStoryAutoAds extends Tag */ const ID = 'AMP-STORY-AUTO-ADS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_AUTO_ADS, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/AmpStoryAutoAdsConfigScript.php b/src/Validator/Spec/Tag/AmpStoryAutoAdsConfigScript.php index 4c9765687..5cd160c41 100644 --- a/src/Validator/Spec/Tag/AmpStoryAutoAdsConfigScript.php +++ b/src/Validator/Spec/Tag/AmpStoryAutoAdsConfigScript.php @@ -24,6 +24,11 @@ final class AmpStoryAutoAdsConfigScript extends Tag */ const ID = 'amp-story-auto-ads config script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-story-auto-ads config script', diff --git a/src/Validator/Spec/Tag/AmpStoryAutoAdsTemplate.php b/src/Validator/Spec/Tag/AmpStoryAutoAdsTemplate.php index 9c694b5d0..8fd3cf550 100644 --- a/src/Validator/Spec/Tag/AmpStoryAutoAdsTemplate.php +++ b/src/Validator/Spec/Tag/AmpStoryAutoAdsTemplate.php @@ -24,6 +24,11 @@ final class AmpStoryAutoAdsTemplate extends Tag */ const ID = 'amp-story-auto-ads > template'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEMPLATE, SpecRule::SPEC_NAME => 'amp-story-auto-ads > template', diff --git a/src/Validator/Spec/Tag/AmpStoryAutoAnalytics.php b/src/Validator/Spec/Tag/AmpStoryAutoAnalytics.php index a1b9f6584..e516740e5 100644 --- a/src/Validator/Spec/Tag/AmpStoryAutoAnalytics.php +++ b/src/Validator/Spec/Tag/AmpStoryAutoAnalytics.php @@ -22,6 +22,11 @@ final class AmpStoryAutoAnalytics extends Tag */ const ID = 'AMP-STORY-AUTO-ANALYTICS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_AUTO_ANALYTICS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryBookend.php b/src/Validator/Spec/Tag/AmpStoryBookend.php index b28b54627..d9bfa25ff 100644 --- a/src/Validator/Spec/Tag/AmpStoryBookend.php +++ b/src/Validator/Spec/Tag/AmpStoryBookend.php @@ -24,6 +24,11 @@ final class AmpStoryBookend extends Tag */ const ID = 'AMP-STORY-BOOKEND'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_BOOKEND, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryBookendExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpStoryBookendExtensionJsonScript.php index 46c26c3ac..3cb90446f 100644 --- a/src/Validator/Spec/Tag/AmpStoryBookendExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpStoryBookendExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpStoryBookendExtensionJsonScript extends Tag */ const ID = 'amp-story-bookend extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-story-bookend extension .json script', diff --git a/src/Validator/Spec/Tag/AmpStoryConsent.php b/src/Validator/Spec/Tag/AmpStoryConsent.php index a372a381e..eb6bc90ba 100644 --- a/src/Validator/Spec/Tag/AmpStoryConsent.php +++ b/src/Validator/Spec/Tag/AmpStoryConsent.php @@ -23,6 +23,11 @@ final class AmpStoryConsent extends Tag */ const ID = 'AMP-STORY-CONSENT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_CONSENT, SpecRule::MANDATORY_PARENT => Extension::CONSENT, diff --git a/src/Validator/Spec/Tag/AmpStoryConsentExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpStoryConsentExtensionJsonScript.php index aefae9cef..8a3cd1ac6 100644 --- a/src/Validator/Spec/Tag/AmpStoryConsentExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpStoryConsentExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpStoryConsentExtensionJsonScript extends Tag */ const ID = 'amp-story-consent extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-story-consent extension .json script', diff --git a/src/Validator/Spec/Tag/AmpStoryCtaLayer.php b/src/Validator/Spec/Tag/AmpStoryCtaLayer.php index b16c17d70..201538be2 100644 --- a/src/Validator/Spec/Tag/AmpStoryCtaLayer.php +++ b/src/Validator/Spec/Tag/AmpStoryCtaLayer.php @@ -22,6 +22,11 @@ final class AmpStoryCtaLayer extends Tag */ const ID = 'AMP-STORY-CTA-LAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_CTA_LAYER, SpecRule::MANDATORY_ANCESTOR => Extension::STORY_PAGE, diff --git a/src/Validator/Spec/Tag/AmpStoryCtaLayerAnimateIn.php b/src/Validator/Spec/Tag/AmpStoryCtaLayerAnimateIn.php index ce157c294..231f2e33a 100644 --- a/src/Validator/Spec/Tag/AmpStoryCtaLayerAnimateIn.php +++ b/src/Validator/Spec/Tag/AmpStoryCtaLayerAnimateIn.php @@ -21,6 +21,11 @@ final class AmpStoryCtaLayerAnimateIn extends Tag */ const ID = 'AMP-STORY-CTA-LAYER animate-in'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-STORY-CTA-LAYER animate-in', diff --git a/src/Validator/Spec/Tag/AmpStoryGridLayer.php b/src/Validator/Spec/Tag/AmpStoryGridLayer.php index 27a1f0ad8..b1bc3c057 100644 --- a/src/Validator/Spec/Tag/AmpStoryGridLayer.php +++ b/src/Validator/Spec/Tag/AmpStoryGridLayer.php @@ -23,6 +23,11 @@ final class AmpStoryGridLayer extends Tag */ const ID = 'AMP-STORY-GRID-LAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_GRID_LAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryGridLayerAnimateIn.php b/src/Validator/Spec/Tag/AmpStoryGridLayerAnimateIn.php index 02d8f3f8f..3787cec12 100644 --- a/src/Validator/Spec/Tag/AmpStoryGridLayerAnimateIn.php +++ b/src/Validator/Spec/Tag/AmpStoryGridLayerAnimateIn.php @@ -22,6 +22,11 @@ final class AmpStoryGridLayerAnimateIn extends Tag */ const ID = 'AMP-STORY-GRID-LAYER animate-in'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-STORY-GRID-LAYER animate-in', diff --git a/src/Validator/Spec/Tag/AmpStoryGridLayerDefault.php b/src/Validator/Spec/Tag/AmpStoryGridLayerDefault.php index 2ba392a8d..bbc9db391 100644 --- a/src/Validator/Spec/Tag/AmpStoryGridLayerDefault.php +++ b/src/Validator/Spec/Tag/AmpStoryGridLayerDefault.php @@ -22,6 +22,11 @@ final class AmpStoryGridLayerDefault extends Tag */ const ID = 'AMP-STORY-GRID-LAYER default'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => '$REFERENCE_POINT', SpecRule::SPEC_NAME => 'AMP-STORY-GRID-LAYER default', diff --git a/src/Validator/Spec/Tag/AmpStoryInteractiveBinaryPoll.php b/src/Validator/Spec/Tag/AmpStoryInteractiveBinaryPoll.php index a35e98cf8..d5dcf293a 100644 --- a/src/Validator/Spec/Tag/AmpStoryInteractiveBinaryPoll.php +++ b/src/Validator/Spec/Tag/AmpStoryInteractiveBinaryPoll.php @@ -23,6 +23,11 @@ final class AmpStoryInteractiveBinaryPoll extends Tag */ const ID = 'AMP-STORY-INTERACTIVE-BINARY-POLL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_INTERACTIVE_BINARY_POLL, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryInteractivePoll.php b/src/Validator/Spec/Tag/AmpStoryInteractivePoll.php index 69d53a520..83cc6dcd8 100644 --- a/src/Validator/Spec/Tag/AmpStoryInteractivePoll.php +++ b/src/Validator/Spec/Tag/AmpStoryInteractivePoll.php @@ -22,6 +22,11 @@ final class AmpStoryInteractivePoll extends Tag */ const ID = 'AMP-STORY-INTERACTIVE-POLL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_INTERACTIVE_POLL, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryInteractiveQuiz.php b/src/Validator/Spec/Tag/AmpStoryInteractiveQuiz.php index 1d0d36f65..f1426699a 100644 --- a/src/Validator/Spec/Tag/AmpStoryInteractiveQuiz.php +++ b/src/Validator/Spec/Tag/AmpStoryInteractiveQuiz.php @@ -23,6 +23,11 @@ final class AmpStoryInteractiveQuiz extends Tag */ const ID = 'AMP-STORY-INTERACTIVE-QUIZ'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_INTERACTIVE_QUIZ, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryInteractiveResults.php b/src/Validator/Spec/Tag/AmpStoryInteractiveResults.php index 4eac7150f..db74a99b0 100644 --- a/src/Validator/Spec/Tag/AmpStoryInteractiveResults.php +++ b/src/Validator/Spec/Tag/AmpStoryInteractiveResults.php @@ -22,6 +22,11 @@ final class AmpStoryInteractiveResults extends Tag */ const ID = 'AMP-STORY-INTERACTIVE-RESULTS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_INTERACTIVE_RESULTS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStoryPage.php b/src/Validator/Spec/Tag/AmpStoryPage.php index f8cc37ffe..fc5a63f12 100644 --- a/src/Validator/Spec/Tag/AmpStoryPage.php +++ b/src/Validator/Spec/Tag/AmpStoryPage.php @@ -24,6 +24,11 @@ final class AmpStoryPage extends Tag */ const ID = 'AMP-STORY-PAGE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_PAGE, SpecRule::MANDATORY_PARENT => Extension::STORY, diff --git a/src/Validator/Spec/Tag/AmpStoryPageAttachment.php b/src/Validator/Spec/Tag/AmpStoryPageAttachment.php index 8af8ed303..1e003300b 100644 --- a/src/Validator/Spec/Tag/AmpStoryPageAttachment.php +++ b/src/Validator/Spec/Tag/AmpStoryPageAttachment.php @@ -24,6 +24,11 @@ final class AmpStoryPageAttachment extends Tag */ const ID = 'amp-story-page-attachment'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_PAGE_ATTACHMENT, SpecRule::SPEC_NAME => 'amp-story-page-attachment', diff --git a/src/Validator/Spec/Tag/AmpStoryPageAttachmentHref.php b/src/Validator/Spec/Tag/AmpStoryPageAttachmentHref.php index 1d0a3abd0..375e4e784 100644 --- a/src/Validator/Spec/Tag/AmpStoryPageAttachmentHref.php +++ b/src/Validator/Spec/Tag/AmpStoryPageAttachmentHref.php @@ -23,6 +23,11 @@ final class AmpStoryPageAttachmentHref extends Tag */ const ID = 'amp-story-page-attachment[href]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_PAGE_ATTACHMENT, SpecRule::SPEC_NAME => 'amp-story-page-attachment[href]', diff --git a/src/Validator/Spec/Tag/AmpStoryPageOutlink.php b/src/Validator/Spec/Tag/AmpStoryPageOutlink.php index 6893229f4..a16015295 100644 --- a/src/Validator/Spec/Tag/AmpStoryPageOutlink.php +++ b/src/Validator/Spec/Tag/AmpStoryPageOutlink.php @@ -23,6 +23,11 @@ final class AmpStoryPageOutlink extends Tag */ const ID = 'amp-story-page-outlink'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_PAGE_OUTLINK, SpecRule::SPEC_NAME => 'amp-story-page-outlink', diff --git a/src/Validator/Spec/Tag/AmpStoryPanningMedia.php b/src/Validator/Spec/Tag/AmpStoryPanningMedia.php index 05fd81b75..2bf296949 100644 --- a/src/Validator/Spec/Tag/AmpStoryPanningMedia.php +++ b/src/Validator/Spec/Tag/AmpStoryPanningMedia.php @@ -22,6 +22,11 @@ final class AmpStoryPanningMedia extends Tag */ const ID = 'AMP-STORY-PANNING-MEDIA'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_PANNING_MEDIA, SpecRule::SPEC_URL => 'https://amp.dev/documentation/components/amp-story-panning-media', diff --git a/src/Validator/Spec/Tag/AmpStoryPlayer.php b/src/Validator/Spec/Tag/AmpStoryPlayer.php index 4939290a2..e17037e21 100644 --- a/src/Validator/Spec/Tag/AmpStoryPlayer.php +++ b/src/Validator/Spec/Tag/AmpStoryPlayer.php @@ -23,6 +23,11 @@ final class AmpStoryPlayer extends Tag */ const ID = 'AMP-STORY-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_PLAYER, SpecRule::SPEC_URL => 'https://amp.dev/documentation/components/amp-story-player/', diff --git a/src/Validator/Spec/Tag/AmpStoryPlayerImg.php b/src/Validator/Spec/Tag/AmpStoryPlayerImg.php index 19793cde4..ef41282ec 100644 --- a/src/Validator/Spec/Tag/AmpStoryPlayerImg.php +++ b/src/Validator/Spec/Tag/AmpStoryPlayerImg.php @@ -24,6 +24,11 @@ final class AmpStoryPlayerImg extends Tag */ const ID = 'amp-story-player > img'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IMG, SpecRule::SPEC_NAME => 'amp-story-player > img', diff --git a/src/Validator/Spec/Tag/AmpStorySocialShare.php b/src/Validator/Spec/Tag/AmpStorySocialShare.php index 943261c1a..50fae16e7 100644 --- a/src/Validator/Spec/Tag/AmpStorySocialShare.php +++ b/src/Validator/Spec/Tag/AmpStorySocialShare.php @@ -24,6 +24,11 @@ final class AmpStorySocialShare extends Tag */ const ID = 'AMP-STORY-SOCIAL-SHARE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STORY_SOCIAL_SHARE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpStorySocialShareExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpStorySocialShareExtensionJsonScript.php index ebeeea2b1..5504b7691 100644 --- a/src/Validator/Spec/Tag/AmpStorySocialShareExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpStorySocialShareExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpStorySocialShareExtensionJsonScript extends Tag */ const ID = 'amp-story-social-share extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-story-social-share extension .json script', diff --git a/src/Validator/Spec/Tag/AmpStreamGallery.php b/src/Validator/Spec/Tag/AmpStreamGallery.php index 228a3e0a6..531b3a4da 100644 --- a/src/Validator/Spec/Tag/AmpStreamGallery.php +++ b/src/Validator/Spec/Tag/AmpStreamGallery.php @@ -23,6 +23,11 @@ final class AmpStreamGallery extends Tag */ const ID = 'AMP-STREAM-GALLERY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::STREAM_GALLERY, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpSubscriptionsExtensionJsonScript.php b/src/Validator/Spec/Tag/AmpSubscriptionsExtensionJsonScript.php index 7df1064b5..f5584b254 100644 --- a/src/Validator/Spec/Tag/AmpSubscriptionsExtensionJsonScript.php +++ b/src/Validator/Spec/Tag/AmpSubscriptionsExtensionJsonScript.php @@ -24,6 +24,11 @@ final class AmpSubscriptionsExtensionJsonScript extends Tag */ const ID = 'amp-subscriptions extension .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amp-subscriptions extension .json script', diff --git a/src/Validator/Spec/Tag/AmpTimeago.php b/src/Validator/Spec/Tag/AmpTimeago.php index 8ee4cff3c..e95d09053 100644 --- a/src/Validator/Spec/Tag/AmpTimeago.php +++ b/src/Validator/Spec/Tag/AmpTimeago.php @@ -24,6 +24,11 @@ final class AmpTimeago extends Tag */ const ID = 'AMP-TIMEAGO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::TIMEAGO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpTruncateText.php b/src/Validator/Spec/Tag/AmpTruncateText.php index 3eac9c19c..f2d137be1 100644 --- a/src/Validator/Spec/Tag/AmpTruncateText.php +++ b/src/Validator/Spec/Tag/AmpTruncateText.php @@ -24,6 +24,11 @@ final class AmpTruncateText extends Tag */ const ID = 'AMP-TRUNCATE-TEXT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::TRUNCATE_TEXT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpTwitter.php b/src/Validator/Spec/Tag/AmpTwitter.php index e5d156715..37b6c1f22 100644 --- a/src/Validator/Spec/Tag/AmpTwitter.php +++ b/src/Validator/Spec/Tag/AmpTwitter.php @@ -25,6 +25,11 @@ final class AmpTwitter extends Tag */ const ID = 'AMP-TWITTER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::TWITTER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpUserNotification.php b/src/Validator/Spec/Tag/AmpUserNotification.php index 5fc59f520..930a99736 100644 --- a/src/Validator/Spec/Tag/AmpUserNotification.php +++ b/src/Validator/Spec/Tag/AmpUserNotification.php @@ -25,6 +25,11 @@ final class AmpUserNotification extends Tag */ const ID = 'AMP-USER-NOTIFICATION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::USER_NOTIFICATION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpVideo.php b/src/Validator/Spec/Tag/AmpVideo.php index 3211fa212..c0827b9d1 100644 --- a/src/Validator/Spec/Tag/AmpVideo.php +++ b/src/Validator/Spec/Tag/AmpVideo.php @@ -24,6 +24,11 @@ final class AmpVideo extends Tag */ const ID = 'AMP-VIDEO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VIDEO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpVideoIframe.php b/src/Validator/Spec/Tag/AmpVideoIframe.php index e532bdc83..b8b1ce7fc 100644 --- a/src/Validator/Spec/Tag/AmpVideoIframe.php +++ b/src/Validator/Spec/Tag/AmpVideoIframe.php @@ -24,6 +24,11 @@ final class AmpVideoIframe extends Tag */ const ID = 'AMP-VIDEO-IFRAME'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VIDEO_IFRAME, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/AmpVideoIframeTransformed.php b/src/Validator/Spec/Tag/AmpVideoIframeTransformed.php index 167cc567e..ead3d4062 100644 --- a/src/Validator/Spec/Tag/AmpVideoIframeTransformed.php +++ b/src/Validator/Spec/Tag/AmpVideoIframeTransformed.php @@ -24,6 +24,11 @@ final class AmpVideoIframeTransformed extends Tag */ const ID = 'AMP-VIDEO-IFRAME (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VIDEO_IFRAME, SpecRule::SPEC_NAME => 'AMP-VIDEO-IFRAME (transformed)', diff --git a/src/Validator/Spec/Tag/AmpVideoSource.php b/src/Validator/Spec/Tag/AmpVideoSource.php index 19fee306f..8b74770fc 100644 --- a/src/Validator/Spec/Tag/AmpVideoSource.php +++ b/src/Validator/Spec/Tag/AmpVideoSource.php @@ -24,6 +24,11 @@ final class AmpVideoSource extends Tag */ const ID = 'amp-video > source'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SOURCE, SpecRule::SPEC_NAME => 'amp-video > source', diff --git a/src/Validator/Spec/Tag/AmpVideoTrack.php b/src/Validator/Spec/Tag/AmpVideoTrack.php index 094f22022..90274b631 100644 --- a/src/Validator/Spec/Tag/AmpVideoTrack.php +++ b/src/Validator/Spec/Tag/AmpVideoTrack.php @@ -23,6 +23,11 @@ final class AmpVideoTrack extends Tag */ const ID = 'amp-video > track'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'amp-video > track', diff --git a/src/Validator/Spec/Tag/AmpVideoTrackKindSubtitles.php b/src/Validator/Spec/Tag/AmpVideoTrackKindSubtitles.php index 8dc3fc87d..5eca9462c 100644 --- a/src/Validator/Spec/Tag/AmpVideoTrackKindSubtitles.php +++ b/src/Validator/Spec/Tag/AmpVideoTrackKindSubtitles.php @@ -23,6 +23,11 @@ final class AmpVideoTrackKindSubtitles extends Tag */ const ID = 'amp-video > track[kind=subtitles]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'amp-video > track[kind=subtitles]', diff --git a/src/Validator/Spec/Tag/AmpVimeo.php b/src/Validator/Spec/Tag/AmpVimeo.php index cad904b3c..c139c2b0d 100644 --- a/src/Validator/Spec/Tag/AmpVimeo.php +++ b/src/Validator/Spec/Tag/AmpVimeo.php @@ -24,6 +24,11 @@ final class AmpVimeo extends Tag */ const ID = 'AMP-VIMEO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VIMEO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpVine.php b/src/Validator/Spec/Tag/AmpVine.php index 844d19e6d..2118655cc 100644 --- a/src/Validator/Spec/Tag/AmpVine.php +++ b/src/Validator/Spec/Tag/AmpVine.php @@ -24,6 +24,11 @@ final class AmpVine extends Tag */ const ID = 'AMP-VINE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VINE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpViqeoPlayer.php b/src/Validator/Spec/Tag/AmpViqeoPlayer.php index f73fa36ce..14d22b745 100644 --- a/src/Validator/Spec/Tag/AmpViqeoPlayer.php +++ b/src/Validator/Spec/Tag/AmpViqeoPlayer.php @@ -24,6 +24,11 @@ final class AmpViqeoPlayer extends Tag */ const ID = 'AMP-VIQEO-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VIQEO_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpVk.php b/src/Validator/Spec/Tag/AmpVk.php index 5cd2aaea2..9ac430108 100644 --- a/src/Validator/Spec/Tag/AmpVk.php +++ b/src/Validator/Spec/Tag/AmpVk.php @@ -24,6 +24,11 @@ final class AmpVk extends Tag */ const ID = 'AMP-VK'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::VK, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpWebPush.php b/src/Validator/Spec/Tag/AmpWebPush.php index 958c4d62e..e0a0f0fa6 100644 --- a/src/Validator/Spec/Tag/AmpWebPush.php +++ b/src/Validator/Spec/Tag/AmpWebPush.php @@ -25,6 +25,11 @@ final class AmpWebPush extends Tag */ const ID = 'AMP-WEB-PUSH'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::WEB_PUSH, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpWebPushWidget.php b/src/Validator/Spec/Tag/AmpWebPushWidget.php index 41504da7d..c635438a6 100644 --- a/src/Validator/Spec/Tag/AmpWebPushWidget.php +++ b/src/Validator/Spec/Tag/AmpWebPushWidget.php @@ -24,6 +24,11 @@ final class AmpWebPushWidget extends Tag */ const ID = 'AMP-WEB-PUSH-WIDGET'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::WEB_PUSH_WIDGET, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpWistiaPlayer.php b/src/Validator/Spec/Tag/AmpWistiaPlayer.php index cd3ebe9f6..0b44ac52f 100644 --- a/src/Validator/Spec/Tag/AmpWistiaPlayer.php +++ b/src/Validator/Spec/Tag/AmpWistiaPlayer.php @@ -24,6 +24,11 @@ final class AmpWistiaPlayer extends Tag */ const ID = 'AMP-WISTIA-PLAYER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::WISTIA_PLAYER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpYotpo.php b/src/Validator/Spec/Tag/AmpYotpo.php index ce4671371..eaadf5467 100644 --- a/src/Validator/Spec/Tag/AmpYotpo.php +++ b/src/Validator/Spec/Tag/AmpYotpo.php @@ -24,6 +24,11 @@ final class AmpYotpo extends Tag */ const ID = 'AMP-YOTPO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::YOTPO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmpYoutube.php b/src/Validator/Spec/Tag/AmpYoutube.php index 6b1aded55..9c5a7348b 100644 --- a/src/Validator/Spec/Tag/AmpYoutube.php +++ b/src/Validator/Spec/Tag/AmpYoutube.php @@ -24,6 +24,11 @@ final class AmpYoutube extends Tag */ const ID = 'AMP-YOUTUBE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Extension::YOUTUBE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AmphtmlEngineScript.php b/src/Validator/Spec/Tag/AmphtmlEngineScript.php index fcab3c004..6f633dab9 100644 --- a/src/Validator/Spec/Tag/AmphtmlEngineScript.php +++ b/src/Validator/Spec/Tag/AmphtmlEngineScript.php @@ -23,6 +23,11 @@ final class AmphtmlEngineScript extends Tag */ const ID = 'amphtml engine script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amphtml engine script', diff --git a/src/Validator/Spec/Tag/AmphtmlEngineScriptAmp4email.php b/src/Validator/Spec/Tag/AmphtmlEngineScriptAmp4email.php index 7677c507e..f7c7fcadb 100644 --- a/src/Validator/Spec/Tag/AmphtmlEngineScriptAmp4email.php +++ b/src/Validator/Spec/Tag/AmphtmlEngineScriptAmp4email.php @@ -23,6 +23,11 @@ final class AmphtmlEngineScriptAmp4email extends Tag */ const ID = 'amphtml engine script [AMP4EMAIL]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amphtml engine script [AMP4EMAIL]', diff --git a/src/Validator/Spec/Tag/AmphtmlEngineScriptLts.php b/src/Validator/Spec/Tag/AmphtmlEngineScriptLts.php index caa8f424a..9334853f6 100644 --- a/src/Validator/Spec/Tag/AmphtmlEngineScriptLts.php +++ b/src/Validator/Spec/Tag/AmphtmlEngineScriptLts.php @@ -23,6 +23,11 @@ final class AmphtmlEngineScriptLts extends Tag */ const ID = 'amphtml engine script (LTS)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amphtml engine script (LTS)', diff --git a/src/Validator/Spec/Tag/AmphtmlModuleEngineScript.php b/src/Validator/Spec/Tag/AmphtmlModuleEngineScript.php index d6c6ce394..ee88243eb 100644 --- a/src/Validator/Spec/Tag/AmphtmlModuleEngineScript.php +++ b/src/Validator/Spec/Tag/AmphtmlModuleEngineScript.php @@ -23,6 +23,11 @@ final class AmphtmlModuleEngineScript extends Tag */ const ID = 'amphtml module engine script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amphtml module engine script', diff --git a/src/Validator/Spec/Tag/AmphtmlModuleLtsEngineScript.php b/src/Validator/Spec/Tag/AmphtmlModuleLtsEngineScript.php index 5c094ae81..f3b7efff6 100644 --- a/src/Validator/Spec/Tag/AmphtmlModuleLtsEngineScript.php +++ b/src/Validator/Spec/Tag/AmphtmlModuleLtsEngineScript.php @@ -23,6 +23,11 @@ final class AmphtmlModuleLtsEngineScript extends Tag */ const ID = 'amphtml module LTS engine script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amphtml module LTS engine script', diff --git a/src/Validator/Spec/Tag/AmphtmlNomoduleEngineScript.php b/src/Validator/Spec/Tag/AmphtmlNomoduleEngineScript.php index 243a8a129..ee13a0d1f 100644 --- a/src/Validator/Spec/Tag/AmphtmlNomoduleEngineScript.php +++ b/src/Validator/Spec/Tag/AmphtmlNomoduleEngineScript.php @@ -23,6 +23,11 @@ final class AmphtmlNomoduleEngineScript extends Tag */ const ID = 'amphtml nomodule engine script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amphtml nomodule engine script', diff --git a/src/Validator/Spec/Tag/AmphtmlNomoduleLtsEngineScript.php b/src/Validator/Spec/Tag/AmphtmlNomoduleLtsEngineScript.php index c15c2bc55..5d0e3da41 100644 --- a/src/Validator/Spec/Tag/AmphtmlNomoduleLtsEngineScript.php +++ b/src/Validator/Spec/Tag/AmphtmlNomoduleLtsEngineScript.php @@ -23,6 +23,11 @@ final class AmphtmlNomoduleLtsEngineScript extends Tag */ const ID = 'amphtml nomodule LTS engine script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'amphtml nomodule LTS engine script', diff --git a/src/Validator/Spec/Tag/Article.php b/src/Validator/Spec/Tag/Article.php index 005de00c6..a768bf420 100644 --- a/src/Validator/Spec/Tag/Article.php +++ b/src/Validator/Spec/Tag/Article.php @@ -21,6 +21,11 @@ final class Article extends Tag */ const ID = 'ARTICLE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::ARTICLE, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Aside.php b/src/Validator/Spec/Tag/Aside.php index 6476713ee..d30a80569 100644 --- a/src/Validator/Spec/Tag/Aside.php +++ b/src/Validator/Spec/Tag/Aside.php @@ -21,6 +21,11 @@ final class Aside extends Tag */ const ID = 'ASIDE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::ASIDE, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Audio.php b/src/Validator/Spec/Tag/Audio.php index aa8f8f8fc..79d1ab380 100644 --- a/src/Validator/Spec/Tag/Audio.php +++ b/src/Validator/Spec/Tag/Audio.php @@ -24,6 +24,11 @@ final class Audio extends Tag */ const ID = 'AUDIO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::AUDIO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/AudioSource.php b/src/Validator/Spec/Tag/AudioSource.php index 986649fdd..77637fdf3 100644 --- a/src/Validator/Spec/Tag/AudioSource.php +++ b/src/Validator/Spec/Tag/AudioSource.php @@ -23,6 +23,11 @@ final class AudioSource extends Tag */ const ID = 'audio > source'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SOURCE, SpecRule::SPEC_NAME => 'audio > source', diff --git a/src/Validator/Spec/Tag/AudioTrack.php b/src/Validator/Spec/Tag/AudioTrack.php index 8c57b3c9c..f773a24e3 100644 --- a/src/Validator/Spec/Tag/AudioTrack.php +++ b/src/Validator/Spec/Tag/AudioTrack.php @@ -22,6 +22,11 @@ final class AudioTrack extends Tag */ const ID = 'audio > track'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'audio > track', diff --git a/src/Validator/Spec/Tag/AudioTrackKindSubtitles.php b/src/Validator/Spec/Tag/AudioTrackKindSubtitles.php index fba027d28..2ca75e0c5 100644 --- a/src/Validator/Spec/Tag/AudioTrackKindSubtitles.php +++ b/src/Validator/Spec/Tag/AudioTrackKindSubtitles.php @@ -22,6 +22,11 @@ final class AudioTrackKindSubtitles extends Tag */ const ID = 'audio > track[kind=subtitles]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'audio > track[kind=subtitles]', diff --git a/src/Validator/Spec/Tag/B.php b/src/Validator/Spec/Tag/B.php index c2b757e2f..623d3b4ba 100644 --- a/src/Validator/Spec/Tag/B.php +++ b/src/Validator/Spec/Tag/B.php @@ -21,6 +21,11 @@ final class B extends Tag */ const ID = 'B'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::B, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Base.php b/src/Validator/Spec/Tag/Base.php index 1d67a2d3e..96613dd2a 100644 --- a/src/Validator/Spec/Tag/Base.php +++ b/src/Validator/Spec/Tag/Base.php @@ -22,6 +22,11 @@ final class Base extends Tag */ const ID = 'BASE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BASE, SpecRule::UNIQUE => true, diff --git a/src/Validator/Spec/Tag/Bdi.php b/src/Validator/Spec/Tag/Bdi.php index 02fe5872d..dece55079 100644 --- a/src/Validator/Spec/Tag/Bdi.php +++ b/src/Validator/Spec/Tag/Bdi.php @@ -21,6 +21,11 @@ final class Bdi extends Tag */ const ID = 'BDI'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BDI, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Bdo.php b/src/Validator/Spec/Tag/Bdo.php index 006b77a90..ad0520751 100644 --- a/src/Validator/Spec/Tag/Bdo.php +++ b/src/Validator/Spec/Tag/Bdo.php @@ -22,6 +22,11 @@ final class Bdo extends Tag */ const ID = 'BDO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BDO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Big.php b/src/Validator/Spec/Tag/Big.php index f2457d799..dbba119a0 100644 --- a/src/Validator/Spec/Tag/Big.php +++ b/src/Validator/Spec/Tag/Big.php @@ -21,6 +21,11 @@ final class Big extends Tag */ const ID = 'BIG'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BIG, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Blockquote.php b/src/Validator/Spec/Tag/Blockquote.php index 980463406..10814e15f 100644 --- a/src/Validator/Spec/Tag/Blockquote.php +++ b/src/Validator/Spec/Tag/Blockquote.php @@ -23,6 +23,11 @@ final class Blockquote extends Tag */ const ID = 'BLOCKQUOTE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BLOCKQUOTE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Body.php b/src/Validator/Spec/Tag/Body.php index ee07df8e1..85bfc417f 100644 --- a/src/Validator/Spec/Tag/Body.php +++ b/src/Validator/Spec/Tag/Body.php @@ -21,6 +21,11 @@ final class Body extends Tag */ const ID = 'BODY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BODY, SpecRule::MANDATORY => true, diff --git a/src/Validator/Spec/Tag/Br.php b/src/Validator/Spec/Tag/Br.php index 9e5fa1a1e..1a0fc26f6 100644 --- a/src/Validator/Spec/Tag/Br.php +++ b/src/Validator/Spec/Tag/Br.php @@ -21,6 +21,11 @@ final class Br extends Tag */ const ID = 'BR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BR, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Button.php b/src/Validator/Spec/Tag/Button.php index e7e8aeb4a..5e1ad73c9 100644 --- a/src/Validator/Spec/Tag/Button.php +++ b/src/Validator/Spec/Tag/Button.php @@ -23,6 +23,11 @@ final class Button extends Tag */ const ID = 'BUTTON'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BUTTON, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/ButtonAmpNestedMenu.php b/src/Validator/Spec/Tag/ButtonAmpNestedMenu.php index 2a1d8535c..b43b01a80 100644 --- a/src/Validator/Spec/Tag/ButtonAmpNestedMenu.php +++ b/src/Validator/Spec/Tag/ButtonAmpNestedMenu.php @@ -23,6 +23,11 @@ final class ButtonAmpNestedMenu extends Tag */ const ID = 'button amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::BUTTON, SpecRule::SPEC_NAME => 'button amp-nested-menu', diff --git a/src/Validator/Spec/Tag/Canvas.php b/src/Validator/Spec/Tag/Canvas.php index c10f6c69a..d509a927c 100644 --- a/src/Validator/Spec/Tag/Canvas.php +++ b/src/Validator/Spec/Tag/Canvas.php @@ -23,6 +23,11 @@ final class Canvas extends Tag */ const ID = 'CANVAS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::CANVAS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Caption.php b/src/Validator/Spec/Tag/Caption.php index b78fbb52c..3a05c8ccb 100644 --- a/src/Validator/Spec/Tag/Caption.php +++ b/src/Validator/Spec/Tag/Caption.php @@ -21,6 +21,11 @@ final class Caption extends Tag */ const ID = 'CAPTION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::CAPTION, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Center.php b/src/Validator/Spec/Tag/Center.php index 43d1d1bf2..aa4000c38 100644 --- a/src/Validator/Spec/Tag/Center.php +++ b/src/Validator/Spec/Tag/Center.php @@ -21,6 +21,11 @@ final class Center extends Tag */ const ID = 'CENTER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::CENTER, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Circle.php b/src/Validator/Spec/Tag/Circle.php index 9ca1e9d70..360a5a154 100644 --- a/src/Validator/Spec/Tag/Circle.php +++ b/src/Validator/Spec/Tag/Circle.php @@ -23,6 +23,11 @@ final class Circle extends Tag */ const ID = 'CIRCLE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::CIRCLE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Cite.php b/src/Validator/Spec/Tag/Cite.php index d98acedf7..c5e38ce5d 100644 --- a/src/Validator/Spec/Tag/Cite.php +++ b/src/Validator/Spec/Tag/Cite.php @@ -21,6 +21,11 @@ final class Cite extends Tag */ const ID = 'CITE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::CITE, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Clippath.php b/src/Validator/Spec/Tag/Clippath.php index 64749935d..65b06cc90 100644 --- a/src/Validator/Spec/Tag/Clippath.php +++ b/src/Validator/Spec/Tag/Clippath.php @@ -23,6 +23,11 @@ final class Clippath extends Tag */ const ID = 'CLIPPATH'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::CLIPPATH, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Code.php b/src/Validator/Spec/Tag/Code.php index 780104659..a3ae7a353 100644 --- a/src/Validator/Spec/Tag/Code.php +++ b/src/Validator/Spec/Tag/Code.php @@ -21,6 +21,11 @@ final class Code extends Tag */ const ID = 'CODE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::CODE, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Col.php b/src/Validator/Spec/Tag/Col.php index 75bc68dc1..3a42f9f74 100644 --- a/src/Validator/Spec/Tag/Col.php +++ b/src/Validator/Spec/Tag/Col.php @@ -22,6 +22,11 @@ final class Col extends Tag */ const ID = 'COL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::COL, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Colgroup.php b/src/Validator/Spec/Tag/Colgroup.php index 85523eebf..5ab45f16d 100644 --- a/src/Validator/Spec/Tag/Colgroup.php +++ b/src/Validator/Spec/Tag/Colgroup.php @@ -22,6 +22,11 @@ final class Colgroup extends Tag */ const ID = 'COLGROUP'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::COLGROUP, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/CryptokeysJsonScript.php b/src/Validator/Spec/Tag/CryptokeysJsonScript.php index b1d1b2615..be24c87ab 100644 --- a/src/Validator/Spec/Tag/CryptokeysJsonScript.php +++ b/src/Validator/Spec/Tag/CryptokeysJsonScript.php @@ -23,6 +23,11 @@ final class CryptokeysJsonScript extends Tag */ const ID = 'cryptokeys .json script'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'cryptokeys .json script', diff --git a/src/Validator/Spec/Tag/Data.php b/src/Validator/Spec/Tag/Data.php index 93a6fcce6..96ef1389b 100644 --- a/src/Validator/Spec/Tag/Data.php +++ b/src/Validator/Spec/Tag/Data.php @@ -21,6 +21,11 @@ final class Data extends Tag */ const ID = 'DATA'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DATA, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Datalist.php b/src/Validator/Spec/Tag/Datalist.php index 9b4f91f0b..6458ca731 100644 --- a/src/Validator/Spec/Tag/Datalist.php +++ b/src/Validator/Spec/Tag/Datalist.php @@ -21,6 +21,11 @@ final class Datalist extends Tag */ const ID = 'DATALIST'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DATALIST, SpecRule::SPEC_URL => 'https://amp.dev/documentation/components/amp-form/', diff --git a/src/Validator/Spec/Tag/Dd.php b/src/Validator/Spec/Tag/Dd.php index 334f3a58b..b8c6451f1 100644 --- a/src/Validator/Spec/Tag/Dd.php +++ b/src/Validator/Spec/Tag/Dd.php @@ -21,6 +21,11 @@ final class Dd extends Tag */ const ID = 'DD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DD, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Defs.php b/src/Validator/Spec/Tag/Defs.php index f33cdcc7a..1c933adb4 100644 --- a/src/Validator/Spec/Tag/Defs.php +++ b/src/Validator/Spec/Tag/Defs.php @@ -23,6 +23,11 @@ final class Defs extends Tag */ const ID = 'DEFS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DEFS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Del.php b/src/Validator/Spec/Tag/Del.php index ddb46e666..08d1e50e3 100644 --- a/src/Validator/Spec/Tag/Del.php +++ b/src/Validator/Spec/Tag/Del.php @@ -23,6 +23,11 @@ final class Del extends Tag */ const ID = 'DEL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DEL, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Desc.php b/src/Validator/Spec/Tag/Desc.php index 6e7ecc594..5ed87b1e3 100644 --- a/src/Validator/Spec/Tag/Desc.php +++ b/src/Validator/Spec/Tag/Desc.php @@ -22,6 +22,11 @@ final class Desc extends Tag */ const ID = 'DESC'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DESC, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Details.php b/src/Validator/Spec/Tag/Details.php index edaffabe1..6772f0487 100644 --- a/src/Validator/Spec/Tag/Details.php +++ b/src/Validator/Spec/Tag/Details.php @@ -22,6 +22,11 @@ final class Details extends Tag */ const ID = 'DETAILS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DETAILS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Dfn.php b/src/Validator/Spec/Tag/Dfn.php index 673ec1d65..b53c5b923 100644 --- a/src/Validator/Spec/Tag/Dfn.php +++ b/src/Validator/Spec/Tag/Dfn.php @@ -21,6 +21,11 @@ final class Dfn extends Tag */ const ID = 'DFN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DFN, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Dir.php b/src/Validator/Spec/Tag/Dir.php index 82e7b2d10..9aab11874 100644 --- a/src/Validator/Spec/Tag/Dir.php +++ b/src/Validator/Spec/Tag/Dir.php @@ -21,6 +21,11 @@ final class Dir extends Tag */ const ID = 'DIR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIR, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Div.php b/src/Validator/Spec/Tag/Div.php index 0b4bf76ab..344abbe00 100644 --- a/src/Validator/Spec/Tag/Div.php +++ b/src/Validator/Spec/Tag/Div.php @@ -22,6 +22,11 @@ final class Div extends Tag */ const ID = 'DIV'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/DivAmpNestedMenu.php b/src/Validator/Spec/Tag/DivAmpNestedMenu.php index 1f2a66f66..66be274b1 100644 --- a/src/Validator/Spec/Tag/DivAmpNestedMenu.php +++ b/src/Validator/Spec/Tag/DivAmpNestedMenu.php @@ -23,6 +23,11 @@ final class DivAmpNestedMenu extends Tag */ const ID = 'div amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'div amp-nested-menu', diff --git a/src/Validator/Spec/Tag/Dl.php b/src/Validator/Spec/Tag/Dl.php index c81d99738..2b8e58125 100644 --- a/src/Validator/Spec/Tag/Dl.php +++ b/src/Validator/Spec/Tag/Dl.php @@ -21,6 +21,11 @@ final class Dl extends Tag */ const ID = 'DL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DL, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Dt.php b/src/Validator/Spec/Tag/Dt.php index 4f9be36e2..b92a15668 100644 --- a/src/Validator/Spec/Tag/Dt.php +++ b/src/Validator/Spec/Tag/Dt.php @@ -21,6 +21,11 @@ final class Dt extends Tag */ const ID = 'DT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DT, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Ellipse.php b/src/Validator/Spec/Tag/Ellipse.php index f7e27a6c7..c2e819c34 100644 --- a/src/Validator/Spec/Tag/Ellipse.php +++ b/src/Validator/Spec/Tag/Ellipse.php @@ -23,6 +23,11 @@ final class Ellipse extends Tag */ const ID = 'ELLIPSE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::ELLIPSE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Em.php b/src/Validator/Spec/Tag/Em.php index c9a63f647..cca8b313d 100644 --- a/src/Validator/Spec/Tag/Em.php +++ b/src/Validator/Spec/Tag/Em.php @@ -21,6 +21,11 @@ final class Em extends Tag */ const ID = 'EM'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::EM, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Feblend.php b/src/Validator/Spec/Tag/Feblend.php index d31f5e9ed..b717bddcc 100644 --- a/src/Validator/Spec/Tag/Feblend.php +++ b/src/Validator/Spec/Tag/Feblend.php @@ -23,6 +23,11 @@ final class Feblend extends Tag */ const ID = 'FEBLEND'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEBLEND, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fecolormatrix.php b/src/Validator/Spec/Tag/Fecolormatrix.php index cddbb166d..016f5625d 100644 --- a/src/Validator/Spec/Tag/Fecolormatrix.php +++ b/src/Validator/Spec/Tag/Fecolormatrix.php @@ -23,6 +23,11 @@ final class Fecolormatrix extends Tag */ const ID = 'FECOLORMATRIX'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FECOLORMATRIX, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fecomponenttransfer.php b/src/Validator/Spec/Tag/Fecomponenttransfer.php index ae0e396bb..027484514 100644 --- a/src/Validator/Spec/Tag/Fecomponenttransfer.php +++ b/src/Validator/Spec/Tag/Fecomponenttransfer.php @@ -22,6 +22,11 @@ final class Fecomponenttransfer extends Tag */ const ID = 'FECOMPONENTTRANSFER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FECOMPONENTTRANSFER, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Fecomposite.php b/src/Validator/Spec/Tag/Fecomposite.php index 1ced5862b..a86bff739 100644 --- a/src/Validator/Spec/Tag/Fecomposite.php +++ b/src/Validator/Spec/Tag/Fecomposite.php @@ -23,6 +23,11 @@ final class Fecomposite extends Tag */ const ID = 'FECOMPOSITE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FECOMPOSITE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Feconvolvematrix.php b/src/Validator/Spec/Tag/Feconvolvematrix.php index 05731e2f8..682b1cfb2 100644 --- a/src/Validator/Spec/Tag/Feconvolvematrix.php +++ b/src/Validator/Spec/Tag/Feconvolvematrix.php @@ -23,6 +23,11 @@ final class Feconvolvematrix extends Tag */ const ID = 'FECONVOLVEMATRIX'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FECONVOLVEMATRIX, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fediffuselighting.php b/src/Validator/Spec/Tag/Fediffuselighting.php index 2eda9cf19..fe98aa525 100644 --- a/src/Validator/Spec/Tag/Fediffuselighting.php +++ b/src/Validator/Spec/Tag/Fediffuselighting.php @@ -23,6 +23,11 @@ final class Fediffuselighting extends Tag */ const ID = 'FEDIFFUSELIGHTING'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEDIFFUSELIGHTING, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fedisplacementmap.php b/src/Validator/Spec/Tag/Fedisplacementmap.php index 8a1a16657..3a6d9ccba 100644 --- a/src/Validator/Spec/Tag/Fedisplacementmap.php +++ b/src/Validator/Spec/Tag/Fedisplacementmap.php @@ -23,6 +23,11 @@ final class Fedisplacementmap extends Tag */ const ID = 'FEDISPLACEMENTMAP'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEDISPLACEMENTMAP, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fedistantlight.php b/src/Validator/Spec/Tag/Fedistantlight.php index 25cfe4654..9bbcd8b62 100644 --- a/src/Validator/Spec/Tag/Fedistantlight.php +++ b/src/Validator/Spec/Tag/Fedistantlight.php @@ -23,6 +23,11 @@ final class Fedistantlight extends Tag */ const ID = 'FEDISTANTLIGHT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEDISTANTLIGHT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fedropshadow.php b/src/Validator/Spec/Tag/Fedropshadow.php index 29a43e688..ddfaa565f 100644 --- a/src/Validator/Spec/Tag/Fedropshadow.php +++ b/src/Validator/Spec/Tag/Fedropshadow.php @@ -23,6 +23,11 @@ final class Fedropshadow extends Tag */ const ID = 'FEDROPSHADOW'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEDROPSHADOW, SpecRule::MANDATORY_PARENT => Element::FILTER, diff --git a/src/Validator/Spec/Tag/Feflood.php b/src/Validator/Spec/Tag/Feflood.php index 3fe1348c5..387258c6d 100644 --- a/src/Validator/Spec/Tag/Feflood.php +++ b/src/Validator/Spec/Tag/Feflood.php @@ -22,6 +22,11 @@ final class Feflood extends Tag */ const ID = 'FEFLOOD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEFLOOD, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Fefunca.php b/src/Validator/Spec/Tag/Fefunca.php index 354d742f7..7b2078540 100644 --- a/src/Validator/Spec/Tag/Fefunca.php +++ b/src/Validator/Spec/Tag/Fefunca.php @@ -22,6 +22,11 @@ final class Fefunca extends Tag */ const ID = 'FEFUNCA'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEFUNCA, SpecRule::MANDATORY_PARENT => Element::FECOMPONENTTRANSFER, diff --git a/src/Validator/Spec/Tag/Fefuncb.php b/src/Validator/Spec/Tag/Fefuncb.php index 43fac9ebc..590ec88a0 100644 --- a/src/Validator/Spec/Tag/Fefuncb.php +++ b/src/Validator/Spec/Tag/Fefuncb.php @@ -22,6 +22,11 @@ final class Fefuncb extends Tag */ const ID = 'FEFUNCB'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEFUNCB, SpecRule::MANDATORY_PARENT => Element::FECOMPONENTTRANSFER, diff --git a/src/Validator/Spec/Tag/Fefuncg.php b/src/Validator/Spec/Tag/Fefuncg.php index d44a70300..9ad069a69 100644 --- a/src/Validator/Spec/Tag/Fefuncg.php +++ b/src/Validator/Spec/Tag/Fefuncg.php @@ -22,6 +22,11 @@ final class Fefuncg extends Tag */ const ID = 'FEFUNCG'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEFUNCG, SpecRule::MANDATORY_PARENT => Element::FECOMPONENTTRANSFER, diff --git a/src/Validator/Spec/Tag/Fefuncr.php b/src/Validator/Spec/Tag/Fefuncr.php index 23b6deea5..697f74e3c 100644 --- a/src/Validator/Spec/Tag/Fefuncr.php +++ b/src/Validator/Spec/Tag/Fefuncr.php @@ -22,6 +22,11 @@ final class Fefuncr extends Tag */ const ID = 'FEFUNCR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEFUNCR, SpecRule::MANDATORY_PARENT => Element::FECOMPONENTTRANSFER, diff --git a/src/Validator/Spec/Tag/Fegaussianblur.php b/src/Validator/Spec/Tag/Fegaussianblur.php index 91828a542..6a960cf35 100644 --- a/src/Validator/Spec/Tag/Fegaussianblur.php +++ b/src/Validator/Spec/Tag/Fegaussianblur.php @@ -23,6 +23,11 @@ final class Fegaussianblur extends Tag */ const ID = 'FEGAUSSIANBLUR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEGAUSSIANBLUR, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Femerge.php b/src/Validator/Spec/Tag/Femerge.php index 8cb9da5ed..d24c37071 100644 --- a/src/Validator/Spec/Tag/Femerge.php +++ b/src/Validator/Spec/Tag/Femerge.php @@ -22,6 +22,11 @@ final class Femerge extends Tag */ const ID = 'FEMERGE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEMERGE, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Femergenode.php b/src/Validator/Spec/Tag/Femergenode.php index 10b95f9d8..a336117a8 100644 --- a/src/Validator/Spec/Tag/Femergenode.php +++ b/src/Validator/Spec/Tag/Femergenode.php @@ -23,6 +23,11 @@ final class Femergenode extends Tag */ const ID = 'FEMERGENODE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEMERGENODE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Femorphology.php b/src/Validator/Spec/Tag/Femorphology.php index de62dd742..1d8389dbb 100644 --- a/src/Validator/Spec/Tag/Femorphology.php +++ b/src/Validator/Spec/Tag/Femorphology.php @@ -23,6 +23,11 @@ final class Femorphology extends Tag */ const ID = 'FEMORPHOLOGY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEMORPHOLOGY, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Feoffset.php b/src/Validator/Spec/Tag/Feoffset.php index 973fbfbc1..dd41d5642 100644 --- a/src/Validator/Spec/Tag/Feoffset.php +++ b/src/Validator/Spec/Tag/Feoffset.php @@ -23,6 +23,11 @@ final class Feoffset extends Tag */ const ID = 'FEOFFSET'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEOFFSET, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fepointlight.php b/src/Validator/Spec/Tag/Fepointlight.php index 40b0a39a0..530b60582 100644 --- a/src/Validator/Spec/Tag/Fepointlight.php +++ b/src/Validator/Spec/Tag/Fepointlight.php @@ -23,6 +23,11 @@ final class Fepointlight extends Tag */ const ID = 'FEPOINTLIGHT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FEPOINTLIGHT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fespecularlighting.php b/src/Validator/Spec/Tag/Fespecularlighting.php index 8dab04bc1..51558ae77 100644 --- a/src/Validator/Spec/Tag/Fespecularlighting.php +++ b/src/Validator/Spec/Tag/Fespecularlighting.php @@ -23,6 +23,11 @@ final class Fespecularlighting extends Tag */ const ID = 'FESPECULARLIGHTING'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FESPECULARLIGHTING, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fespotlight.php b/src/Validator/Spec/Tag/Fespotlight.php index 587b544bb..60eab3eb2 100644 --- a/src/Validator/Spec/Tag/Fespotlight.php +++ b/src/Validator/Spec/Tag/Fespotlight.php @@ -23,6 +23,11 @@ final class Fespotlight extends Tag */ const ID = 'FESPOTLIGHT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FESPOTLIGHT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fetile.php b/src/Validator/Spec/Tag/Fetile.php index 9bddd54a7..d33c76d6e 100644 --- a/src/Validator/Spec/Tag/Fetile.php +++ b/src/Validator/Spec/Tag/Fetile.php @@ -23,6 +23,11 @@ final class Fetile extends Tag */ const ID = 'FETILE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FETILE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Feturbulence.php b/src/Validator/Spec/Tag/Feturbulence.php index ea5d8e33c..63ce8fc35 100644 --- a/src/Validator/Spec/Tag/Feturbulence.php +++ b/src/Validator/Spec/Tag/Feturbulence.php @@ -23,6 +23,11 @@ final class Feturbulence extends Tag */ const ID = 'FETURBULENCE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FETURBULENCE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Fieldset.php b/src/Validator/Spec/Tag/Fieldset.php index c3b432ec9..a10d02ccc 100644 --- a/src/Validator/Spec/Tag/Fieldset.php +++ b/src/Validator/Spec/Tag/Fieldset.php @@ -23,6 +23,11 @@ final class Fieldset extends Tag */ const ID = 'FIELDSET'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FIELDSET, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Figcaption.php b/src/Validator/Spec/Tag/Figcaption.php index 80e87e30d..2fdc90efc 100644 --- a/src/Validator/Spec/Tag/Figcaption.php +++ b/src/Validator/Spec/Tag/Figcaption.php @@ -21,6 +21,11 @@ final class Figcaption extends Tag */ const ID = 'FIGCAPTION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FIGCAPTION, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Figure.php b/src/Validator/Spec/Tag/Figure.php index b48ae970c..f57ecd0f3 100644 --- a/src/Validator/Spec/Tag/Figure.php +++ b/src/Validator/Spec/Tag/Figure.php @@ -21,6 +21,11 @@ final class Figure extends Tag */ const ID = 'FIGURE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FIGURE, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Filter.php b/src/Validator/Spec/Tag/Filter.php index c335b6033..4658ad210 100644 --- a/src/Validator/Spec/Tag/Filter.php +++ b/src/Validator/Spec/Tag/Filter.php @@ -23,6 +23,11 @@ final class Filter extends Tag */ const ID = 'FILTER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FILTER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Footer.php b/src/Validator/Spec/Tag/Footer.php index 017b0d20a..9d8b175b0 100644 --- a/src/Validator/Spec/Tag/Footer.php +++ b/src/Validator/Spec/Tag/Footer.php @@ -21,6 +21,11 @@ final class Footer extends Tag */ const ID = 'FOOTER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FOOTER, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/FormDivSubmitError.php b/src/Validator/Spec/Tag/FormDivSubmitError.php index 66837070f..cd0e61bfd 100644 --- a/src/Validator/Spec/Tag/FormDivSubmitError.php +++ b/src/Validator/Spec/Tag/FormDivSubmitError.php @@ -22,6 +22,11 @@ final class FormDivSubmitError extends Tag */ const ID = 'FORM DIV [submit-error]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [submit-error]', diff --git a/src/Validator/Spec/Tag/FormDivSubmitErrorTemplate.php b/src/Validator/Spec/Tag/FormDivSubmitErrorTemplate.php index fa6570a24..b81ec02b2 100644 --- a/src/Validator/Spec/Tag/FormDivSubmitErrorTemplate.php +++ b/src/Validator/Spec/Tag/FormDivSubmitErrorTemplate.php @@ -22,6 +22,11 @@ final class FormDivSubmitErrorTemplate extends Tag */ const ID = 'FORM DIV [submit-error][template]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [submit-error][template]', diff --git a/src/Validator/Spec/Tag/FormDivSubmitSuccess.php b/src/Validator/Spec/Tag/FormDivSubmitSuccess.php index 34069ee17..f3e0ea365 100644 --- a/src/Validator/Spec/Tag/FormDivSubmitSuccess.php +++ b/src/Validator/Spec/Tag/FormDivSubmitSuccess.php @@ -22,6 +22,11 @@ final class FormDivSubmitSuccess extends Tag */ const ID = 'FORM DIV [submit-success]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [submit-success]', diff --git a/src/Validator/Spec/Tag/FormDivSubmitSuccessTemplate.php b/src/Validator/Spec/Tag/FormDivSubmitSuccessTemplate.php index 1681de898..9e00b25fc 100644 --- a/src/Validator/Spec/Tag/FormDivSubmitSuccessTemplate.php +++ b/src/Validator/Spec/Tag/FormDivSubmitSuccessTemplate.php @@ -22,6 +22,11 @@ final class FormDivSubmitSuccessTemplate extends Tag */ const ID = 'FORM DIV [submit-success][template]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [submit-success][template]', diff --git a/src/Validator/Spec/Tag/FormDivSubmitting.php b/src/Validator/Spec/Tag/FormDivSubmitting.php index 0622c6615..b7ac49ee6 100644 --- a/src/Validator/Spec/Tag/FormDivSubmitting.php +++ b/src/Validator/Spec/Tag/FormDivSubmitting.php @@ -22,6 +22,11 @@ final class FormDivSubmitting extends Tag */ const ID = 'FORM DIV [submitting]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [submitting]', diff --git a/src/Validator/Spec/Tag/FormDivSubmittingTemplate.php b/src/Validator/Spec/Tag/FormDivSubmittingTemplate.php index 3ab4e56c0..6e65aa77e 100644 --- a/src/Validator/Spec/Tag/FormDivSubmittingTemplate.php +++ b/src/Validator/Spec/Tag/FormDivSubmittingTemplate.php @@ -22,6 +22,11 @@ final class FormDivSubmittingTemplate extends Tag */ const ID = 'FORM DIV [submitting][template]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [submitting][template]', diff --git a/src/Validator/Spec/Tag/FormDivVerifyError.php b/src/Validator/Spec/Tag/FormDivVerifyError.php index 14fabf6eb..732b70994 100644 --- a/src/Validator/Spec/Tag/FormDivVerifyError.php +++ b/src/Validator/Spec/Tag/FormDivVerifyError.php @@ -22,6 +22,11 @@ final class FormDivVerifyError extends Tag */ const ID = 'FORM DIV [verify-error]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [verify-error]', diff --git a/src/Validator/Spec/Tag/FormDivVerifyErrorTemplate.php b/src/Validator/Spec/Tag/FormDivVerifyErrorTemplate.php index 2b2941e27..e91ea9577 100644 --- a/src/Validator/Spec/Tag/FormDivVerifyErrorTemplate.php +++ b/src/Validator/Spec/Tag/FormDivVerifyErrorTemplate.php @@ -22,6 +22,11 @@ final class FormDivVerifyErrorTemplate extends Tag */ const ID = 'FORM DIV [verify-error][template]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::DIV, SpecRule::SPEC_NAME => 'FORM DIV [verify-error][template]', diff --git a/src/Validator/Spec/Tag/FormMethodGet.php b/src/Validator/Spec/Tag/FormMethodGet.php index 1e4632c9d..1fd5e39cc 100644 --- a/src/Validator/Spec/Tag/FormMethodGet.php +++ b/src/Validator/Spec/Tag/FormMethodGet.php @@ -25,6 +25,11 @@ final class FormMethodGet extends Tag */ const ID = 'FORM [method=GET]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FORM, SpecRule::SPEC_NAME => 'FORM [method=GET]', diff --git a/src/Validator/Spec/Tag/FormMethodGetAmp4email.php b/src/Validator/Spec/Tag/FormMethodGetAmp4email.php index 05d882b21..07b2fca1b 100644 --- a/src/Validator/Spec/Tag/FormMethodGetAmp4email.php +++ b/src/Validator/Spec/Tag/FormMethodGetAmp4email.php @@ -24,6 +24,11 @@ final class FormMethodGetAmp4email extends Tag */ const ID = 'FORM [method=GET] (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FORM, SpecRule::SPEC_NAME => 'FORM [method=GET] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/FormMethodPost.php b/src/Validator/Spec/Tag/FormMethodPost.php index d7a5c17f0..42848c05d 100644 --- a/src/Validator/Spec/Tag/FormMethodPost.php +++ b/src/Validator/Spec/Tag/FormMethodPost.php @@ -25,6 +25,11 @@ final class FormMethodPost extends Tag */ const ID = 'FORM [method=POST]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FORM, SpecRule::SPEC_NAME => 'FORM [method=POST]', diff --git a/src/Validator/Spec/Tag/FormMethodPostAmp4email.php b/src/Validator/Spec/Tag/FormMethodPostAmp4email.php index 0e314aed6..512cb22b7 100644 --- a/src/Validator/Spec/Tag/FormMethodPostAmp4email.php +++ b/src/Validator/Spec/Tag/FormMethodPostAmp4email.php @@ -24,6 +24,11 @@ final class FormMethodPostAmp4email extends Tag */ const ID = 'FORM [method=POST] (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::FORM, SpecRule::SPEC_NAME => 'FORM [method=POST] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/G.php b/src/Validator/Spec/Tag/G.php index 3435b0270..e519ca3b8 100644 --- a/src/Validator/Spec/Tag/G.php +++ b/src/Validator/Spec/Tag/G.php @@ -23,6 +23,11 @@ final class G extends Tag */ const ID = 'G'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::G, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Glyph.php b/src/Validator/Spec/Tag/Glyph.php index 732b7c61c..260344a75 100644 --- a/src/Validator/Spec/Tag/Glyph.php +++ b/src/Validator/Spec/Tag/Glyph.php @@ -23,6 +23,11 @@ final class Glyph extends Tag */ const ID = 'GLYPH'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::GLYPH, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Glyphref.php b/src/Validator/Spec/Tag/Glyphref.php index be5aaea57..c73275f60 100644 --- a/src/Validator/Spec/Tag/Glyphref.php +++ b/src/Validator/Spec/Tag/Glyphref.php @@ -23,6 +23,11 @@ final class Glyphref extends Tag */ const ID = 'GLYPHREF'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::GLYPHREF, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/H1.php b/src/Validator/Spec/Tag/H1.php index d5f9131c9..da28eca6a 100644 --- a/src/Validator/Spec/Tag/H1.php +++ b/src/Validator/Spec/Tag/H1.php @@ -22,6 +22,11 @@ final class H1 extends Tag */ const ID = 'H1'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H1, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/H2.php b/src/Validator/Spec/Tag/H2.php index 38baf393f..69ecb52c5 100644 --- a/src/Validator/Spec/Tag/H2.php +++ b/src/Validator/Spec/Tag/H2.php @@ -22,6 +22,11 @@ final class H2 extends Tag */ const ID = 'H2'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H2, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/H2AmpNestedMenu.php b/src/Validator/Spec/Tag/H2AmpNestedMenu.php index af42bc206..2193edf28 100644 --- a/src/Validator/Spec/Tag/H2AmpNestedMenu.php +++ b/src/Validator/Spec/Tag/H2AmpNestedMenu.php @@ -23,6 +23,11 @@ final class H2AmpNestedMenu extends Tag */ const ID = 'h2 amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H2, SpecRule::SPEC_NAME => 'h2 amp-nested-menu', diff --git a/src/Validator/Spec/Tag/H3.php b/src/Validator/Spec/Tag/H3.php index a8836ce98..d21df6286 100644 --- a/src/Validator/Spec/Tag/H3.php +++ b/src/Validator/Spec/Tag/H3.php @@ -22,6 +22,11 @@ final class H3 extends Tag */ const ID = 'H3'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H3, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/H3AmpNestedMenu.php b/src/Validator/Spec/Tag/H3AmpNestedMenu.php index b55856bb0..5801ca84a 100644 --- a/src/Validator/Spec/Tag/H3AmpNestedMenu.php +++ b/src/Validator/Spec/Tag/H3AmpNestedMenu.php @@ -23,6 +23,11 @@ final class H3AmpNestedMenu extends Tag */ const ID = 'h3 amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H3, SpecRule::SPEC_NAME => 'h3 amp-nested-menu', diff --git a/src/Validator/Spec/Tag/H4.php b/src/Validator/Spec/Tag/H4.php index 6ccb541e2..64e3c9793 100644 --- a/src/Validator/Spec/Tag/H4.php +++ b/src/Validator/Spec/Tag/H4.php @@ -22,6 +22,11 @@ final class H4 extends Tag */ const ID = 'H4'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H4, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/H4AmpNestedMenu.php b/src/Validator/Spec/Tag/H4AmpNestedMenu.php index bd0d20601..d81804d00 100644 --- a/src/Validator/Spec/Tag/H4AmpNestedMenu.php +++ b/src/Validator/Spec/Tag/H4AmpNestedMenu.php @@ -23,6 +23,11 @@ final class H4AmpNestedMenu extends Tag */ const ID = 'h4 amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H4, SpecRule::SPEC_NAME => 'h4 amp-nested-menu', diff --git a/src/Validator/Spec/Tag/H5.php b/src/Validator/Spec/Tag/H5.php index 49d20cf50..6f5cbed37 100644 --- a/src/Validator/Spec/Tag/H5.php +++ b/src/Validator/Spec/Tag/H5.php @@ -22,6 +22,11 @@ final class H5 extends Tag */ const ID = 'H5'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H5, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/H5AmpNestedMenu.php b/src/Validator/Spec/Tag/H5AmpNestedMenu.php index 2bb590648..2da0be965 100644 --- a/src/Validator/Spec/Tag/H5AmpNestedMenu.php +++ b/src/Validator/Spec/Tag/H5AmpNestedMenu.php @@ -23,6 +23,11 @@ final class H5AmpNestedMenu extends Tag */ const ID = 'h5 amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H5, SpecRule::SPEC_NAME => 'h5 amp-nested-menu', diff --git a/src/Validator/Spec/Tag/H6.php b/src/Validator/Spec/Tag/H6.php index bd028ccfd..036e6145a 100644 --- a/src/Validator/Spec/Tag/H6.php +++ b/src/Validator/Spec/Tag/H6.php @@ -22,6 +22,11 @@ final class H6 extends Tag */ const ID = 'H6'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H6, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/H6AmpNestedMenu.php b/src/Validator/Spec/Tag/H6AmpNestedMenu.php index 6fc680425..0788127dc 100644 --- a/src/Validator/Spec/Tag/H6AmpNestedMenu.php +++ b/src/Validator/Spec/Tag/H6AmpNestedMenu.php @@ -23,6 +23,11 @@ final class H6AmpNestedMenu extends Tag */ const ID = 'h6 amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::H6, SpecRule::SPEC_NAME => 'h6 amp-nested-menu', diff --git a/src/Validator/Spec/Tag/Head.php b/src/Validator/Spec/Tag/Head.php index 34d1a39bd..fa4b53626 100644 --- a/src/Validator/Spec/Tag/Head.php +++ b/src/Validator/Spec/Tag/Head.php @@ -21,6 +21,11 @@ final class Head extends Tag */ const ID = 'HEAD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::HEAD, SpecRule::MANDATORY => true, diff --git a/src/Validator/Spec/Tag/HeadStyleAmp4adsBoilerplate.php b/src/Validator/Spec/Tag/HeadStyleAmp4adsBoilerplate.php index f87f2d7d3..9a7592749 100644 --- a/src/Validator/Spec/Tag/HeadStyleAmp4adsBoilerplate.php +++ b/src/Validator/Spec/Tag/HeadStyleAmp4adsBoilerplate.php @@ -23,6 +23,11 @@ final class HeadStyleAmp4adsBoilerplate extends Tag */ const ID = 'head > style[amp4ads-boilerplate]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'head > style[amp4ads-boilerplate]', diff --git a/src/Validator/Spec/Tag/HeadStyleAmp4emailBoilerplate.php b/src/Validator/Spec/Tag/HeadStyleAmp4emailBoilerplate.php index 797326090..81edb4313 100644 --- a/src/Validator/Spec/Tag/HeadStyleAmp4emailBoilerplate.php +++ b/src/Validator/Spec/Tag/HeadStyleAmp4emailBoilerplate.php @@ -22,6 +22,11 @@ final class HeadStyleAmp4emailBoilerplate extends Tag */ const ID = 'head > style[amp4email-boilerplate]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'head > style[amp4email-boilerplate]', diff --git a/src/Validator/Spec/Tag/HeadStyleAmpBoilerplate.php b/src/Validator/Spec/Tag/HeadStyleAmpBoilerplate.php index 854290b20..e1092ff74 100644 --- a/src/Validator/Spec/Tag/HeadStyleAmpBoilerplate.php +++ b/src/Validator/Spec/Tag/HeadStyleAmpBoilerplate.php @@ -23,6 +23,11 @@ final class HeadStyleAmpBoilerplate extends Tag */ const ID = 'head > style[amp-boilerplate]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'head > style[amp-boilerplate]', diff --git a/src/Validator/Spec/Tag/HeadStyleAmpBoilerplateTransformed.php b/src/Validator/Spec/Tag/HeadStyleAmpBoilerplateTransformed.php index 66e4879aa..a2d42fcd0 100644 --- a/src/Validator/Spec/Tag/HeadStyleAmpBoilerplateTransformed.php +++ b/src/Validator/Spec/Tag/HeadStyleAmpBoilerplateTransformed.php @@ -23,6 +23,11 @@ final class HeadStyleAmpBoilerplateTransformed extends Tag */ const ID = 'head > style[amp-boilerplate] (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'head > style[amp-boilerplate] (transformed)', diff --git a/src/Validator/Spec/Tag/Header.php b/src/Validator/Spec/Tag/Header.php index a92574f21..18cd5aed3 100644 --- a/src/Validator/Spec/Tag/Header.php +++ b/src/Validator/Spec/Tag/Header.php @@ -21,6 +21,11 @@ final class Header extends Tag */ const ID = 'HEADER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::HEADER, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Hgroup.php b/src/Validator/Spec/Tag/Hgroup.php index 44eee0e94..12675142b 100644 --- a/src/Validator/Spec/Tag/Hgroup.php +++ b/src/Validator/Spec/Tag/Hgroup.php @@ -21,6 +21,11 @@ final class Hgroup extends Tag */ const ID = 'HGROUP'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::HGROUP, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Hkern.php b/src/Validator/Spec/Tag/Hkern.php index f070494a8..75e5bc748 100644 --- a/src/Validator/Spec/Tag/Hkern.php +++ b/src/Validator/Spec/Tag/Hkern.php @@ -23,6 +23,11 @@ final class Hkern extends Tag */ const ID = 'HKERN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::HKERN, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Hr.php b/src/Validator/Spec/Tag/Hr.php index 5d2ca1552..f531d22a3 100644 --- a/src/Validator/Spec/Tag/Hr.php +++ b/src/Validator/Spec/Tag/Hr.php @@ -21,6 +21,11 @@ final class Hr extends Tag */ const ID = 'HR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::HR, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Html.php b/src/Validator/Spec/Tag/Html.php index ac37fa1d2..b85d46660 100644 --- a/src/Validator/Spec/Tag/Html.php +++ b/src/Validator/Spec/Tag/Html.php @@ -22,6 +22,11 @@ final class Html extends Tag */ const ID = 'HTML'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::HTML, SpecRule::MANDATORY => true, diff --git a/src/Validator/Spec/Tag/HtmlDoctype.php b/src/Validator/Spec/Tag/HtmlDoctype.php index cd308ad4a..5195b9106 100644 --- a/src/Validator/Spec/Tag/HtmlDoctype.php +++ b/src/Validator/Spec/Tag/HtmlDoctype.php @@ -22,6 +22,11 @@ final class HtmlDoctype extends Tag */ const ID = 'html doctype'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::_DOCTYPE, SpecRule::SPEC_NAME => 'html doctype', diff --git a/src/Validator/Spec/Tag/HtmlDoctypeAmp4ads.php b/src/Validator/Spec/Tag/HtmlDoctypeAmp4ads.php index 2c9048e86..b84bc8cad 100644 --- a/src/Validator/Spec/Tag/HtmlDoctypeAmp4ads.php +++ b/src/Validator/Spec/Tag/HtmlDoctypeAmp4ads.php @@ -22,6 +22,11 @@ final class HtmlDoctypeAmp4ads extends Tag */ const ID = 'html doctype (AMP4ADS)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::_DOCTYPE, SpecRule::SPEC_NAME => 'html doctype (AMP4ADS)', diff --git a/src/Validator/Spec/Tag/HtmlTransformed.php b/src/Validator/Spec/Tag/HtmlTransformed.php index e8de8f718..17cfbd6da 100644 --- a/src/Validator/Spec/Tag/HtmlTransformed.php +++ b/src/Validator/Spec/Tag/HtmlTransformed.php @@ -22,6 +22,11 @@ final class HtmlTransformed extends Tag */ const ID = 'html (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::HTML, SpecRule::SPEC_NAME => 'html (transformed)', diff --git a/src/Validator/Spec/Tag/I.php b/src/Validator/Spec/Tag/I.php index b4ba60cf7..ffaadad6b 100644 --- a/src/Validator/Spec/Tag/I.php +++ b/src/Validator/Spec/Tag/I.php @@ -21,6 +21,11 @@ final class I extends Tag */ const ID = 'I'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::I, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/IAmphtmlSizerIntrinsic.php b/src/Validator/Spec/Tag/IAmphtmlSizerIntrinsic.php index 823b2da9e..3a2ddc57c 100644 --- a/src/Validator/Spec/Tag/IAmphtmlSizerIntrinsic.php +++ b/src/Validator/Spec/Tag/IAmphtmlSizerIntrinsic.php @@ -22,6 +22,11 @@ final class IAmphtmlSizerIntrinsic extends Tag */ const ID = 'I-AMPHTML-SIZER-INTRINSIC'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Internal::SIZER, SpecRule::SPEC_NAME => 'I-AMPHTML-SIZER-INTRINSIC', diff --git a/src/Validator/Spec/Tag/IAmphtmlSizerResponsive.php b/src/Validator/Spec/Tag/IAmphtmlSizerResponsive.php index 99b340770..377002f3e 100644 --- a/src/Validator/Spec/Tag/IAmphtmlSizerResponsive.php +++ b/src/Validator/Spec/Tag/IAmphtmlSizerResponsive.php @@ -22,6 +22,11 @@ final class IAmphtmlSizerResponsive extends Tag */ const ID = 'I-AMPHTML-SIZER-RESPONSIVE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Internal::SIZER, SpecRule::SPEC_NAME => 'I-AMPHTML-SIZER-RESPONSIVE', diff --git a/src/Validator/Spec/Tag/Iframe.php b/src/Validator/Spec/Tag/Iframe.php index 67129d733..b060ad849 100644 --- a/src/Validator/Spec/Tag/Iframe.php +++ b/src/Validator/Spec/Tag/Iframe.php @@ -25,6 +25,11 @@ final class Iframe extends Tag */ const ID = 'IFRAME'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IFRAME, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Image.php b/src/Validator/Spec/Tag/Image.php index a830cea59..8e81ff86c 100644 --- a/src/Validator/Spec/Tag/Image.php +++ b/src/Validator/Spec/Tag/Image.php @@ -24,6 +24,11 @@ final class Image extends Tag */ const ID = 'IMAGE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IMAGE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizer.php b/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizer.php index f278e8561..34de8b3e4 100644 --- a/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizer.php +++ b/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizer.php @@ -23,6 +23,11 @@ final class ImgIAmphtmlIntrinsicSizer extends Tag */ const ID = 'IMG-I-AMPHTML-INTRINSIC-SIZER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IMG, SpecRule::SPEC_NAME => 'IMG-I-AMPHTML-INTRINSIC-SIZER', diff --git a/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizerAmpStoryPlayer.php b/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizerAmpStoryPlayer.php index ae5e84b53..a37fc78c6 100644 --- a/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizerAmpStoryPlayer.php +++ b/src/Validator/Spec/Tag/ImgIAmphtmlIntrinsicSizerAmpStoryPlayer.php @@ -24,6 +24,11 @@ final class ImgIAmphtmlIntrinsicSizerAmpStoryPlayer extends Tag */ const ID = 'img-i-amphtml-intrinsic-sizer-amp-story-player'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IMG, SpecRule::SPEC_NAME => 'img-i-amphtml-intrinsic-sizer-amp-story-player', diff --git a/src/Validator/Spec/Tag/Input.php b/src/Validator/Spec/Tag/Input.php index d27951dfe..82769db49 100644 --- a/src/Validator/Spec/Tag/Input.php +++ b/src/Validator/Spec/Tag/Input.php @@ -23,6 +23,11 @@ final class Input extends Tag */ const ID = 'INPUT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/InputMaskCustomMask.php b/src/Validator/Spec/Tag/InputMaskCustomMask.php index d5348cf9a..79c48d644 100644 --- a/src/Validator/Spec/Tag/InputMaskCustomMask.php +++ b/src/Validator/Spec/Tag/InputMaskCustomMask.php @@ -24,6 +24,11 @@ final class InputMaskCustomMask extends Tag */ const ID = 'input [mask] (custom mask)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'input [mask] (custom mask)', diff --git a/src/Validator/Spec/Tag/InputMaskDateDdMmYyyy.php b/src/Validator/Spec/Tag/InputMaskDateDdMmYyyy.php index a03f5d811..9b484589d 100644 --- a/src/Validator/Spec/Tag/InputMaskDateDdMmYyyy.php +++ b/src/Validator/Spec/Tag/InputMaskDateDdMmYyyy.php @@ -24,6 +24,11 @@ final class InputMaskDateDdMmYyyy extends Tag */ const ID = 'input [mask=date-dd-mm-yyyy]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'input [mask=date-dd-mm-yyyy]', diff --git a/src/Validator/Spec/Tag/InputMaskDateMmDdYyyy.php b/src/Validator/Spec/Tag/InputMaskDateMmDdYyyy.php index 42839f84f..c9cd874f0 100644 --- a/src/Validator/Spec/Tag/InputMaskDateMmDdYyyy.php +++ b/src/Validator/Spec/Tag/InputMaskDateMmDdYyyy.php @@ -24,6 +24,11 @@ final class InputMaskDateMmDdYyyy extends Tag */ const ID = 'input [mask=date-mm-dd-yyyy]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'input [mask=date-mm-dd-yyyy]', diff --git a/src/Validator/Spec/Tag/InputMaskDateMmYy.php b/src/Validator/Spec/Tag/InputMaskDateMmYy.php index 254b7d1f2..d3a040f6a 100644 --- a/src/Validator/Spec/Tag/InputMaskDateMmYy.php +++ b/src/Validator/Spec/Tag/InputMaskDateMmYy.php @@ -24,6 +24,11 @@ final class InputMaskDateMmYy extends Tag */ const ID = 'input [mask=date-mm-yy]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'input [mask=date-mm-yy]', diff --git a/src/Validator/Spec/Tag/InputMaskDateYyyyMmDd.php b/src/Validator/Spec/Tag/InputMaskDateYyyyMmDd.php index d2860dcc3..de2307adf 100644 --- a/src/Validator/Spec/Tag/InputMaskDateYyyyMmDd.php +++ b/src/Validator/Spec/Tag/InputMaskDateYyyyMmDd.php @@ -24,6 +24,11 @@ final class InputMaskDateYyyyMmDd extends Tag */ const ID = 'input [mask=date-yyyy-mm-dd]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'input [mask=date-yyyy-mm-dd]', diff --git a/src/Validator/Spec/Tag/InputMaskPaymentCard.php b/src/Validator/Spec/Tag/InputMaskPaymentCard.php index 81615ef84..53a7fd1bd 100644 --- a/src/Validator/Spec/Tag/InputMaskPaymentCard.php +++ b/src/Validator/Spec/Tag/InputMaskPaymentCard.php @@ -24,6 +24,11 @@ final class InputMaskPaymentCard extends Tag */ const ID = 'input [mask=payment-card]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'input [mask=payment-card]', diff --git a/src/Validator/Spec/Tag/InputTypeFile.php b/src/Validator/Spec/Tag/InputTypeFile.php index a549cae97..7ad3254b6 100644 --- a/src/Validator/Spec/Tag/InputTypeFile.php +++ b/src/Validator/Spec/Tag/InputTypeFile.php @@ -23,6 +23,11 @@ final class InputTypeFile extends Tag */ const ID = 'INPUT [type=file]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'INPUT [type=file]', diff --git a/src/Validator/Spec/Tag/InputTypePassword.php b/src/Validator/Spec/Tag/InputTypePassword.php index dd8fc0f26..a0ec5d6a1 100644 --- a/src/Validator/Spec/Tag/InputTypePassword.php +++ b/src/Validator/Spec/Tag/InputTypePassword.php @@ -23,6 +23,11 @@ final class InputTypePassword extends Tag */ const ID = 'INPUT [type=password]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INPUT, SpecRule::SPEC_NAME => 'INPUT [type=password]', diff --git a/src/Validator/Spec/Tag/Ins.php b/src/Validator/Spec/Tag/Ins.php index d1d1d85ac..33607337e 100644 --- a/src/Validator/Spec/Tag/Ins.php +++ b/src/Validator/Spec/Tag/Ins.php @@ -23,6 +23,11 @@ final class Ins extends Tag */ const ID = 'INS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::INS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Kbd.php b/src/Validator/Spec/Tag/Kbd.php index 63c1f3751..a8214aace 100644 --- a/src/Validator/Spec/Tag/Kbd.php +++ b/src/Validator/Spec/Tag/Kbd.php @@ -21,6 +21,11 @@ final class Kbd extends Tag */ const ID = 'KBD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::KBD, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Label.php b/src/Validator/Spec/Tag/Label.php index f65eede38..4ac36ee84 100644 --- a/src/Validator/Spec/Tag/Label.php +++ b/src/Validator/Spec/Tag/Label.php @@ -22,6 +22,11 @@ final class Label extends Tag */ const ID = 'LABEL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LABEL, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Legend.php b/src/Validator/Spec/Tag/Legend.php index b042456e5..86eff31e0 100644 --- a/src/Validator/Spec/Tag/Legend.php +++ b/src/Validator/Spec/Tag/Legend.php @@ -21,6 +21,11 @@ final class Legend extends Tag */ const ID = 'LEGEND'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LEGEND, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Li.php b/src/Validator/Spec/Tag/Li.php index 9c05c487b..e68201d91 100644 --- a/src/Validator/Spec/Tag/Li.php +++ b/src/Validator/Spec/Tag/Li.php @@ -22,6 +22,11 @@ final class Li extends Tag */ const ID = 'LI'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LI, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Line.php b/src/Validator/Spec/Tag/Line.php index 10c394a86..01a367d78 100644 --- a/src/Validator/Spec/Tag/Line.php +++ b/src/Validator/Spec/Tag/Line.php @@ -23,6 +23,11 @@ final class Line extends Tag */ const ID = 'LINE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Lineargradient.php b/src/Validator/Spec/Tag/Lineargradient.php index bbb955981..1db26a8c3 100644 --- a/src/Validator/Spec/Tag/Lineargradient.php +++ b/src/Validator/Spec/Tag/Lineargradient.php @@ -23,6 +23,11 @@ final class Lineargradient extends Tag */ const ID = 'LINEARGRADIENT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINEARGRADIENT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/LineargradientStop.php b/src/Validator/Spec/Tag/LineargradientStop.php index 498b28a99..22195d1cb 100644 --- a/src/Validator/Spec/Tag/LineargradientStop.php +++ b/src/Validator/Spec/Tag/LineargradientStop.php @@ -23,6 +23,11 @@ final class LineargradientStop extends Tag */ const ID = 'lineargradient > stop'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STOP, SpecRule::SPEC_NAME => 'lineargradient > stop', diff --git a/src/Validator/Spec/Tag/LinkItemprop.php b/src/Validator/Spec/Tag/LinkItemprop.php index 2e30ac2cf..89039cd7c 100644 --- a/src/Validator/Spec/Tag/LinkItemprop.php +++ b/src/Validator/Spec/Tag/LinkItemprop.php @@ -23,6 +23,11 @@ final class LinkItemprop extends Tag */ const ID = 'link itemprop='; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link itemprop=', diff --git a/src/Validator/Spec/Tag/LinkItempropSameas.php b/src/Validator/Spec/Tag/LinkItempropSameas.php index 781ac86ca..9c4662751 100644 --- a/src/Validator/Spec/Tag/LinkItempropSameas.php +++ b/src/Validator/Spec/Tag/LinkItempropSameas.php @@ -23,6 +23,11 @@ final class LinkItempropSameas extends Tag */ const ID = 'link itemprop=sameAs'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link itemprop=sameAs', diff --git a/src/Validator/Spec/Tag/LinkProperty.php b/src/Validator/Spec/Tag/LinkProperty.php index 58dc3acb4..7010b1cb8 100644 --- a/src/Validator/Spec/Tag/LinkProperty.php +++ b/src/Validator/Spec/Tag/LinkProperty.php @@ -23,6 +23,11 @@ final class LinkProperty extends Tag */ const ID = 'link property='; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link property=', diff --git a/src/Validator/Spec/Tag/LinkRel.php b/src/Validator/Spec/Tag/LinkRel.php index a654d3794..58fec5d29 100644 --- a/src/Validator/Spec/Tag/LinkRel.php +++ b/src/Validator/Spec/Tag/LinkRel.php @@ -23,6 +23,11 @@ final class LinkRel extends Tag */ const ID = 'link rel='; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link rel=', diff --git a/src/Validator/Spec/Tag/LinkRelCanonical.php b/src/Validator/Spec/Tag/LinkRelCanonical.php index 073e63d07..27ca0ff2a 100644 --- a/src/Validator/Spec/Tag/LinkRelCanonical.php +++ b/src/Validator/Spec/Tag/LinkRelCanonical.php @@ -24,6 +24,11 @@ final class LinkRelCanonical extends Tag */ const ID = 'link rel=canonical'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link rel=canonical', diff --git a/src/Validator/Spec/Tag/LinkRelManifest.php b/src/Validator/Spec/Tag/LinkRelManifest.php index d90b2edf3..e29f5d268 100644 --- a/src/Validator/Spec/Tag/LinkRelManifest.php +++ b/src/Validator/Spec/Tag/LinkRelManifest.php @@ -24,6 +24,11 @@ final class LinkRelManifest extends Tag */ const ID = 'link rel=manifest'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link rel=manifest', diff --git a/src/Validator/Spec/Tag/LinkRelModulepreload.php b/src/Validator/Spec/Tag/LinkRelModulepreload.php index 2a05ac88f..02aaec6c5 100644 --- a/src/Validator/Spec/Tag/LinkRelModulepreload.php +++ b/src/Validator/Spec/Tag/LinkRelModulepreload.php @@ -22,6 +22,11 @@ final class LinkRelModulepreload extends Tag */ const ID = 'link rel=modulepreload'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link rel=modulepreload', diff --git a/src/Validator/Spec/Tag/LinkRelPreload.php b/src/Validator/Spec/Tag/LinkRelPreload.php index 49b284688..f98c69651 100644 --- a/src/Validator/Spec/Tag/LinkRelPreload.php +++ b/src/Validator/Spec/Tag/LinkRelPreload.php @@ -24,6 +24,11 @@ final class LinkRelPreload extends Tag */ const ID = 'link rel=preload'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link rel=preload', diff --git a/src/Validator/Spec/Tag/LinkRelStylesheetForFonts.php b/src/Validator/Spec/Tag/LinkRelStylesheetForFonts.php index e2adf482b..fb7c0ac50 100644 --- a/src/Validator/Spec/Tag/LinkRelStylesheetForFonts.php +++ b/src/Validator/Spec/Tag/LinkRelStylesheetForFonts.php @@ -23,6 +23,11 @@ final class LinkRelStylesheetForFonts extends Tag */ const ID = 'link rel=stylesheet for fonts'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LINK, SpecRule::SPEC_NAME => 'link rel=stylesheet for fonts', diff --git a/src/Validator/Spec/Tag/Listing.php b/src/Validator/Spec/Tag/Listing.php index 9a87a8187..b47a3deba 100644 --- a/src/Validator/Spec/Tag/Listing.php +++ b/src/Validator/Spec/Tag/Listing.php @@ -21,6 +21,11 @@ final class Listing extends Tag */ const ID = 'LISTING'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::LISTING, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Main.php b/src/Validator/Spec/Tag/Main.php index 8a24947d9..efe458138 100644 --- a/src/Validator/Spec/Tag/Main.php +++ b/src/Validator/Spec/Tag/Main.php @@ -21,6 +21,11 @@ final class Main extends Tag */ const ID = 'MAIN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::MAIN, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Mark.php b/src/Validator/Spec/Tag/Mark.php index 02e9bfd90..0c43c1fe4 100644 --- a/src/Validator/Spec/Tag/Mark.php +++ b/src/Validator/Spec/Tag/Mark.php @@ -21,6 +21,11 @@ final class Mark extends Tag */ const ID = 'MARK'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::MARK, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Marker.php b/src/Validator/Spec/Tag/Marker.php index edc49404a..7f9b341a2 100644 --- a/src/Validator/Spec/Tag/Marker.php +++ b/src/Validator/Spec/Tag/Marker.php @@ -23,6 +23,11 @@ final class Marker extends Tag */ const ID = 'MARKER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::MARKER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Mask.php b/src/Validator/Spec/Tag/Mask.php index 2a9d45e7c..4c42170c8 100644 --- a/src/Validator/Spec/Tag/Mask.php +++ b/src/Validator/Spec/Tag/Mask.php @@ -23,6 +23,11 @@ final class Mask extends Tag */ const ID = 'MASK'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::MASK, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/MetaCharsetUtf8.php b/src/Validator/Spec/Tag/MetaCharsetUtf8.php index 954c7b6f8..d4a39bf3b 100644 --- a/src/Validator/Spec/Tag/MetaCharsetUtf8.php +++ b/src/Validator/Spec/Tag/MetaCharsetUtf8.php @@ -22,6 +22,11 @@ final class MetaCharsetUtf8 extends Tag */ const ID = 'meta charset=utf-8'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta charset=utf-8', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivContentLanguage.php b/src/Validator/Spec/Tag/MetaHttpEquivContentLanguage.php index 59b58e8f5..19203f21f 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivContentLanguage.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivContentLanguage.php @@ -22,6 +22,11 @@ final class MetaHttpEquivContentLanguage extends Tag */ const ID = 'meta http-equiv=content-language'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=content-language', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivContentScriptType.php b/src/Validator/Spec/Tag/MetaHttpEquivContentScriptType.php index d4323b9ab..bac1b7cf8 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivContentScriptType.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivContentScriptType.php @@ -22,6 +22,11 @@ final class MetaHttpEquivContentScriptType extends Tag */ const ID = 'meta http-equiv=Content-Script-Type'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=Content-Script-Type', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivContentStyleType.php b/src/Validator/Spec/Tag/MetaHttpEquivContentStyleType.php index 0a0d5a99d..6a2eb6f95 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivContentStyleType.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivContentStyleType.php @@ -22,6 +22,11 @@ final class MetaHttpEquivContentStyleType extends Tag */ const ID = 'meta http-equiv=Content-Style-Type'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=Content-Style-Type', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivContentType.php b/src/Validator/Spec/Tag/MetaHttpEquivContentType.php index 3e9c9d40d..d4b842b31 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivContentType.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivContentType.php @@ -22,6 +22,11 @@ final class MetaHttpEquivContentType extends Tag */ const ID = 'meta http-equiv=Content-Type'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=Content-Type', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivImagetoolbar.php b/src/Validator/Spec/Tag/MetaHttpEquivImagetoolbar.php index cef885bd5..4cceede18 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivImagetoolbar.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivImagetoolbar.php @@ -22,6 +22,11 @@ final class MetaHttpEquivImagetoolbar extends Tag */ const ID = 'meta http-equiv=imagetoolbar'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=imagetoolbar', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivOriginTrial.php b/src/Validator/Spec/Tag/MetaHttpEquivOriginTrial.php index 2856a367d..ed4444dc2 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivOriginTrial.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivOriginTrial.php @@ -22,6 +22,11 @@ final class MetaHttpEquivOriginTrial extends Tag */ const ID = 'meta http-equiv=origin-trial'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=origin-trial', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivPicsLabel.php b/src/Validator/Spec/Tag/MetaHttpEquivPicsLabel.php index 519cd2899..24f4fe64b 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivPicsLabel.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivPicsLabel.php @@ -22,6 +22,11 @@ final class MetaHttpEquivPicsLabel extends Tag */ const ID = 'meta http-equiv=pics-label'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=pics-label', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivResourceType.php b/src/Validator/Spec/Tag/MetaHttpEquivResourceType.php index d7d97882f..562481bd2 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivResourceType.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivResourceType.php @@ -22,6 +22,11 @@ final class MetaHttpEquivResourceType extends Tag */ const ID = 'meta http-equiv=resource-type'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=resource-type', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivXDnsPrefetchControl.php b/src/Validator/Spec/Tag/MetaHttpEquivXDnsPrefetchControl.php index f2f906e02..2b967cbf0 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivXDnsPrefetchControl.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivXDnsPrefetchControl.php @@ -22,6 +22,11 @@ final class MetaHttpEquivXDnsPrefetchControl extends Tag */ const ID = 'meta http-equiv=x-dns-prefetch-control'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=x-dns-prefetch-control', diff --git a/src/Validator/Spec/Tag/MetaHttpEquivXUaCompatible.php b/src/Validator/Spec/Tag/MetaHttpEquivXUaCompatible.php index 0ad4d5446..673367590 100644 --- a/src/Validator/Spec/Tag/MetaHttpEquivXUaCompatible.php +++ b/src/Validator/Spec/Tag/MetaHttpEquivXUaCompatible.php @@ -22,6 +22,11 @@ final class MetaHttpEquivXUaCompatible extends Tag */ const ID = 'meta http-equiv=X-UA-Compatible'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta http-equiv=X-UA-Compatible', diff --git a/src/Validator/Spec/Tag/MetaNameAmp3pIframeSrc.php b/src/Validator/Spec/Tag/MetaNameAmp3pIframeSrc.php index e6f26bb08..d8b3ba2b7 100644 --- a/src/Validator/Spec/Tag/MetaNameAmp3pIframeSrc.php +++ b/src/Validator/Spec/Tag/MetaNameAmp3pIframeSrc.php @@ -23,6 +23,11 @@ final class MetaNameAmp3pIframeSrc extends Tag */ const ID = 'meta name=amp-3p-iframe-src'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-3p-iframe-src', diff --git a/src/Validator/Spec/Tag/MetaNameAmp4adsId.php b/src/Validator/Spec/Tag/MetaNameAmp4adsId.php index 400ba8e52..85b9cfea3 100644 --- a/src/Validator/Spec/Tag/MetaNameAmp4adsId.php +++ b/src/Validator/Spec/Tag/MetaNameAmp4adsId.php @@ -22,6 +22,11 @@ final class MetaNameAmp4adsId extends Tag */ const ID = 'meta name=amp4ads-id'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp4ads-id', diff --git a/src/Validator/Spec/Tag/MetaNameAmp4adsVars.php b/src/Validator/Spec/Tag/MetaNameAmp4adsVars.php index 4771ad653..1e92e942d 100644 --- a/src/Validator/Spec/Tag/MetaNameAmp4adsVars.php +++ b/src/Validator/Spec/Tag/MetaNameAmp4adsVars.php @@ -22,6 +22,11 @@ final class MetaNameAmp4adsVars extends Tag */ const ID = 'meta name=amp4ads-vars-*'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp4ads-vars-*', diff --git a/src/Validator/Spec/Tag/MetaNameAmpAdDoubleclickSra.php b/src/Validator/Spec/Tag/MetaNameAmpAdDoubleclickSra.php index 824c5fb19..c5e705416 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpAdDoubleclickSra.php +++ b/src/Validator/Spec/Tag/MetaNameAmpAdDoubleclickSra.php @@ -22,6 +22,11 @@ final class MetaNameAmpAdDoubleclickSra extends Tag */ const ID = 'meta name=amp-ad-doubleclick-sra'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-ad-doubleclick-sra', diff --git a/src/Validator/Spec/Tag/MetaNameAmpAdEnableRefresh.php b/src/Validator/Spec/Tag/MetaNameAmpAdEnableRefresh.php index 8466c99b7..f6547b1e6 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpAdEnableRefresh.php +++ b/src/Validator/Spec/Tag/MetaNameAmpAdEnableRefresh.php @@ -22,6 +22,11 @@ final class MetaNameAmpAdEnableRefresh extends Tag */ const ID = 'meta name=amp-ad-enable-refresh'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-ad-enable-refresh', diff --git a/src/Validator/Spec/Tag/MetaNameAmpConsentBlocking.php b/src/Validator/Spec/Tag/MetaNameAmpConsentBlocking.php index 2239d2558..2ed36c64c 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpConsentBlocking.php +++ b/src/Validator/Spec/Tag/MetaNameAmpConsentBlocking.php @@ -22,6 +22,11 @@ final class MetaNameAmpConsentBlocking extends Tag */ const ID = 'meta name=amp-consent-blocking'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-consent-blocking', diff --git a/src/Validator/Spec/Tag/MetaNameAmpCtaLandingPageType.php b/src/Validator/Spec/Tag/MetaNameAmpCtaLandingPageType.php index 5b7a32623..5aaee039c 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpCtaLandingPageType.php +++ b/src/Validator/Spec/Tag/MetaNameAmpCtaLandingPageType.php @@ -22,6 +22,11 @@ final class MetaNameAmpCtaLandingPageType extends Tag */ const ID = 'meta name=amp-cta-landing-page-type'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-cta-landing-page-type', diff --git a/src/Validator/Spec/Tag/MetaNameAmpCtaType.php b/src/Validator/Spec/Tag/MetaNameAmpCtaType.php index ab97d0429..4b74d04d7 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpCtaType.php +++ b/src/Validator/Spec/Tag/MetaNameAmpCtaType.php @@ -22,6 +22,11 @@ final class MetaNameAmpCtaType extends Tag */ const ID = 'meta name=amp-cta-type'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-cta-type', diff --git a/src/Validator/Spec/Tag/MetaNameAmpCtaUrl.php b/src/Validator/Spec/Tag/MetaNameAmpCtaUrl.php index e6061f8f9..9a3bb761f 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpCtaUrl.php +++ b/src/Validator/Spec/Tag/MetaNameAmpCtaUrl.php @@ -22,6 +22,11 @@ final class MetaNameAmpCtaUrl extends Tag */ const ID = 'meta name=amp-cta-url'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-cta-url', diff --git a/src/Validator/Spec/Tag/MetaNameAmpExperimentToken.php b/src/Validator/Spec/Tag/MetaNameAmpExperimentToken.php index 7f4c56478..e3d12d951 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpExperimentToken.php +++ b/src/Validator/Spec/Tag/MetaNameAmpExperimentToken.php @@ -22,6 +22,11 @@ final class MetaNameAmpExperimentToken extends Tag */ const ID = 'meta name=amp-experiment-token'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-experiment-token', diff --git a/src/Validator/Spec/Tag/MetaNameAmpExperimentsOptIn.php b/src/Validator/Spec/Tag/MetaNameAmpExperimentsOptIn.php index 392b5afb9..4b6526a65 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpExperimentsOptIn.php +++ b/src/Validator/Spec/Tag/MetaNameAmpExperimentsOptIn.php @@ -22,6 +22,11 @@ final class MetaNameAmpExperimentsOptIn extends Tag */ const ID = 'meta name=amp-experiments-opt-in'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-experiments-opt-in', diff --git a/src/Validator/Spec/Tag/MetaNameAmpGoogleClientidIdApi.php b/src/Validator/Spec/Tag/MetaNameAmpGoogleClientidIdApi.php index 564360a43..faa67bda1 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpGoogleClientidIdApi.php +++ b/src/Validator/Spec/Tag/MetaNameAmpGoogleClientidIdApi.php @@ -22,6 +22,11 @@ final class MetaNameAmpGoogleClientidIdApi extends Tag */ const ID = 'meta name=amp-google-clientid-id-api'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-google-clientid-id-api', diff --git a/src/Validator/Spec/Tag/MetaNameAmpLinkVariableAllowedOrigin.php b/src/Validator/Spec/Tag/MetaNameAmpLinkVariableAllowedOrigin.php index f59a7baf8..703a605bf 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpLinkVariableAllowedOrigin.php +++ b/src/Validator/Spec/Tag/MetaNameAmpLinkVariableAllowedOrigin.php @@ -22,6 +22,11 @@ final class MetaNameAmpLinkVariableAllowedOrigin extends Tag */ const ID = 'meta name=amp-link-variable-allowed-origin'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-link-variable-allowed-origin', diff --git a/src/Validator/Spec/Tag/MetaNameAmpListLoadMore.php b/src/Validator/Spec/Tag/MetaNameAmpListLoadMore.php index 07ea862e6..6650272c4 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpListLoadMore.php +++ b/src/Validator/Spec/Tag/MetaNameAmpListLoadMore.php @@ -22,6 +22,11 @@ final class MetaNameAmpListLoadMore extends Tag */ const ID = 'meta name=amp-list-load-more'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-list-load-more', diff --git a/src/Validator/Spec/Tag/MetaNameAmpRecaptchaInput.php b/src/Validator/Spec/Tag/MetaNameAmpRecaptchaInput.php index d20d2b57d..facf29588 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpRecaptchaInput.php +++ b/src/Validator/Spec/Tag/MetaNameAmpRecaptchaInput.php @@ -22,6 +22,11 @@ final class MetaNameAmpRecaptchaInput extends Tag */ const ID = 'meta name=amp-recaptcha-input'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-recaptcha-input', diff --git a/src/Validator/Spec/Tag/MetaNameAmpScriptSrc.php b/src/Validator/Spec/Tag/MetaNameAmpScriptSrc.php index 5700f1776..db18337bd 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpScriptSrc.php +++ b/src/Validator/Spec/Tag/MetaNameAmpScriptSrc.php @@ -22,6 +22,11 @@ final class MetaNameAmpScriptSrc extends Tag */ const ID = 'meta name=amp-script-src'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-script-src', diff --git a/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorName.php b/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorName.php index 4be31b1e4..028d0a7f5 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorName.php +++ b/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorName.php @@ -22,6 +22,11 @@ final class MetaNameAmpStoryGeneratorName extends Tag */ const ID = 'meta name=amp-story-generator-name'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-story-generator-name', diff --git a/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorVersion.php b/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorVersion.php index 5f2c6336a..0dae429f6 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorVersion.php +++ b/src/Validator/Spec/Tag/MetaNameAmpStoryGeneratorVersion.php @@ -22,6 +22,11 @@ final class MetaNameAmpStoryGeneratorVersion extends Tag */ const ID = 'meta name=amp-story-generator-version'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-story-generator-version', diff --git a/src/Validator/Spec/Tag/MetaNameAmpToAmpNavigation.php b/src/Validator/Spec/Tag/MetaNameAmpToAmpNavigation.php index a3b68274e..a17ac88d6 100644 --- a/src/Validator/Spec/Tag/MetaNameAmpToAmpNavigation.php +++ b/src/Validator/Spec/Tag/MetaNameAmpToAmpNavigation.php @@ -22,6 +22,11 @@ final class MetaNameAmpToAmpNavigation extends Tag */ const ID = 'meta name=amp-to-amp-navigation'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=amp-to-amp-navigation', diff --git a/src/Validator/Spec/Tag/MetaNameAndContent.php b/src/Validator/Spec/Tag/MetaNameAndContent.php index 6006844bd..1aaf14854 100644 --- a/src/Validator/Spec/Tag/MetaNameAndContent.php +++ b/src/Validator/Spec/Tag/MetaNameAndContent.php @@ -22,6 +22,11 @@ final class MetaNameAndContent extends Tag */ const ID = 'meta name= and content='; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name= and content=', diff --git a/src/Validator/Spec/Tag/MetaNameAppleItunesApp.php b/src/Validator/Spec/Tag/MetaNameAppleItunesApp.php index 406705470..40e1b84e0 100644 --- a/src/Validator/Spec/Tag/MetaNameAppleItunesApp.php +++ b/src/Validator/Spec/Tag/MetaNameAppleItunesApp.php @@ -22,6 +22,11 @@ final class MetaNameAppleItunesApp extends Tag */ const ID = 'meta name=apple-itunes-app'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=apple-itunes-app', diff --git a/src/Validator/Spec/Tag/MetaNameViewport.php b/src/Validator/Spec/Tag/MetaNameViewport.php index ee928c276..a4b40fe59 100644 --- a/src/Validator/Spec/Tag/MetaNameViewport.php +++ b/src/Validator/Spec/Tag/MetaNameViewport.php @@ -22,6 +22,11 @@ final class MetaNameViewport extends Tag */ const ID = 'meta name=viewport'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::META, SpecRule::SPEC_NAME => 'meta name=viewport', diff --git a/src/Validator/Spec/Tag/Metadata.php b/src/Validator/Spec/Tag/Metadata.php index 8b655d792..4422ed13f 100644 --- a/src/Validator/Spec/Tag/Metadata.php +++ b/src/Validator/Spec/Tag/Metadata.php @@ -22,6 +22,11 @@ final class Metadata extends Tag */ const ID = 'METADATA'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::METADATA, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Meter.php b/src/Validator/Spec/Tag/Meter.php index 8c61f12fe..af4ece537 100644 --- a/src/Validator/Spec/Tag/Meter.php +++ b/src/Validator/Spec/Tag/Meter.php @@ -22,6 +22,11 @@ final class Meter extends Tag */ const ID = 'METER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::METER, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Multicol.php b/src/Validator/Spec/Tag/Multicol.php index 997683fd4..365a45d06 100644 --- a/src/Validator/Spec/Tag/Multicol.php +++ b/src/Validator/Spec/Tag/Multicol.php @@ -21,6 +21,11 @@ final class Multicol extends Tag */ const ID = 'MULTICOL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::MULTICOL, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Nav.php b/src/Validator/Spec/Tag/Nav.php index 10c7aa243..413c841f0 100644 --- a/src/Validator/Spec/Tag/Nav.php +++ b/src/Validator/Spec/Tag/Nav.php @@ -21,6 +21,11 @@ final class Nav extends Tag */ const ID = 'NAV'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::NAV, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Nextid.php b/src/Validator/Spec/Tag/Nextid.php index f9c8d63c9..b1142fe27 100644 --- a/src/Validator/Spec/Tag/Nextid.php +++ b/src/Validator/Spec/Tag/Nextid.php @@ -21,6 +21,11 @@ final class Nextid extends Tag */ const ID = 'NEXTID'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::NEXTID, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Nobr.php b/src/Validator/Spec/Tag/Nobr.php index 3ea0e6f56..cb2a94696 100644 --- a/src/Validator/Spec/Tag/Nobr.php +++ b/src/Validator/Spec/Tag/Nobr.php @@ -21,6 +21,11 @@ final class Nobr extends Tag */ const ID = 'NOBR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::NOBR, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Noscript.php b/src/Validator/Spec/Tag/Noscript.php index 95c675307..a19114ed1 100644 --- a/src/Validator/Spec/Tag/Noscript.php +++ b/src/Validator/Spec/Tag/Noscript.php @@ -21,6 +21,11 @@ final class Noscript extends Tag */ const ID = 'NOSCRIPT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::NOSCRIPT, SpecRule::DISALLOWED_ANCESTOR => [ diff --git a/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplate.php b/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplate.php index 8cc232ae0..cee3237e3 100644 --- a/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplate.php +++ b/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplate.php @@ -22,6 +22,11 @@ final class NoscriptEnclosureForBoilerplate extends Tag */ const ID = 'noscript enclosure for boilerplate'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::NOSCRIPT, SpecRule::SPEC_NAME => 'noscript enclosure for boilerplate', diff --git a/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplateTransformed.php b/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplateTransformed.php index fc13497f2..c9db64b22 100644 --- a/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplateTransformed.php +++ b/src/Validator/Spec/Tag/NoscriptEnclosureForBoilerplateTransformed.php @@ -22,6 +22,11 @@ final class NoscriptEnclosureForBoilerplateTransformed extends Tag */ const ID = 'noscript enclosure for boilerplate (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::NOSCRIPT, SpecRule::SPEC_NAME => 'noscript enclosure for boilerplate (transformed)', diff --git a/src/Validator/Spec/Tag/NoscriptImg.php b/src/Validator/Spec/Tag/NoscriptImg.php index e27dcebbc..bed65d0d2 100644 --- a/src/Validator/Spec/Tag/NoscriptImg.php +++ b/src/Validator/Spec/Tag/NoscriptImg.php @@ -25,6 +25,11 @@ final class NoscriptImg extends Tag */ const ID = 'noscript > img'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::IMG, SpecRule::SPEC_NAME => 'noscript > img', diff --git a/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplate.php b/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplate.php index dda7f0a05..f28eb2c33 100644 --- a/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplate.php +++ b/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplate.php @@ -23,6 +23,11 @@ final class NoscriptStyleAmpBoilerplate extends Tag */ const ID = 'noscript > style[amp-boilerplate]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'noscript > style[amp-boilerplate]', diff --git a/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplateTransformed.php b/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplateTransformed.php index b6ab73dfd..64377da30 100644 --- a/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplateTransformed.php +++ b/src/Validator/Spec/Tag/NoscriptStyleAmpBoilerplateTransformed.php @@ -23,6 +23,11 @@ final class NoscriptStyleAmpBoilerplateTransformed extends Tag */ const ID = 'noscript > style[amp-boilerplate] (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'noscript > style[amp-boilerplate] (transformed)', diff --git a/src/Validator/Spec/Tag/OP.php b/src/Validator/Spec/Tag/OP.php index 43ac12934..ee937964d 100644 --- a/src/Validator/Spec/Tag/OP.php +++ b/src/Validator/Spec/Tag/OP.php @@ -21,6 +21,11 @@ final class OP extends Tag */ const ID = 'O:P'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::O_P, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Ol.php b/src/Validator/Spec/Tag/Ol.php index 663916605..607f69267 100644 --- a/src/Validator/Spec/Tag/Ol.php +++ b/src/Validator/Spec/Tag/Ol.php @@ -22,6 +22,11 @@ final class Ol extends Tag */ const ID = 'OL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::OL, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Optgroup.php b/src/Validator/Spec/Tag/Optgroup.php index 6e4c48a36..ad33fb0af 100644 --- a/src/Validator/Spec/Tag/Optgroup.php +++ b/src/Validator/Spec/Tag/Optgroup.php @@ -22,6 +22,11 @@ final class Optgroup extends Tag */ const ID = 'OPTGROUP'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::OPTGROUP, SpecRule::MANDATORY_PARENT => Element::SELECT, diff --git a/src/Validator/Spec/Tag/Option.php b/src/Validator/Spec/Tag/Option.php index 84e74d2fa..8581876e2 100644 --- a/src/Validator/Spec/Tag/Option.php +++ b/src/Validator/Spec/Tag/Option.php @@ -22,6 +22,11 @@ final class Option extends Tag */ const ID = 'OPTION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::OPTION, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Output.php b/src/Validator/Spec/Tag/Output.php index 3d1bb4c0a..7f8fc3f2f 100644 --- a/src/Validator/Spec/Tag/Output.php +++ b/src/Validator/Spec/Tag/Output.php @@ -23,6 +23,11 @@ final class Output extends Tag */ const ID = 'OUTPUT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::OUTPUT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/P.php b/src/Validator/Spec/Tag/P.php index 179920a4a..bcea9e80f 100644 --- a/src/Validator/Spec/Tag/P.php +++ b/src/Validator/Spec/Tag/P.php @@ -22,6 +22,11 @@ final class P extends Tag */ const ID = 'P'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::P, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Path.php b/src/Validator/Spec/Tag/Path.php index e09e11dcc..13abcb91b 100644 --- a/src/Validator/Spec/Tag/Path.php +++ b/src/Validator/Spec/Tag/Path.php @@ -23,6 +23,11 @@ final class Path extends Tag */ const ID = 'PATH'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::PATH, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Pattern.php b/src/Validator/Spec/Tag/Pattern.php index a6b3b0c0c..85897a790 100644 --- a/src/Validator/Spec/Tag/Pattern.php +++ b/src/Validator/Spec/Tag/Pattern.php @@ -23,6 +23,11 @@ final class Pattern extends Tag */ const ID = 'PATTERN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::PATTERN, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Picture.php b/src/Validator/Spec/Tag/Picture.php index 990b499c2..d7ca3434b 100644 --- a/src/Validator/Spec/Tag/Picture.php +++ b/src/Validator/Spec/Tag/Picture.php @@ -21,6 +21,11 @@ final class Picture extends Tag */ const ID = 'PICTURE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::PICTURE, SpecRule::MANDATORY_PARENT => Element::NOSCRIPT, diff --git a/src/Validator/Spec/Tag/PictureSource.php b/src/Validator/Spec/Tag/PictureSource.php index f5417b8c6..934dbd85a 100644 --- a/src/Validator/Spec/Tag/PictureSource.php +++ b/src/Validator/Spec/Tag/PictureSource.php @@ -23,6 +23,11 @@ final class PictureSource extends Tag */ const ID = 'picture > source'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SOURCE, SpecRule::SPEC_NAME => 'picture > source', diff --git a/src/Validator/Spec/Tag/Polygon.php b/src/Validator/Spec/Tag/Polygon.php index 5a31c1535..0274a731e 100644 --- a/src/Validator/Spec/Tag/Polygon.php +++ b/src/Validator/Spec/Tag/Polygon.php @@ -23,6 +23,11 @@ final class Polygon extends Tag */ const ID = 'POLYGON'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::POLYGON, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Polyline.php b/src/Validator/Spec/Tag/Polyline.php index 6326023d4..2a9b57d88 100644 --- a/src/Validator/Spec/Tag/Polyline.php +++ b/src/Validator/Spec/Tag/Polyline.php @@ -23,6 +23,11 @@ final class Polyline extends Tag */ const ID = 'POLYLINE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::POLYLINE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Pre.php b/src/Validator/Spec/Tag/Pre.php index 0eed90aea..8cbdd63d1 100644 --- a/src/Validator/Spec/Tag/Pre.php +++ b/src/Validator/Spec/Tag/Pre.php @@ -21,6 +21,11 @@ final class Pre extends Tag */ const ID = 'PRE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::PRE, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Progress.php b/src/Validator/Spec/Tag/Progress.php index 2f1126396..cc33e0203 100644 --- a/src/Validator/Spec/Tag/Progress.php +++ b/src/Validator/Spec/Tag/Progress.php @@ -22,6 +22,11 @@ final class Progress extends Tag */ const ID = 'PROGRESS'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::PROGRESS, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Q.php b/src/Validator/Spec/Tag/Q.php index 38c9c7665..d12fd3c98 100644 --- a/src/Validator/Spec/Tag/Q.php +++ b/src/Validator/Spec/Tag/Q.php @@ -22,6 +22,11 @@ final class Q extends Tag */ const ID = 'Q'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::Q, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Radialgradient.php b/src/Validator/Spec/Tag/Radialgradient.php index 40ce46fa7..f73085e07 100644 --- a/src/Validator/Spec/Tag/Radialgradient.php +++ b/src/Validator/Spec/Tag/Radialgradient.php @@ -23,6 +23,11 @@ final class Radialgradient extends Tag */ const ID = 'RADIALGRADIENT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::RADIALGRADIENT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/RadialgradientStop.php b/src/Validator/Spec/Tag/RadialgradientStop.php index 4386e82c9..f811904fe 100644 --- a/src/Validator/Spec/Tag/RadialgradientStop.php +++ b/src/Validator/Spec/Tag/RadialgradientStop.php @@ -23,6 +23,11 @@ final class RadialgradientStop extends Tag */ const ID = 'radialgradient > stop'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STOP, SpecRule::SPEC_NAME => 'radialgradient > stop', diff --git a/src/Validator/Spec/Tag/Rb.php b/src/Validator/Spec/Tag/Rb.php index 3e32f1365..ba51d2faa 100644 --- a/src/Validator/Spec/Tag/Rb.php +++ b/src/Validator/Spec/Tag/Rb.php @@ -21,6 +21,11 @@ final class Rb extends Tag */ const ID = 'RB'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::RB, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Rect.php b/src/Validator/Spec/Tag/Rect.php index 7273ec11b..ffbe7efb8 100644 --- a/src/Validator/Spec/Tag/Rect.php +++ b/src/Validator/Spec/Tag/Rect.php @@ -23,6 +23,11 @@ final class Rect extends Tag */ const ID = 'RECT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::RECT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Rp.php b/src/Validator/Spec/Tag/Rp.php index c87aba923..0a0480518 100644 --- a/src/Validator/Spec/Tag/Rp.php +++ b/src/Validator/Spec/Tag/Rp.php @@ -21,6 +21,11 @@ final class Rp extends Tag */ const ID = 'RP'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::RP, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Rt.php b/src/Validator/Spec/Tag/Rt.php index 5780eadff..6b3de18a6 100644 --- a/src/Validator/Spec/Tag/Rt.php +++ b/src/Validator/Spec/Tag/Rt.php @@ -21,6 +21,11 @@ final class Rt extends Tag */ const ID = 'RT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::RT, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Rtc.php b/src/Validator/Spec/Tag/Rtc.php index b2d02beea..a44df2fc6 100644 --- a/src/Validator/Spec/Tag/Rtc.php +++ b/src/Validator/Spec/Tag/Rtc.php @@ -21,6 +21,11 @@ final class Rtc extends Tag */ const ID = 'RTC'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::RTC, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Ruby.php b/src/Validator/Spec/Tag/Ruby.php index 2563fb4b4..483c4ac22 100644 --- a/src/Validator/Spec/Tag/Ruby.php +++ b/src/Validator/Spec/Tag/Ruby.php @@ -21,6 +21,11 @@ final class Ruby extends Tag */ const ID = 'RUBY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::RUBY, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/S.php b/src/Validator/Spec/Tag/S.php index 836e4a4cc..45ef9b5bb 100644 --- a/src/Validator/Spec/Tag/S.php +++ b/src/Validator/Spec/Tag/S.php @@ -21,6 +21,11 @@ final class S extends Tag */ const ID = 'S'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::S, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Samp.php b/src/Validator/Spec/Tag/Samp.php index 9ae64454f..dd50b66b0 100644 --- a/src/Validator/Spec/Tag/Samp.php +++ b/src/Validator/Spec/Tag/Samp.php @@ -21,6 +21,11 @@ final class Samp extends Tag */ const ID = 'SAMP'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SAMP, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/ScriptAmp3dGltf.php b/src/Validator/Spec/Tag/ScriptAmp3dGltf.php index 8e0bdc5cd..7c20987a0 100644 --- a/src/Validator/Spec/Tag/ScriptAmp3dGltf.php +++ b/src/Validator/Spec/Tag/ScriptAmp3dGltf.php @@ -26,6 +26,11 @@ final class ScriptAmp3dGltf extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-3d-gltf]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-3d-gltf', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmp3dGltf extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmp3qPlayer.php b/src/Validator/Spec/Tag/ScriptAmp3qPlayer.php index 63d88560e..b082db8e9 100644 --- a/src/Validator/Spec/Tag/ScriptAmp3qPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmp3qPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmp3qPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-3q-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-3q-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmp3qPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAccess.php b/src/Validator/Spec/Tag/ScriptAmpAccess.php index 87a53475f..84dfd1d12 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAccess.php +++ b/src/Validator/Spec/Tag/ScriptAmpAccess.php @@ -26,6 +26,11 @@ final class ScriptAmpAccess extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-access]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-access', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpAccess extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAccessLaterpay.php b/src/Validator/Spec/Tag/ScriptAmpAccessLaterpay.php index 78674916c..ef630d860 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAccessLaterpay.php +++ b/src/Validator/Spec/Tag/ScriptAmpAccessLaterpay.php @@ -27,6 +27,11 @@ final class ScriptAmpAccessLaterpay extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-access-laterpay]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-access-laterpay', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpAccessLaterpay extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAccessPoool.php b/src/Validator/Spec/Tag/ScriptAmpAccessPoool.php index bc49718fd..0531504ec 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAccessPoool.php +++ b/src/Validator/Spec/Tag/ScriptAmpAccessPoool.php @@ -27,6 +27,11 @@ final class ScriptAmpAccessPoool extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-access-poool]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-access-poool', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpAccessPoool extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAccessScroll.php b/src/Validator/Spec/Tag/ScriptAmpAccessScroll.php index 5afbc2a09..87fe2b342 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAccessScroll.php +++ b/src/Validator/Spec/Tag/ScriptAmpAccessScroll.php @@ -27,6 +27,11 @@ final class ScriptAmpAccessScroll extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-access-scroll]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-access-scroll', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpAccessScroll extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAccordion.php b/src/Validator/Spec/Tag/ScriptAmpAccordion.php index cae972ba3..ae6bec850 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAccordion.php +++ b/src/Validator/Spec/Tag/ScriptAmpAccordion.php @@ -26,6 +26,11 @@ final class ScriptAmpAccordion extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-accordion]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-accordion', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpAccordion extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAccordion2.php b/src/Validator/Spec/Tag/ScriptAmpAccordion2.php index b05e7ab8f..6dae476dc 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAccordion2.php +++ b/src/Validator/Spec/Tag/ScriptAmpAccordion2.php @@ -26,6 +26,11 @@ final class ScriptAmpAccordion2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-accordion] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-accordion', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpAccordion2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpActionMacro.php b/src/Validator/Spec/Tag/ScriptAmpActionMacro.php index e9c783f9b..859e79385 100644 --- a/src/Validator/Spec/Tag/ScriptAmpActionMacro.php +++ b/src/Validator/Spec/Tag/ScriptAmpActionMacro.php @@ -26,6 +26,11 @@ final class ScriptAmpActionMacro extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-action-macro]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-action-macro', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpActionMacro extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAdCustom.php b/src/Validator/Spec/Tag/ScriptAmpAdCustom.php index 12a4985f4..84eea5c9d 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAdCustom.php +++ b/src/Validator/Spec/Tag/ScriptAmpAdCustom.php @@ -26,6 +26,11 @@ final class ScriptAmpAdCustom extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-ad-custom]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-ad-custom', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpAdCustom extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAdExit.php b/src/Validator/Spec/Tag/ScriptAmpAdExit.php index 432d5c40a..431ab3a5f 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAdExit.php +++ b/src/Validator/Spec/Tag/ScriptAmpAdExit.php @@ -26,6 +26,11 @@ final class ScriptAmpAdExit extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-ad-exit]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-ad-exit', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpAdExit extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAddthis.php b/src/Validator/Spec/Tag/ScriptAmpAddthis.php index b788791ac..97a47756a 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAddthis.php +++ b/src/Validator/Spec/Tag/ScriptAmpAddthis.php @@ -26,6 +26,11 @@ final class ScriptAmpAddthis extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-addthis]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-addthis', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpAddthis extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAnalytics.php b/src/Validator/Spec/Tag/ScriptAmpAnalytics.php index d9eb7dbc0..ee05ef41f 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAnalytics.php +++ b/src/Validator/Spec/Tag/ScriptAmpAnalytics.php @@ -26,6 +26,11 @@ final class ScriptAmpAnalytics extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-analytics]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-analytics', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpAnalytics extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAnim.php b/src/Validator/Spec/Tag/ScriptAmpAnim.php index 4105b1b75..633317361 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAnim.php +++ b/src/Validator/Spec/Tag/ScriptAmpAnim.php @@ -26,6 +26,11 @@ final class ScriptAmpAnim extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-anim]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-anim', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpAnim extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAnimation.php b/src/Validator/Spec/Tag/ScriptAmpAnimation.php index c3c21e256..70cb26cdf 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAnimation.php +++ b/src/Validator/Spec/Tag/ScriptAmpAnimation.php @@ -26,6 +26,11 @@ final class ScriptAmpAnimation extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-animation]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-animation', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpAnimation extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpApesterMedia.php b/src/Validator/Spec/Tag/ScriptAmpApesterMedia.php index 8e11a3a0e..24727132b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpApesterMedia.php +++ b/src/Validator/Spec/Tag/ScriptAmpApesterMedia.php @@ -26,6 +26,11 @@ final class ScriptAmpApesterMedia extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-apester-media]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-apester-media', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpApesterMedia extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAppBanner.php b/src/Validator/Spec/Tag/ScriptAmpAppBanner.php index e753a96c5..adcc5e87b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAppBanner.php +++ b/src/Validator/Spec/Tag/ScriptAmpAppBanner.php @@ -26,6 +26,11 @@ final class ScriptAmpAppBanner extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-app-banner]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-app-banner', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpAppBanner extends Tag implements TagWithExtensionSpec SpecRule::DEPRECATED_ALLOW_DUPLICATES => true, ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAudio.php b/src/Validator/Spec/Tag/ScriptAmpAudio.php index 678b74416..9894e9816 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAudio.php +++ b/src/Validator/Spec/Tag/ScriptAmpAudio.php @@ -26,6 +26,11 @@ final class ScriptAmpAudio extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-audio]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-audio', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpAudio extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAutoAds.php b/src/Validator/Spec/Tag/ScriptAmpAutoAds.php index 21734354d..6d4f81eb8 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAutoAds.php +++ b/src/Validator/Spec/Tag/ScriptAmpAutoAds.php @@ -26,6 +26,11 @@ final class ScriptAmpAutoAds extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-auto-ads]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-auto-ads', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpAutoAds extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpAutocomplete.php b/src/Validator/Spec/Tag/ScriptAmpAutocomplete.php index 03e5619d7..36882b677 100644 --- a/src/Validator/Spec/Tag/ScriptAmpAutocomplete.php +++ b/src/Validator/Spec/Tag/ScriptAmpAutocomplete.php @@ -26,6 +26,11 @@ final class ScriptAmpAutocomplete extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-autocomplete]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-autocomplete', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpAutocomplete extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpBaseCarousel.php b/src/Validator/Spec/Tag/ScriptAmpBaseCarousel.php index e02cff1de..78e6744dc 100644 --- a/src/Validator/Spec/Tag/ScriptAmpBaseCarousel.php +++ b/src/Validator/Spec/Tag/ScriptAmpBaseCarousel.php @@ -26,6 +26,11 @@ final class ScriptAmpBaseCarousel extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-base-carousel]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-base-carousel', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpBaseCarousel extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpBeopinion.php b/src/Validator/Spec/Tag/ScriptAmpBeopinion.php index 1533f8053..f0f7537ca 100644 --- a/src/Validator/Spec/Tag/ScriptAmpBeopinion.php +++ b/src/Validator/Spec/Tag/ScriptAmpBeopinion.php @@ -26,6 +26,11 @@ final class ScriptAmpBeopinion extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-beopinion]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-beopinion', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpBeopinion extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpBind.php b/src/Validator/Spec/Tag/ScriptAmpBind.php index cea7ba31a..2886ce8c1 100644 --- a/src/Validator/Spec/Tag/ScriptAmpBind.php +++ b/src/Validator/Spec/Tag/ScriptAmpBind.php @@ -26,6 +26,11 @@ final class ScriptAmpBind extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-bind]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-bind', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpBind extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpBodymovinAnimation.php b/src/Validator/Spec/Tag/ScriptAmpBodymovinAnimation.php index ba54a72f4..5e5b3dcd0 100644 --- a/src/Validator/Spec/Tag/ScriptAmpBodymovinAnimation.php +++ b/src/Validator/Spec/Tag/ScriptAmpBodymovinAnimation.php @@ -26,6 +26,11 @@ final class ScriptAmpBodymovinAnimation extends Tag implements TagWithExtensionS */ const ID = 'SCRIPT [amp-bodymovin-animation]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-bodymovin-animation', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpBodymovinAnimation extends Tag implements TagWithExtensionS ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpBridPlayer.php b/src/Validator/Spec/Tag/ScriptAmpBridPlayer.php index 6cf2ac319..c685bf19b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpBridPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpBridPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpBridPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-brid-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-brid-player', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpBridPlayer extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpBrightcove.php b/src/Validator/Spec/Tag/ScriptAmpBrightcove.php index d3314a056..dde99696b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpBrightcove.php +++ b/src/Validator/Spec/Tag/ScriptAmpBrightcove.php @@ -26,6 +26,11 @@ final class ScriptAmpBrightcove extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-brightcove]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-brightcove', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpBrightcove extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpBysideContent.php b/src/Validator/Spec/Tag/ScriptAmpBysideContent.php index da3f1f20d..4ae384147 100644 --- a/src/Validator/Spec/Tag/ScriptAmpBysideContent.php +++ b/src/Validator/Spec/Tag/ScriptAmpBysideContent.php @@ -26,6 +26,11 @@ final class ScriptAmpBysideContent extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-byside-content]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-byside-content', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpBysideContent extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpCacheUrl.php b/src/Validator/Spec/Tag/ScriptAmpCacheUrl.php index e74e005a3..86b5424b1 100644 --- a/src/Validator/Spec/Tag/ScriptAmpCacheUrl.php +++ b/src/Validator/Spec/Tag/ScriptAmpCacheUrl.php @@ -26,6 +26,11 @@ final class ScriptAmpCacheUrl extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-cache-url]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-cache-url', SpecRule::VERSION => [ @@ -33,6 +38,11 @@ final class ScriptAmpCacheUrl extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpCallTracking.php b/src/Validator/Spec/Tag/ScriptAmpCallTracking.php index 1b1878cfb..5b8d827a3 100644 --- a/src/Validator/Spec/Tag/ScriptAmpCallTracking.php +++ b/src/Validator/Spec/Tag/ScriptAmpCallTracking.php @@ -26,6 +26,11 @@ final class ScriptAmpCallTracking extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-call-tracking]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-call-tracking', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpCallTracking extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpCarousel.php b/src/Validator/Spec/Tag/ScriptAmpCarousel.php index cccae0240..1486f0589 100644 --- a/src/Validator/Spec/Tag/ScriptAmpCarousel.php +++ b/src/Validator/Spec/Tag/ScriptAmpCarousel.php @@ -26,6 +26,11 @@ final class ScriptAmpCarousel extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-carousel]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-carousel', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpCarousel extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpConnatixPlayer.php b/src/Validator/Spec/Tag/ScriptAmpConnatixPlayer.php index 5c0bfdda5..e6fa8bfe4 100644 --- a/src/Validator/Spec/Tag/ScriptAmpConnatixPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpConnatixPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpConnatixPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-connatix-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-connatix-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpConnatixPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpConsent.php b/src/Validator/Spec/Tag/ScriptAmpConsent.php index c03786aec..83bfd2db3 100644 --- a/src/Validator/Spec/Tag/ScriptAmpConsent.php +++ b/src/Validator/Spec/Tag/ScriptAmpConsent.php @@ -26,6 +26,11 @@ final class ScriptAmpConsent extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-consent]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-consent', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpConsent extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpDailymotion.php b/src/Validator/Spec/Tag/ScriptAmpDailymotion.php index 00842b34d..ab220ce6f 100644 --- a/src/Validator/Spec/Tag/ScriptAmpDailymotion.php +++ b/src/Validator/Spec/Tag/ScriptAmpDailymotion.php @@ -26,6 +26,11 @@ final class ScriptAmpDailymotion extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-dailymotion]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-dailymotion', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpDailymotion extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpDateCountdown.php b/src/Validator/Spec/Tag/ScriptAmpDateCountdown.php index 4bb2c16f5..2d3c60070 100644 --- a/src/Validator/Spec/Tag/ScriptAmpDateCountdown.php +++ b/src/Validator/Spec/Tag/ScriptAmpDateCountdown.php @@ -26,6 +26,11 @@ final class ScriptAmpDateCountdown extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-date-countdown]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-date-countdown', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpDateCountdown extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpDateDisplay.php b/src/Validator/Spec/Tag/ScriptAmpDateDisplay.php index 7e2f474b1..2392df357 100644 --- a/src/Validator/Spec/Tag/ScriptAmpDateDisplay.php +++ b/src/Validator/Spec/Tag/ScriptAmpDateDisplay.php @@ -26,6 +26,11 @@ final class ScriptAmpDateDisplay extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-date-display]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-date-display', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpDateDisplay extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpDatePicker.php b/src/Validator/Spec/Tag/ScriptAmpDatePicker.php index 725b15370..ff8f6717c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpDatePicker.php +++ b/src/Validator/Spec/Tag/ScriptAmpDatePicker.php @@ -26,6 +26,11 @@ final class ScriptAmpDatePicker extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-date-picker]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-date-picker', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpDatePicker extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpDelightPlayer.php b/src/Validator/Spec/Tag/ScriptAmpDelightPlayer.php index 812568b01..dcab84d19 100644 --- a/src/Validator/Spec/Tag/ScriptAmpDelightPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpDelightPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpDelightPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-delight-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-delight-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpDelightPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpDynamicCssClasses.php b/src/Validator/Spec/Tag/ScriptAmpDynamicCssClasses.php index 70688d517..281587c30 100644 --- a/src/Validator/Spec/Tag/ScriptAmpDynamicCssClasses.php +++ b/src/Validator/Spec/Tag/ScriptAmpDynamicCssClasses.php @@ -26,6 +26,11 @@ final class ScriptAmpDynamicCssClasses extends Tag implements TagWithExtensionSp */ const ID = 'SCRIPT [amp-dynamic-css-classes]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-dynamic-css-classes', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpDynamicCssClasses extends Tag implements TagWithExtensionSp SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpEmbedlyCard.php b/src/Validator/Spec/Tag/ScriptAmpEmbedlyCard.php index 56a680b27..51e902d3b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpEmbedlyCard.php +++ b/src/Validator/Spec/Tag/ScriptAmpEmbedlyCard.php @@ -26,6 +26,11 @@ final class ScriptAmpEmbedlyCard extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-embedly-card]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-embedly-card', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpEmbedlyCard extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpExperiment.php b/src/Validator/Spec/Tag/ScriptAmpExperiment.php index e4e2abefb..835581949 100644 --- a/src/Validator/Spec/Tag/ScriptAmpExperiment.php +++ b/src/Validator/Spec/Tag/ScriptAmpExperiment.php @@ -26,6 +26,11 @@ final class ScriptAmpExperiment extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-experiment]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-experiment', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpExperiment extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFacebook.php b/src/Validator/Spec/Tag/ScriptAmpFacebook.php index 19ad52230..3635174da 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFacebook.php +++ b/src/Validator/Spec/Tag/ScriptAmpFacebook.php @@ -26,6 +26,11 @@ final class ScriptAmpFacebook extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-facebook]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-facebook', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpFacebook extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFacebookComments.php b/src/Validator/Spec/Tag/ScriptAmpFacebookComments.php index 95623337f..047c97ddc 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFacebookComments.php +++ b/src/Validator/Spec/Tag/ScriptAmpFacebookComments.php @@ -26,6 +26,11 @@ final class ScriptAmpFacebookComments extends Tag implements TagWithExtensionSpe */ const ID = 'SCRIPT [amp-facebook-comments]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-facebook-comments', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpFacebookComments extends Tag implements TagWithExtensionSpe ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFacebookLike.php b/src/Validator/Spec/Tag/ScriptAmpFacebookLike.php index e5b7fbb5e..fd83eb074 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFacebookLike.php +++ b/src/Validator/Spec/Tag/ScriptAmpFacebookLike.php @@ -26,6 +26,11 @@ final class ScriptAmpFacebookLike extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-facebook-like]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-facebook-like', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpFacebookLike extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFacebookPage.php b/src/Validator/Spec/Tag/ScriptAmpFacebookPage.php index 9dafa4949..5ec99a5bf 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFacebookPage.php +++ b/src/Validator/Spec/Tag/ScriptAmpFacebookPage.php @@ -26,6 +26,11 @@ final class ScriptAmpFacebookPage extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-facebook-page]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-facebook-page', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpFacebookPage extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFitText.php b/src/Validator/Spec/Tag/ScriptAmpFitText.php index 55b8926df..345bfaeaa 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFitText.php +++ b/src/Validator/Spec/Tag/ScriptAmpFitText.php @@ -26,6 +26,11 @@ final class ScriptAmpFitText extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-fit-text]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-fit-text', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpFitText extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFitText2.php b/src/Validator/Spec/Tag/ScriptAmpFitText2.php index fb9df0be6..9f53f1d19 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFitText2.php +++ b/src/Validator/Spec/Tag/ScriptAmpFitText2.php @@ -26,6 +26,11 @@ final class ScriptAmpFitText2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-fit-text] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-fit-text', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpFitText2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFont.php b/src/Validator/Spec/Tag/ScriptAmpFont.php index 6cf87070e..94f74abff 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFont.php +++ b/src/Validator/Spec/Tag/ScriptAmpFont.php @@ -26,6 +26,11 @@ final class ScriptAmpFont extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-font]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-font', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpFont extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpForm.php b/src/Validator/Spec/Tag/ScriptAmpForm.php index dea63d711..c3c554f2b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpForm.php +++ b/src/Validator/Spec/Tag/ScriptAmpForm.php @@ -26,6 +26,11 @@ final class ScriptAmpForm extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-form]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-form', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpForm extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFxCollection.php b/src/Validator/Spec/Tag/ScriptAmpFxCollection.php index 86694aaa7..48df9eaa9 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFxCollection.php +++ b/src/Validator/Spec/Tag/ScriptAmpFxCollection.php @@ -26,6 +26,11 @@ final class ScriptAmpFxCollection extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-fx-collection]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-fx-collection', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpFxCollection extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpFxFlyingCarpet.php b/src/Validator/Spec/Tag/ScriptAmpFxFlyingCarpet.php index 620e11401..bca7716f7 100644 --- a/src/Validator/Spec/Tag/ScriptAmpFxFlyingCarpet.php +++ b/src/Validator/Spec/Tag/ScriptAmpFxFlyingCarpet.php @@ -26,6 +26,11 @@ final class ScriptAmpFxFlyingCarpet extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-fx-flying-carpet]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-fx-flying-carpet', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpFxFlyingCarpet extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpGeo.php b/src/Validator/Spec/Tag/ScriptAmpGeo.php index 109727120..5492d6934 100644 --- a/src/Validator/Spec/Tag/ScriptAmpGeo.php +++ b/src/Validator/Spec/Tag/ScriptAmpGeo.php @@ -26,6 +26,11 @@ final class ScriptAmpGeo extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-geo]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-geo', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpGeo extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpGfycat.php b/src/Validator/Spec/Tag/ScriptAmpGfycat.php index e18b4f1bd..7a1484456 100644 --- a/src/Validator/Spec/Tag/ScriptAmpGfycat.php +++ b/src/Validator/Spec/Tag/ScriptAmpGfycat.php @@ -26,6 +26,11 @@ final class ScriptAmpGfycat extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-gfycat]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-gfycat', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpGfycat extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpGist.php b/src/Validator/Spec/Tag/ScriptAmpGist.php index f496f469d..cb4469d4d 100644 --- a/src/Validator/Spec/Tag/ScriptAmpGist.php +++ b/src/Validator/Spec/Tag/ScriptAmpGist.php @@ -26,6 +26,11 @@ final class ScriptAmpGist extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-gist]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-gist', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpGist extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpGoogleAssistantAssistjs.php b/src/Validator/Spec/Tag/ScriptAmpGoogleAssistantAssistjs.php index b385e184a..e740534ff 100644 --- a/src/Validator/Spec/Tag/ScriptAmpGoogleAssistantAssistjs.php +++ b/src/Validator/Spec/Tag/ScriptAmpGoogleAssistantAssistjs.php @@ -26,6 +26,11 @@ final class ScriptAmpGoogleAssistantAssistjs extends Tag implements TagWithExten */ const ID = 'SCRIPT [amp-google-assistant-assistjs]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-google-assistant-assistjs', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpGoogleAssistantAssistjs extends Tag implements TagWithExten ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpGoogleDocumentEmbed.php b/src/Validator/Spec/Tag/ScriptAmpGoogleDocumentEmbed.php index 8e9eefe69..4eec26196 100644 --- a/src/Validator/Spec/Tag/ScriptAmpGoogleDocumentEmbed.php +++ b/src/Validator/Spec/Tag/ScriptAmpGoogleDocumentEmbed.php @@ -26,6 +26,11 @@ final class ScriptAmpGoogleDocumentEmbed extends Tag implements TagWithExtension */ const ID = 'SCRIPT [amp-google-document-embed]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-google-document-embed', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpGoogleDocumentEmbed extends Tag implements TagWithExtension ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpGwdAnimation.php b/src/Validator/Spec/Tag/ScriptAmpGwdAnimation.php index eb892d093..59cd3e474 100644 --- a/src/Validator/Spec/Tag/ScriptAmpGwdAnimation.php +++ b/src/Validator/Spec/Tag/ScriptAmpGwdAnimation.php @@ -26,6 +26,11 @@ final class ScriptAmpGwdAnimation extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-gwd-animation]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-gwd-animation', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpGwdAnimation extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpHulu.php b/src/Validator/Spec/Tag/ScriptAmpHulu.php index 4c2f84f62..fe706275a 100644 --- a/src/Validator/Spec/Tag/ScriptAmpHulu.php +++ b/src/Validator/Spec/Tag/ScriptAmpHulu.php @@ -26,6 +26,11 @@ final class ScriptAmpHulu extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-hulu]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-hulu', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpHulu extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpIframe.php b/src/Validator/Spec/Tag/ScriptAmpIframe.php index 7923872d9..3351f5444 100644 --- a/src/Validator/Spec/Tag/ScriptAmpIframe.php +++ b/src/Validator/Spec/Tag/ScriptAmpIframe.php @@ -26,6 +26,11 @@ final class ScriptAmpIframe extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-iframe]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-iframe', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpIframe extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpIframely.php b/src/Validator/Spec/Tag/ScriptAmpIframely.php index 0572ec351..de5b41b7f 100644 --- a/src/Validator/Spec/Tag/ScriptAmpIframely.php +++ b/src/Validator/Spec/Tag/ScriptAmpIframely.php @@ -26,6 +26,11 @@ final class ScriptAmpIframely extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-iframely]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-iframely', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpIframely extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpImaVideo.php b/src/Validator/Spec/Tag/ScriptAmpImaVideo.php index 78254f5e0..2269ebb12 100644 --- a/src/Validator/Spec/Tag/ScriptAmpImaVideo.php +++ b/src/Validator/Spec/Tag/ScriptAmpImaVideo.php @@ -26,6 +26,11 @@ final class ScriptAmpImaVideo extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-ima-video]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-ima-video', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpImaVideo extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpImageLightbox.php b/src/Validator/Spec/Tag/ScriptAmpImageLightbox.php index ee53c4afd..845f1e1b8 100644 --- a/src/Validator/Spec/Tag/ScriptAmpImageLightbox.php +++ b/src/Validator/Spec/Tag/ScriptAmpImageLightbox.php @@ -26,6 +26,11 @@ final class ScriptAmpImageLightbox extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-image-lightbox]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-image-lightbox', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpImageLightbox extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpImageSlider.php b/src/Validator/Spec/Tag/ScriptAmpImageSlider.php index c85cba4e6..0964a960a 100644 --- a/src/Validator/Spec/Tag/ScriptAmpImageSlider.php +++ b/src/Validator/Spec/Tag/ScriptAmpImageSlider.php @@ -26,6 +26,11 @@ final class ScriptAmpImageSlider extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-image-slider]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-image-slider', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpImageSlider extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpImgur.php b/src/Validator/Spec/Tag/ScriptAmpImgur.php index 0e4e49567..0adddf6b9 100644 --- a/src/Validator/Spec/Tag/ScriptAmpImgur.php +++ b/src/Validator/Spec/Tag/ScriptAmpImgur.php @@ -26,6 +26,11 @@ final class ScriptAmpImgur extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-imgur]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-imgur', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpImgur extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpInlineGallery.php b/src/Validator/Spec/Tag/ScriptAmpInlineGallery.php index 647abd1d1..b81cb89aa 100644 --- a/src/Validator/Spec/Tag/ScriptAmpInlineGallery.php +++ b/src/Validator/Spec/Tag/ScriptAmpInlineGallery.php @@ -26,6 +26,11 @@ final class ScriptAmpInlineGallery extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-inline-gallery]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-inline-gallery', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpInlineGallery extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpInputmask.php b/src/Validator/Spec/Tag/ScriptAmpInputmask.php index 491186b1f..3f7fa34cf 100644 --- a/src/Validator/Spec/Tag/ScriptAmpInputmask.php +++ b/src/Validator/Spec/Tag/ScriptAmpInputmask.php @@ -26,6 +26,11 @@ final class ScriptAmpInputmask extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-inputmask]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-inputmask', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpInputmask extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpInstagram.php b/src/Validator/Spec/Tag/ScriptAmpInstagram.php index a19312d21..042b2bcca 100644 --- a/src/Validator/Spec/Tag/ScriptAmpInstagram.php +++ b/src/Validator/Spec/Tag/ScriptAmpInstagram.php @@ -26,6 +26,11 @@ final class ScriptAmpInstagram extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-instagram]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-instagram', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpInstagram extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpInstagram2.php b/src/Validator/Spec/Tag/ScriptAmpInstagram2.php index 123e7178b..715257038 100644 --- a/src/Validator/Spec/Tag/ScriptAmpInstagram2.php +++ b/src/Validator/Spec/Tag/ScriptAmpInstagram2.php @@ -26,6 +26,11 @@ final class ScriptAmpInstagram2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-instagram] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-instagram', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpInstagram2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpInstallServiceworker.php b/src/Validator/Spec/Tag/ScriptAmpInstallServiceworker.php index 8b6bf5a69..53581e82c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpInstallServiceworker.php +++ b/src/Validator/Spec/Tag/ScriptAmpInstallServiceworker.php @@ -26,6 +26,11 @@ final class ScriptAmpInstallServiceworker extends Tag implements TagWithExtensio */ const ID = 'SCRIPT [amp-install-serviceworker]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-install-serviceworker', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpInstallServiceworker extends Tag implements TagWithExtensio SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpIzlesene.php b/src/Validator/Spec/Tag/ScriptAmpIzlesene.php index c5a2fdf75..32403b4d3 100644 --- a/src/Validator/Spec/Tag/ScriptAmpIzlesene.php +++ b/src/Validator/Spec/Tag/ScriptAmpIzlesene.php @@ -26,6 +26,11 @@ final class ScriptAmpIzlesene extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-izlesene]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-izlesene', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpIzlesene extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpJwplayer.php b/src/Validator/Spec/Tag/ScriptAmpJwplayer.php index 286115564..3cb96815c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpJwplayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpJwplayer.php @@ -26,6 +26,11 @@ final class ScriptAmpJwplayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-jwplayer]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-jwplayer', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpJwplayer extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpKalturaPlayer.php b/src/Validator/Spec/Tag/ScriptAmpKalturaPlayer.php index 00c1dbc24..9d8bce001 100644 --- a/src/Validator/Spec/Tag/ScriptAmpKalturaPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpKalturaPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpKalturaPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-kaltura-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-kaltura-player', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpKalturaPlayer extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpLightbox.php b/src/Validator/Spec/Tag/ScriptAmpLightbox.php index f75f9d884..14ec39674 100644 --- a/src/Validator/Spec/Tag/ScriptAmpLightbox.php +++ b/src/Validator/Spec/Tag/ScriptAmpLightbox.php @@ -26,6 +26,11 @@ final class ScriptAmpLightbox extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-lightbox]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-lightbox', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpLightbox extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpLightbox2.php b/src/Validator/Spec/Tag/ScriptAmpLightbox2.php index 0c7b5719f..94f4aee0c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpLightbox2.php +++ b/src/Validator/Spec/Tag/ScriptAmpLightbox2.php @@ -26,6 +26,11 @@ final class ScriptAmpLightbox2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-lightbox] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-lightbox', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpLightbox2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpLightboxGallery.php b/src/Validator/Spec/Tag/ScriptAmpLightboxGallery.php index c65a01098..ec85ba4f2 100644 --- a/src/Validator/Spec/Tag/ScriptAmpLightboxGallery.php +++ b/src/Validator/Spec/Tag/ScriptAmpLightboxGallery.php @@ -26,6 +26,11 @@ final class ScriptAmpLightboxGallery extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-lightbox-gallery]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-lightbox-gallery', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpLightboxGallery extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpLinkRewriter.php b/src/Validator/Spec/Tag/ScriptAmpLinkRewriter.php index 396badfa9..54a389687 100644 --- a/src/Validator/Spec/Tag/ScriptAmpLinkRewriter.php +++ b/src/Validator/Spec/Tag/ScriptAmpLinkRewriter.php @@ -26,6 +26,11 @@ final class ScriptAmpLinkRewriter extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-link-rewriter]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-link-rewriter', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpLinkRewriter extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpList.php b/src/Validator/Spec/Tag/ScriptAmpList.php index 6f83a440f..cd927a658 100644 --- a/src/Validator/Spec/Tag/ScriptAmpList.php +++ b/src/Validator/Spec/Tag/ScriptAmpList.php @@ -26,6 +26,11 @@ final class ScriptAmpList extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-list]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-list', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpList extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpLiveList.php b/src/Validator/Spec/Tag/ScriptAmpLiveList.php index a68ec383e..7543f0f80 100644 --- a/src/Validator/Spec/Tag/ScriptAmpLiveList.php +++ b/src/Validator/Spec/Tag/ScriptAmpLiveList.php @@ -26,6 +26,11 @@ final class ScriptAmpLiveList extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-live-list]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-live-list', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpLiveList extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::MANDATORY_PARENT => Element::HEAD, diff --git a/src/Validator/Spec/Tag/ScriptAmpMathml.php b/src/Validator/Spec/Tag/ScriptAmpMathml.php index e77a99cfe..240e86c20 100644 --- a/src/Validator/Spec/Tag/ScriptAmpMathml.php +++ b/src/Validator/Spec/Tag/ScriptAmpMathml.php @@ -26,6 +26,11 @@ final class ScriptAmpMathml extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-mathml]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-mathml', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpMathml extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpMegaMenu.php b/src/Validator/Spec/Tag/ScriptAmpMegaMenu.php index 4d1997ed5..8a943dd09 100644 --- a/src/Validator/Spec/Tag/ScriptAmpMegaMenu.php +++ b/src/Validator/Spec/Tag/ScriptAmpMegaMenu.php @@ -26,6 +26,11 @@ final class ScriptAmpMegaMenu extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-mega-menu]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-mega-menu', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpMegaMenu extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpMegaphone.php b/src/Validator/Spec/Tag/ScriptAmpMegaphone.php index c88eee751..3b1c5ccbe 100644 --- a/src/Validator/Spec/Tag/ScriptAmpMegaphone.php +++ b/src/Validator/Spec/Tag/ScriptAmpMegaphone.php @@ -26,6 +26,11 @@ final class ScriptAmpMegaphone extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-megaphone]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-megaphone', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpMegaphone extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpMinuteMediaPlayer.php b/src/Validator/Spec/Tag/ScriptAmpMinuteMediaPlayer.php index d12f96ee2..f1799dec6 100644 --- a/src/Validator/Spec/Tag/ScriptAmpMinuteMediaPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpMinuteMediaPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpMinuteMediaPlayer extends Tag implements TagWithExtensionSp */ const ID = 'SCRIPT [amp-minute-media-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-minute-media-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpMinuteMediaPlayer extends Tag implements TagWithExtensionSp ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpMowplayer.php b/src/Validator/Spec/Tag/ScriptAmpMowplayer.php index 2214a62dc..8c43a89f1 100644 --- a/src/Validator/Spec/Tag/ScriptAmpMowplayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpMowplayer.php @@ -26,6 +26,11 @@ final class ScriptAmpMowplayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-mowplayer]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-mowplayer', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpMowplayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpMraid.php b/src/Validator/Spec/Tag/ScriptAmpMraid.php index 834da7659..0eeffb24e 100644 --- a/src/Validator/Spec/Tag/ScriptAmpMraid.php +++ b/src/Validator/Spec/Tag/ScriptAmpMraid.php @@ -27,6 +27,11 @@ final class ScriptAmpMraid extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-mraid]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-mraid', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpMraid extends Tag implements TagWithExtensionSpec SpecRule::EXTENSION_TYPE => 'HOST_SERVICE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpMustache.php b/src/Validator/Spec/Tag/ScriptAmpMustache.php index da928706b..bc9aae005 100644 --- a/src/Validator/Spec/Tag/ScriptAmpMustache.php +++ b/src/Validator/Spec/Tag/ScriptAmpMustache.php @@ -26,6 +26,11 @@ final class ScriptAmpMustache extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-mustache]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-mustache', SpecRule::VERSION => [ @@ -41,6 +46,11 @@ final class ScriptAmpMustache extends Tag implements TagWithExtensionSpec SpecRule::EXTENSION_TYPE => 'CUSTOM_TEMPLATE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpNestedMenu.php b/src/Validator/Spec/Tag/ScriptAmpNestedMenu.php index c1c9b0a4b..ef58e8967 100644 --- a/src/Validator/Spec/Tag/ScriptAmpNestedMenu.php +++ b/src/Validator/Spec/Tag/ScriptAmpNestedMenu.php @@ -26,6 +26,11 @@ final class ScriptAmpNestedMenu extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-nested-menu]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-nested-menu', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpNestedMenu extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpNextPage.php b/src/Validator/Spec/Tag/ScriptAmpNextPage.php index 30e308cd7..cc0ccf88a 100644 --- a/src/Validator/Spec/Tag/ScriptAmpNextPage.php +++ b/src/Validator/Spec/Tag/ScriptAmpNextPage.php @@ -26,6 +26,11 @@ final class ScriptAmpNextPage extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-next-page]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-next-page', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpNextPage extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpNexxtvPlayer.php b/src/Validator/Spec/Tag/ScriptAmpNexxtvPlayer.php index f4f00ad2c..162ddff70 100644 --- a/src/Validator/Spec/Tag/ScriptAmpNexxtvPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpNexxtvPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpNexxtvPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-nexxtv-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-nexxtv-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpNexxtvPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpO2Player.php b/src/Validator/Spec/Tag/ScriptAmpO2Player.php index 4b624d556..7067e066d 100644 --- a/src/Validator/Spec/Tag/ScriptAmpO2Player.php +++ b/src/Validator/Spec/Tag/ScriptAmpO2Player.php @@ -26,6 +26,11 @@ final class ScriptAmpO2Player extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-o2-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-o2-player', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpO2Player extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpOnerror.php b/src/Validator/Spec/Tag/ScriptAmpOnerror.php index d4489e31d..cd5e4a8cd 100644 --- a/src/Validator/Spec/Tag/ScriptAmpOnerror.php +++ b/src/Validator/Spec/Tag/ScriptAmpOnerror.php @@ -22,6 +22,11 @@ final class ScriptAmpOnerror extends Tag */ const ID = 'script amp-onerror'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'script amp-onerror', diff --git a/src/Validator/Spec/Tag/ScriptAmpOnetapGoogle.php b/src/Validator/Spec/Tag/ScriptAmpOnetapGoogle.php index 5fccafedb..57f29afd1 100644 --- a/src/Validator/Spec/Tag/ScriptAmpOnetapGoogle.php +++ b/src/Validator/Spec/Tag/ScriptAmpOnetapGoogle.php @@ -26,6 +26,11 @@ final class ScriptAmpOnetapGoogle extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-onetap-google]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-onetap-google', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpOnetapGoogle extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpOoyalaPlayer.php b/src/Validator/Spec/Tag/ScriptAmpOoyalaPlayer.php index 85fd184d4..5365d8cae 100644 --- a/src/Validator/Spec/Tag/ScriptAmpOoyalaPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpOoyalaPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpOoyalaPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-ooyala-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-ooyala-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpOoyalaPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpOrientationObserver.php b/src/Validator/Spec/Tag/ScriptAmpOrientationObserver.php index dce4fb8da..b4683bd27 100644 --- a/src/Validator/Spec/Tag/ScriptAmpOrientationObserver.php +++ b/src/Validator/Spec/Tag/ScriptAmpOrientationObserver.php @@ -26,6 +26,11 @@ final class ScriptAmpOrientationObserver extends Tag implements TagWithExtension */ const ID = 'SCRIPT [amp-orientation-observer]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-orientation-observer', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpOrientationObserver extends Tag implements TagWithExtension ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpPanZoom.php b/src/Validator/Spec/Tag/ScriptAmpPanZoom.php index 57965a988..08cc42b9e 100644 --- a/src/Validator/Spec/Tag/ScriptAmpPanZoom.php +++ b/src/Validator/Spec/Tag/ScriptAmpPanZoom.php @@ -26,6 +26,11 @@ final class ScriptAmpPanZoom extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-pan-zoom]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-pan-zoom', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpPanZoom extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpPinterest.php b/src/Validator/Spec/Tag/ScriptAmpPinterest.php index b5f74f171..cd487ab11 100644 --- a/src/Validator/Spec/Tag/ScriptAmpPinterest.php +++ b/src/Validator/Spec/Tag/ScriptAmpPinterest.php @@ -26,6 +26,11 @@ final class ScriptAmpPinterest extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-pinterest]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-pinterest', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpPinterest extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpPlaybuzz.php b/src/Validator/Spec/Tag/ScriptAmpPlaybuzz.php index 555f410b4..e717a6fe5 100644 --- a/src/Validator/Spec/Tag/ScriptAmpPlaybuzz.php +++ b/src/Validator/Spec/Tag/ScriptAmpPlaybuzz.php @@ -26,6 +26,11 @@ final class ScriptAmpPlaybuzz extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-playbuzz]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-playbuzz', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpPlaybuzz extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpPositionObserver.php b/src/Validator/Spec/Tag/ScriptAmpPositionObserver.php index b2e7a28f0..6492fb586 100644 --- a/src/Validator/Spec/Tag/ScriptAmpPositionObserver.php +++ b/src/Validator/Spec/Tag/ScriptAmpPositionObserver.php @@ -26,6 +26,11 @@ final class ScriptAmpPositionObserver extends Tag implements TagWithExtensionSpe */ const ID = 'SCRIPT [amp-position-observer]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-position-observer', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpPositionObserver extends Tag implements TagWithExtensionSpe ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpPowrPlayer.php b/src/Validator/Spec/Tag/ScriptAmpPowrPlayer.php index b736e77cd..894fc931e 100644 --- a/src/Validator/Spec/Tag/ScriptAmpPowrPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpPowrPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpPowrPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-powr-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-powr-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpPowrPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpReachPlayer.php b/src/Validator/Spec/Tag/ScriptAmpReachPlayer.php index 2ac52841c..b27d9709f 100644 --- a/src/Validator/Spec/Tag/ScriptAmpReachPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpReachPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpReachPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-reach-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-reach-player', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpReachPlayer extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpRecaptchaInput.php b/src/Validator/Spec/Tag/ScriptAmpRecaptchaInput.php index 30287bdee..5a5be8af4 100644 --- a/src/Validator/Spec/Tag/ScriptAmpRecaptchaInput.php +++ b/src/Validator/Spec/Tag/ScriptAmpRecaptchaInput.php @@ -26,6 +26,11 @@ final class ScriptAmpRecaptchaInput extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-recaptcha-input]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-recaptcha-input', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpRecaptchaInput extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpRedbullPlayer.php b/src/Validator/Spec/Tag/ScriptAmpRedbullPlayer.php index 34ad596af..595fc1214 100644 --- a/src/Validator/Spec/Tag/ScriptAmpRedbullPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpRedbullPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpRedbullPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-redbull-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-redbull-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpRedbullPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpReddit.php b/src/Validator/Spec/Tag/ScriptAmpReddit.php index 4998b4308..3650e3419 100644 --- a/src/Validator/Spec/Tag/ScriptAmpReddit.php +++ b/src/Validator/Spec/Tag/ScriptAmpReddit.php @@ -26,6 +26,11 @@ final class ScriptAmpReddit extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-reddit]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-reddit', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpReddit extends Tag implements TagWithExtensionSpec SpecRule::DEPRECATED_ALLOW_DUPLICATES => true, ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpRiddleQuiz.php b/src/Validator/Spec/Tag/ScriptAmpRiddleQuiz.php index 8d8384433..55207c114 100644 --- a/src/Validator/Spec/Tag/ScriptAmpRiddleQuiz.php +++ b/src/Validator/Spec/Tag/ScriptAmpRiddleQuiz.php @@ -26,6 +26,11 @@ final class ScriptAmpRiddleQuiz extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-riddle-quiz]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-riddle-quiz', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpRiddleQuiz extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpScript.php b/src/Validator/Spec/Tag/ScriptAmpScript.php index 4592590f2..56f500579 100644 --- a/src/Validator/Spec/Tag/ScriptAmpScript.php +++ b/src/Validator/Spec/Tag/ScriptAmpScript.php @@ -26,6 +26,11 @@ final class ScriptAmpScript extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-script]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-script', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpScript extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSelector.php b/src/Validator/Spec/Tag/ScriptAmpSelector.php index 0b2f5b1a1..229af029b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSelector.php +++ b/src/Validator/Spec/Tag/ScriptAmpSelector.php @@ -26,6 +26,11 @@ final class ScriptAmpSelector extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-selector]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-selector', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpSelector extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSelector2.php b/src/Validator/Spec/Tag/ScriptAmpSelector2.php index f36cfd266..576ac8cba 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSelector2.php +++ b/src/Validator/Spec/Tag/ScriptAmpSelector2.php @@ -26,6 +26,11 @@ final class ScriptAmpSelector2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-selector] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-selector', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpSelector2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSidebar.php b/src/Validator/Spec/Tag/ScriptAmpSidebar.php index ba2706002..7990650ec 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSidebar.php +++ b/src/Validator/Spec/Tag/ScriptAmpSidebar.php @@ -26,6 +26,11 @@ final class ScriptAmpSidebar extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-sidebar]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-sidebar', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpSidebar extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSkimlinks.php b/src/Validator/Spec/Tag/ScriptAmpSkimlinks.php index 7225eeffc..67a6ecac1 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSkimlinks.php +++ b/src/Validator/Spec/Tag/ScriptAmpSkimlinks.php @@ -26,6 +26,11 @@ final class ScriptAmpSkimlinks extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-skimlinks]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-skimlinks', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpSkimlinks extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSlides.php b/src/Validator/Spec/Tag/ScriptAmpSlides.php index a8480d5f9..cb17f65fe 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSlides.php +++ b/src/Validator/Spec/Tag/ScriptAmpSlides.php @@ -26,6 +26,11 @@ final class ScriptAmpSlides extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-slides]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-slides', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpSlides extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSmartlinks.php b/src/Validator/Spec/Tag/ScriptAmpSmartlinks.php index 0cc2f5a91..3530bddfd 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSmartlinks.php +++ b/src/Validator/Spec/Tag/ScriptAmpSmartlinks.php @@ -26,6 +26,11 @@ final class ScriptAmpSmartlinks extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-smartlinks]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-smartlinks', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpSmartlinks extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSocialShare.php b/src/Validator/Spec/Tag/ScriptAmpSocialShare.php index cb6e79cfe..4dbcd48f8 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSocialShare.php +++ b/src/Validator/Spec/Tag/ScriptAmpSocialShare.php @@ -26,6 +26,11 @@ final class ScriptAmpSocialShare extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-social-share]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-social-share', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpSocialShare extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSocialShare2.php b/src/Validator/Spec/Tag/ScriptAmpSocialShare2.php index 0596e6f3a..aa184dfdc 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSocialShare2.php +++ b/src/Validator/Spec/Tag/ScriptAmpSocialShare2.php @@ -26,6 +26,11 @@ final class ScriptAmpSocialShare2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-social-share] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-social-share', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpSocialShare2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSoundcloud.php b/src/Validator/Spec/Tag/ScriptAmpSoundcloud.php index fdefb7d95..68ab92119 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSoundcloud.php +++ b/src/Validator/Spec/Tag/ScriptAmpSoundcloud.php @@ -26,6 +26,11 @@ final class ScriptAmpSoundcloud extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-soundcloud]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-soundcloud', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpSoundcloud extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSpringboardPlayer.php b/src/Validator/Spec/Tag/ScriptAmpSpringboardPlayer.php index 87a04db13..87b85a3fb 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSpringboardPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpSpringboardPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpSpringboardPlayer extends Tag implements TagWithExtensionSp */ const ID = 'SCRIPT [amp-springboard-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-springboard-player', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpSpringboardPlayer extends Tag implements TagWithExtensionSp SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStickyAd.php b/src/Validator/Spec/Tag/ScriptAmpStickyAd.php index 75261c6c7..e2865c1a8 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStickyAd.php +++ b/src/Validator/Spec/Tag/ScriptAmpStickyAd.php @@ -26,6 +26,11 @@ final class ScriptAmpStickyAd extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-sticky-ad]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-sticky-ad', SpecRule::VERSION => [ @@ -39,6 +44,11 @@ final class ScriptAmpStickyAd extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStory.php b/src/Validator/Spec/Tag/ScriptAmpStory.php index 8a7d7c37f..cb8b1a344 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStory.php +++ b/src/Validator/Spec/Tag/ScriptAmpStory.php @@ -26,6 +26,11 @@ final class ScriptAmpStory extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-story]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-story', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStory extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStory360.php b/src/Validator/Spec/Tag/ScriptAmpStory360.php index 8a13ab3f3..c6081dddf 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStory360.php +++ b/src/Validator/Spec/Tag/ScriptAmpStory360.php @@ -26,6 +26,11 @@ final class ScriptAmpStory360 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-story-360]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-story-360', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStory360 extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStoryAutoAds.php b/src/Validator/Spec/Tag/ScriptAmpStoryAutoAds.php index dbac97fcf..f41c1d80c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStoryAutoAds.php +++ b/src/Validator/Spec/Tag/ScriptAmpStoryAutoAds.php @@ -26,6 +26,11 @@ final class ScriptAmpStoryAutoAds extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-story-auto-ads]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-story-auto-ads', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStoryAutoAds extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStoryAutoAnalytics.php b/src/Validator/Spec/Tag/ScriptAmpStoryAutoAnalytics.php index c1aafe310..e0562f3a0 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStoryAutoAnalytics.php +++ b/src/Validator/Spec/Tag/ScriptAmpStoryAutoAnalytics.php @@ -26,6 +26,11 @@ final class ScriptAmpStoryAutoAnalytics extends Tag implements TagWithExtensionS */ const ID = 'SCRIPT [amp-story-auto-analytics]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-story-auto-analytics', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStoryAutoAnalytics extends Tag implements TagWithExtensionS ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStoryInteractive.php b/src/Validator/Spec/Tag/ScriptAmpStoryInteractive.php index 62199f0b3..472e1b25b 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStoryInteractive.php +++ b/src/Validator/Spec/Tag/ScriptAmpStoryInteractive.php @@ -26,6 +26,11 @@ final class ScriptAmpStoryInteractive extends Tag implements TagWithExtensionSpe */ const ID = 'SCRIPT [amp-story-interactive]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-story-interactive', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStoryInteractive extends Tag implements TagWithExtensionSpe ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStoryPanningMedia.php b/src/Validator/Spec/Tag/ScriptAmpStoryPanningMedia.php index d3dbf622e..a30238d78 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStoryPanningMedia.php +++ b/src/Validator/Spec/Tag/ScriptAmpStoryPanningMedia.php @@ -26,6 +26,11 @@ final class ScriptAmpStoryPanningMedia extends Tag implements TagWithExtensionSp */ const ID = 'SCRIPT [amp-story-panning-media]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-story-panning-media', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStoryPanningMedia extends Tag implements TagWithExtensionSp ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStoryPlayer.php b/src/Validator/Spec/Tag/ScriptAmpStoryPlayer.php index 1450e0a8b..389d8595d 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStoryPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpStoryPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpStoryPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-story-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-story-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStoryPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpStreamGallery.php b/src/Validator/Spec/Tag/ScriptAmpStreamGallery.php index 49b817232..f60ecd1e9 100644 --- a/src/Validator/Spec/Tag/ScriptAmpStreamGallery.php +++ b/src/Validator/Spec/Tag/ScriptAmpStreamGallery.php @@ -26,6 +26,11 @@ final class ScriptAmpStreamGallery extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-stream-gallery]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-stream-gallery', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpStreamGallery extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSubscriptions.php b/src/Validator/Spec/Tag/ScriptAmpSubscriptions.php index 80ed29a4f..1133895c7 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSubscriptions.php +++ b/src/Validator/Spec/Tag/ScriptAmpSubscriptions.php @@ -26,6 +26,11 @@ final class ScriptAmpSubscriptions extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-subscriptions]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-subscriptions', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpSubscriptions extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpSubscriptionsGoogle.php b/src/Validator/Spec/Tag/ScriptAmpSubscriptionsGoogle.php index 10a0803c1..8bd834314 100644 --- a/src/Validator/Spec/Tag/ScriptAmpSubscriptionsGoogle.php +++ b/src/Validator/Spec/Tag/ScriptAmpSubscriptionsGoogle.php @@ -27,6 +27,11 @@ final class ScriptAmpSubscriptionsGoogle extends Tag implements TagWithExtension */ const ID = 'SCRIPT [amp-subscriptions-google]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-subscriptions-google', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpSubscriptionsGoogle extends Tag implements TagWithExtension SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpTimeago.php b/src/Validator/Spec/Tag/ScriptAmpTimeago.php index a46ac5d72..ae20cc2c2 100644 --- a/src/Validator/Spec/Tag/ScriptAmpTimeago.php +++ b/src/Validator/Spec/Tag/ScriptAmpTimeago.php @@ -26,6 +26,11 @@ final class ScriptAmpTimeago extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-timeago]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-timeago', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpTimeago extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpTruncateText.php b/src/Validator/Spec/Tag/ScriptAmpTruncateText.php index 441c06c15..b6bf68a51 100644 --- a/src/Validator/Spec/Tag/ScriptAmpTruncateText.php +++ b/src/Validator/Spec/Tag/ScriptAmpTruncateText.php @@ -26,6 +26,11 @@ final class ScriptAmpTruncateText extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-truncate-text]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-truncate-text', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpTruncateText extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpTwitter.php b/src/Validator/Spec/Tag/ScriptAmpTwitter.php index 0c64c39ec..ea837017c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpTwitter.php +++ b/src/Validator/Spec/Tag/ScriptAmpTwitter.php @@ -26,6 +26,11 @@ final class ScriptAmpTwitter extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-twitter]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-twitter', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpTwitter extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpUserNotification.php b/src/Validator/Spec/Tag/ScriptAmpUserNotification.php index 7ce456250..13b27c112 100644 --- a/src/Validator/Spec/Tag/ScriptAmpUserNotification.php +++ b/src/Validator/Spec/Tag/ScriptAmpUserNotification.php @@ -26,6 +26,11 @@ final class ScriptAmpUserNotification extends Tag implements TagWithExtensionSpe */ const ID = 'SCRIPT [amp-user-notification]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-user-notification', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpUserNotification extends Tag implements TagWithExtensionSpe SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVideo.php b/src/Validator/Spec/Tag/ScriptAmpVideo.php index 80b86d730..d0cfd1d5c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVideo.php +++ b/src/Validator/Spec/Tag/ScriptAmpVideo.php @@ -26,6 +26,11 @@ final class ScriptAmpVideo extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-video]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-video', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpVideo extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVideo2.php b/src/Validator/Spec/Tag/ScriptAmpVideo2.php index 18024e873..a1049f0fc 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVideo2.php +++ b/src/Validator/Spec/Tag/ScriptAmpVideo2.php @@ -26,6 +26,11 @@ final class ScriptAmpVideo2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-video] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-video', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpVideo2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVideoDocking.php b/src/Validator/Spec/Tag/ScriptAmpVideoDocking.php index 1562afe4f..8c0d5fd3c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVideoDocking.php +++ b/src/Validator/Spec/Tag/ScriptAmpVideoDocking.php @@ -26,6 +26,11 @@ final class ScriptAmpVideoDocking extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-video-docking]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-video-docking', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpVideoDocking extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVideoIframe.php b/src/Validator/Spec/Tag/ScriptAmpVideoIframe.php index 4f6c7f565..4012899bf 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVideoIframe.php +++ b/src/Validator/Spec/Tag/ScriptAmpVideoIframe.php @@ -26,6 +26,11 @@ final class ScriptAmpVideoIframe extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-video-iframe]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-video-iframe', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpVideoIframe extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVideoIframe2.php b/src/Validator/Spec/Tag/ScriptAmpVideoIframe2.php index ffc1ebac1..9f3b571de 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVideoIframe2.php +++ b/src/Validator/Spec/Tag/ScriptAmpVideoIframe2.php @@ -26,6 +26,11 @@ final class ScriptAmpVideoIframe2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-video-iframe] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-video-iframe', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptAmpVideoIframe2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVimeo.php b/src/Validator/Spec/Tag/ScriptAmpVimeo.php index d20004996..02226fe63 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVimeo.php +++ b/src/Validator/Spec/Tag/ScriptAmpVimeo.php @@ -26,6 +26,11 @@ final class ScriptAmpVimeo extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-vimeo]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-vimeo', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpVimeo extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVimeo2.php b/src/Validator/Spec/Tag/ScriptAmpVimeo2.php index 01dcbbb90..b2b37f663 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVimeo2.php +++ b/src/Validator/Spec/Tag/ScriptAmpVimeo2.php @@ -26,6 +26,11 @@ final class ScriptAmpVimeo2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-vimeo] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-vimeo', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpVimeo2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVine.php b/src/Validator/Spec/Tag/ScriptAmpVine.php index e73e77f55..c435fb290 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVine.php +++ b/src/Validator/Spec/Tag/ScriptAmpVine.php @@ -26,6 +26,11 @@ final class ScriptAmpVine extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-vine]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-vine', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptAmpVine extends Tag implements TagWithExtensionSpec SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpViqeoPlayer.php b/src/Validator/Spec/Tag/ScriptAmpViqeoPlayer.php index 0ad012370..b1484042f 100644 --- a/src/Validator/Spec/Tag/ScriptAmpViqeoPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpViqeoPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpViqeoPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-viqeo-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-viqeo-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpViqeoPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpVk.php b/src/Validator/Spec/Tag/ScriptAmpVk.php index 0789e3e66..06775666f 100644 --- a/src/Validator/Spec/Tag/ScriptAmpVk.php +++ b/src/Validator/Spec/Tag/ScriptAmpVk.php @@ -26,6 +26,11 @@ final class ScriptAmpVk extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-vk]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-vk', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpVk extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpWebPush.php b/src/Validator/Spec/Tag/ScriptAmpWebPush.php index 98ac0bf39..ad5a6a422 100644 --- a/src/Validator/Spec/Tag/ScriptAmpWebPush.php +++ b/src/Validator/Spec/Tag/ScriptAmpWebPush.php @@ -26,6 +26,11 @@ final class ScriptAmpWebPush extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-web-push]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-web-push', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpWebPush extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpWistiaPlayer.php b/src/Validator/Spec/Tag/ScriptAmpWistiaPlayer.php index abd301770..40a189d2d 100644 --- a/src/Validator/Spec/Tag/ScriptAmpWistiaPlayer.php +++ b/src/Validator/Spec/Tag/ScriptAmpWistiaPlayer.php @@ -26,6 +26,11 @@ final class ScriptAmpWistiaPlayer extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-wistia-player]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-wistia-player', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpWistiaPlayer extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpYotpo.php b/src/Validator/Spec/Tag/ScriptAmpYotpo.php index b9f9a3743..b8ec6127c 100644 --- a/src/Validator/Spec/Tag/ScriptAmpYotpo.php +++ b/src/Validator/Spec/Tag/ScriptAmpYotpo.php @@ -26,6 +26,11 @@ final class ScriptAmpYotpo extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-yotpo]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-yotpo', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpYotpo extends Tag implements TagWithExtensionSpec ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpYoutube.php b/src/Validator/Spec/Tag/ScriptAmpYoutube.php index 548ebf087..8f86a8dd8 100644 --- a/src/Validator/Spec/Tag/ScriptAmpYoutube.php +++ b/src/Validator/Spec/Tag/ScriptAmpYoutube.php @@ -26,6 +26,11 @@ final class ScriptAmpYoutube extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-youtube]'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-youtube', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptAmpYoutube extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v1.0', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptAmpYoutube2.php b/src/Validator/Spec/Tag/ScriptAmpYoutube2.php index 15af61701..bb6fb0627 100644 --- a/src/Validator/Spec/Tag/ScriptAmpYoutube2.php +++ b/src/Validator/Spec/Tag/ScriptAmpYoutube2.php @@ -26,6 +26,11 @@ final class ScriptAmpYoutube2 extends Tag implements TagWithExtensionSpec */ const ID = 'SCRIPT [amp-youtube] (2)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-youtube', SpecRule::VERSION => [ @@ -37,6 +42,11 @@ final class ScriptAmpYoutube2 extends Tag implements TagWithExtensionSpec SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpAccordionAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpAccordionAmp4email.php index 38c6adcb3..1c54d384c 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpAccordionAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpAccordionAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpAccordionAmp4email extends Tag implements TagW */ const ID = 'SCRIPT[custom-element=amp-accordion] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-accordion', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptCustomElementAmpAccordionAmp4email extends Tag implements TagW SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-accordion] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpAutocompleteAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpAutocompleteAmp4email.php index 3f0df5a35..a05b56f1b 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpAutocompleteAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpAutocompleteAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpAutocompleteAmp4email extends Tag implements T */ const ID = 'SCRIPT[custom-element=amp-autocomplete] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-autocomplete', SpecRule::VERSION => [ @@ -33,6 +38,11 @@ final class ScriptCustomElementAmpAutocompleteAmp4email extends Tag implements T ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-autocomplete] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpBindAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpBindAmp4email.php index 6250c7901..0c75028a3 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpBindAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpBindAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpBindAmp4email extends Tag implements TagWithEx */ const ID = 'SCRIPT[custom-element=amp-bind] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-bind', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptCustomElementAmpBindAmp4email extends Tag implements TagWithEx SpecRule::REQUIRES_USAGE => 'NONE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-bind] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpCarouselAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpCarouselAmp4email.php index b057e56d2..7416c34d2 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpCarouselAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpCarouselAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpCarouselAmp4email extends Tag implements TagWi */ const ID = 'SCRIPT[custom-element=amp-carousel] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-carousel', SpecRule::VERSION => [ @@ -33,6 +38,11 @@ final class ScriptCustomElementAmpCarouselAmp4email extends Tag implements TagWi ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-carousel] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpFitTextAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpFitTextAmp4email.php index 947d27114..444a0d4f3 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpFitTextAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpFitTextAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpFitTextAmp4email extends Tag implements TagWit */ const ID = 'SCRIPT[custom-element=amp-fit-text] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-fit-text', SpecRule::VERSION => [ @@ -36,6 +41,11 @@ final class ScriptCustomElementAmpFitTextAmp4email extends Tag implements TagWit SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-fit-text] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpFormAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpFormAmp4email.php index 9aa2dedea..a7d002c52 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpFormAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpFormAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpFormAmp4email extends Tag implements TagWithEx */ const ID = 'SCRIPT[custom-element=amp-form] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-form', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptCustomElementAmpFormAmp4email extends Tag implements TagWithEx SpecRule::REQUIRES_USAGE => 'EXEMPTED', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-form] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpImageLightboxAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpImageLightboxAmp4email.php index 0050cd41f..3b1dbf848 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpImageLightboxAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpImageLightboxAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpImageLightboxAmp4email extends Tag implements */ const ID = 'SCRIPT[custom-element=amp-image-lightbox] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-image-lightbox', SpecRule::VERSION => [ @@ -34,6 +39,11 @@ final class ScriptCustomElementAmpImageLightboxAmp4email extends Tag implements ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-image-lightbox] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4ads.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4ads.php index cf7154d7c..211eed387 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4ads.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4ads.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpLightboxAmp4ads extends Tag implements TagWith */ const ID = 'SCRIPT[custom-element=amp-lightbox] (AMP4ADS)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-lightbox', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptCustomElementAmpLightboxAmp4ads extends Tag implements TagWith SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-lightbox] (AMP4ADS)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4email.php index 6a3067522..34bb42a3d 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpLightboxAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpLightboxAmp4email extends Tag implements TagWi */ const ID = 'SCRIPT[custom-element=amp-lightbox] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-lightbox', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptCustomElementAmpLightboxAmp4email extends Tag implements TagWi SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-lightbox] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpListAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpListAmp4email.php index 7408c4c0d..9fb9ecc21 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpListAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpListAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpListAmp4email extends Tag implements TagWithEx */ const ID = 'SCRIPT[custom-element=amp-list] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-list', SpecRule::VERSION => [ @@ -33,6 +38,11 @@ final class ScriptCustomElementAmpListAmp4email extends Tag implements TagWithEx ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-list] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpSelectorAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpSelectorAmp4email.php index c61da12a2..4eb80e426 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpSelectorAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpSelectorAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpSelectorAmp4email extends Tag implements TagWi */ const ID = 'SCRIPT[custom-element=amp-selector] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-selector', SpecRule::VERSION => [ @@ -35,6 +40,11 @@ final class ScriptCustomElementAmpSelectorAmp4email extends Tag implements TagWi SpecRule::VERSION_NAME => 'v0.1', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-selector] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpSidebarAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpSidebarAmp4email.php index 7ad7f1772..82ccef735 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpSidebarAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpSidebarAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpSidebarAmp4email extends Tag implements TagWit */ const ID = 'SCRIPT[custom-element=amp-sidebar] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-sidebar', SpecRule::VERSION => [ @@ -33,6 +38,11 @@ final class ScriptCustomElementAmpSidebarAmp4email extends Tag implements TagWit ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-sidebar] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomElementAmpTimeagoAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomElementAmpTimeagoAmp4email.php index de43342e4..e617ea896 100644 --- a/src/Validator/Spec/Tag/ScriptCustomElementAmpTimeagoAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomElementAmpTimeagoAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomElementAmpTimeagoAmp4email extends Tag implements TagWit */ const ID = 'SCRIPT[custom-element=amp-timeago] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-timeago', SpecRule::VERSION => [ @@ -33,6 +38,11 @@ final class ScriptCustomElementAmpTimeagoAmp4email extends Tag implements TagWit ], ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-element=amp-timeago] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4ads.php b/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4ads.php index 4a8aa58d8..424115dd9 100644 --- a/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4ads.php +++ b/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4ads.php @@ -26,6 +26,11 @@ final class ScriptCustomTemplateAmpMustacheAmp4ads extends Tag implements TagWit */ const ID = 'SCRIPT[custom-template=amp-mustache] (AMP4ADS)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-mustache', SpecRule::VERSION => [ @@ -39,6 +44,11 @@ final class ScriptCustomTemplateAmpMustacheAmp4ads extends Tag implements TagWit SpecRule::EXTENSION_TYPE => 'CUSTOM_TEMPLATE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-template=amp-mustache] (AMP4ADS)', diff --git a/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4email.php b/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4email.php index de94c348f..2d90c05de 100644 --- a/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptCustomTemplateAmpMustacheAmp4email.php @@ -26,6 +26,11 @@ final class ScriptCustomTemplateAmpMustacheAmp4email extends Tag implements TagW */ const ID = 'SCRIPT[custom-template=amp-mustache] (AMP4EMAIL)'; + /** + * Array of extension spec rules. + * + * @var array + */ const EXTENSION_SPEC = [ SpecRule::NAME => 'amp-mustache', SpecRule::VERSION => [ @@ -38,6 +43,11 @@ final class ScriptCustomTemplateAmpMustacheAmp4email extends Tag implements TagW SpecRule::EXTENSION_TYPE => 'CUSTOM_TEMPLATE', ]; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT[custom-template=amp-mustache] (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/ScriptIdAmpRtc.php b/src/Validator/Spec/Tag/ScriptIdAmpRtc.php index c06d25c07..3037c6ff5 100644 --- a/src/Validator/Spec/Tag/ScriptIdAmpRtc.php +++ b/src/Validator/Spec/Tag/ScriptIdAmpRtc.php @@ -23,6 +23,11 @@ final class ScriptIdAmpRtc extends Tag */ const ID = 'script id=amp-rtc'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'script id=amp-rtc', diff --git a/src/Validator/Spec/Tag/ScriptTypeApplicationLdJson.php b/src/Validator/Spec/Tag/ScriptTypeApplicationLdJson.php index e2f0b0ef1..a0e202e4d 100644 --- a/src/Validator/Spec/Tag/ScriptTypeApplicationLdJson.php +++ b/src/Validator/Spec/Tag/ScriptTypeApplicationLdJson.php @@ -23,6 +23,11 @@ final class ScriptTypeApplicationLdJson extends Tag */ const ID = 'script type=application/ld+json'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'script type=application/ld+json', diff --git a/src/Validator/Spec/Tag/ScriptTypeTextPlain.php b/src/Validator/Spec/Tag/ScriptTypeTextPlain.php index 612cce912..65a83b645 100644 --- a/src/Validator/Spec/Tag/ScriptTypeTextPlain.php +++ b/src/Validator/Spec/Tag/ScriptTypeTextPlain.php @@ -24,6 +24,11 @@ final class ScriptTypeTextPlain extends Tag */ const ID = 'SCRIPT type=text/plain'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT type=text/plain', diff --git a/src/Validator/Spec/Tag/ScriptTypeTextPlainAmp4email.php b/src/Validator/Spec/Tag/ScriptTypeTextPlainAmp4email.php index f43b9b50d..ac0b6b4d2 100644 --- a/src/Validator/Spec/Tag/ScriptTypeTextPlainAmp4email.php +++ b/src/Validator/Spec/Tag/ScriptTypeTextPlainAmp4email.php @@ -24,6 +24,11 @@ final class ScriptTypeTextPlainAmp4email extends Tag */ const ID = 'SCRIPT type=text/plain (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'SCRIPT type=text/plain (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/Section.php b/src/Validator/Spec/Tag/Section.php index 59aa0d5cd..81270d2a1 100644 --- a/src/Validator/Spec/Tag/Section.php +++ b/src/Validator/Spec/Tag/Section.php @@ -22,6 +22,11 @@ final class Section extends Tag */ const ID = 'SECTION'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SECTION, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/SectionAmp4email.php b/src/Validator/Spec/Tag/SectionAmp4email.php index eed9b5346..d74329cf9 100644 --- a/src/Validator/Spec/Tag/SectionAmp4email.php +++ b/src/Validator/Spec/Tag/SectionAmp4email.php @@ -21,6 +21,11 @@ final class SectionAmp4email extends Tag */ const ID = 'section (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SECTION, SpecRule::SPEC_NAME => 'section (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/Select.php b/src/Validator/Spec/Tag/Select.php index fbdc092c3..23e62faad 100644 --- a/src/Validator/Spec/Tag/Select.php +++ b/src/Validator/Spec/Tag/Select.php @@ -23,6 +23,11 @@ final class Select extends Tag */ const ID = 'SELECT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SELECT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Slot.php b/src/Validator/Spec/Tag/Slot.php index 5075c79c4..24d79095b 100644 --- a/src/Validator/Spec/Tag/Slot.php +++ b/src/Validator/Spec/Tag/Slot.php @@ -22,6 +22,11 @@ final class Slot extends Tag */ const ID = 'SLOT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SLOT, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Small.php b/src/Validator/Spec/Tag/Small.php index 5a4138eb2..6187be76a 100644 --- a/src/Validator/Spec/Tag/Small.php +++ b/src/Validator/Spec/Tag/Small.php @@ -21,6 +21,11 @@ final class Small extends Tag */ const ID = 'SMALL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SMALL, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Solidcolor.php b/src/Validator/Spec/Tag/Solidcolor.php index ae6e3f084..dc90ae422 100644 --- a/src/Validator/Spec/Tag/Solidcolor.php +++ b/src/Validator/Spec/Tag/Solidcolor.php @@ -23,6 +23,11 @@ final class Solidcolor extends Tag */ const ID = 'SOLIDCOLOR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SOLIDCOLOR, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Spacer.php b/src/Validator/Spec/Tag/Spacer.php index 90e2f3760..b9b0f36ed 100644 --- a/src/Validator/Spec/Tag/Spacer.php +++ b/src/Validator/Spec/Tag/Spacer.php @@ -21,6 +21,11 @@ final class Spacer extends Tag */ const ID = 'SPACER'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SPACER, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Span.php b/src/Validator/Spec/Tag/Span.php index dc8d599d3..6127fe961 100644 --- a/src/Validator/Spec/Tag/Span.php +++ b/src/Validator/Spec/Tag/Span.php @@ -21,6 +21,11 @@ final class Span extends Tag */ const ID = 'SPAN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SPAN, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/SpanAmpNestedMenu.php b/src/Validator/Spec/Tag/SpanAmpNestedMenu.php index c912608a5..70b13cabf 100644 --- a/src/Validator/Spec/Tag/SpanAmpNestedMenu.php +++ b/src/Validator/Spec/Tag/SpanAmpNestedMenu.php @@ -23,6 +23,11 @@ final class SpanAmpNestedMenu extends Tag */ const ID = 'span amp-nested-menu'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SPAN, SpecRule::SPEC_NAME => 'span amp-nested-menu', diff --git a/src/Validator/Spec/Tag/SpanSwgAmpCacheNonce.php b/src/Validator/Spec/Tag/SpanSwgAmpCacheNonce.php index 8703b1706..f0ec540cc 100644 --- a/src/Validator/Spec/Tag/SpanSwgAmpCacheNonce.php +++ b/src/Validator/Spec/Tag/SpanSwgAmpCacheNonce.php @@ -23,6 +23,11 @@ final class SpanSwgAmpCacheNonce extends Tag */ const ID = 'span swg_amp_cache_nonce'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SPAN, SpecRule::SPEC_NAME => 'span swg_amp_cache_nonce', diff --git a/src/Validator/Spec/Tag/Strike.php b/src/Validator/Spec/Tag/Strike.php index b501d5a52..df74e6819 100644 --- a/src/Validator/Spec/Tag/Strike.php +++ b/src/Validator/Spec/Tag/Strike.php @@ -21,6 +21,11 @@ final class Strike extends Tag */ const ID = 'STRIKE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STRIKE, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Strong.php b/src/Validator/Spec/Tag/Strong.php index 051ca4a9e..7bb633e83 100644 --- a/src/Validator/Spec/Tag/Strong.php +++ b/src/Validator/Spec/Tag/Strong.php @@ -21,6 +21,11 @@ final class Strong extends Tag */ const ID = 'STRONG'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STRONG, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/StyleAmpCustom.php b/src/Validator/Spec/Tag/StyleAmpCustom.php index 3740bf943..d97e7b9c9 100644 --- a/src/Validator/Spec/Tag/StyleAmpCustom.php +++ b/src/Validator/Spec/Tag/StyleAmpCustom.php @@ -24,6 +24,11 @@ final class StyleAmpCustom extends Tag */ const ID = 'style amp-custom'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'style amp-custom', diff --git a/src/Validator/Spec/Tag/StyleAmpCustomAmp4ads.php b/src/Validator/Spec/Tag/StyleAmpCustomAmp4ads.php index 523d033da..448a7f504 100644 --- a/src/Validator/Spec/Tag/StyleAmpCustomAmp4ads.php +++ b/src/Validator/Spec/Tag/StyleAmpCustomAmp4ads.php @@ -24,6 +24,11 @@ final class StyleAmpCustomAmp4ads extends Tag */ const ID = 'style amp-custom (AMP4ADS)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'style amp-custom (AMP4ADS)', diff --git a/src/Validator/Spec/Tag/StyleAmpCustomAmp4email.php b/src/Validator/Spec/Tag/StyleAmpCustomAmp4email.php index b50fcfe8b..35e012406 100644 --- a/src/Validator/Spec/Tag/StyleAmpCustomAmp4email.php +++ b/src/Validator/Spec/Tag/StyleAmpCustomAmp4email.php @@ -23,6 +23,11 @@ final class StyleAmpCustomAmp4email extends Tag */ const ID = 'style amp-custom (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'style amp-custom (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/StyleAmpCustomCssStrict.php b/src/Validator/Spec/Tag/StyleAmpCustomCssStrict.php index d295cdebc..b916603f0 100644 --- a/src/Validator/Spec/Tag/StyleAmpCustomCssStrict.php +++ b/src/Validator/Spec/Tag/StyleAmpCustomCssStrict.php @@ -23,6 +23,11 @@ final class StyleAmpCustomCssStrict extends Tag */ const ID = 'style amp-custom (css-strict)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'style amp-custom (css-strict)', diff --git a/src/Validator/Spec/Tag/StyleAmpCustomLengthCheck.php b/src/Validator/Spec/Tag/StyleAmpCustomLengthCheck.php index 605c3643e..84101f81f 100644 --- a/src/Validator/Spec/Tag/StyleAmpCustomLengthCheck.php +++ b/src/Validator/Spec/Tag/StyleAmpCustomLengthCheck.php @@ -23,6 +23,11 @@ final class StyleAmpCustomLengthCheck extends Tag */ const ID = 'style amp-custom-length-check'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'style amp-custom-length-check', diff --git a/src/Validator/Spec/Tag/StyleAmpKeyframes.php b/src/Validator/Spec/Tag/StyleAmpKeyframes.php index 1da5bc748..b1b1611fa 100644 --- a/src/Validator/Spec/Tag/StyleAmpKeyframes.php +++ b/src/Validator/Spec/Tag/StyleAmpKeyframes.php @@ -23,6 +23,11 @@ final class StyleAmpKeyframes extends Tag */ const ID = 'style[amp-keyframes]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'style[amp-keyframes]', diff --git a/src/Validator/Spec/Tag/StyleAmpRuntimeTransformed.php b/src/Validator/Spec/Tag/StyleAmpRuntimeTransformed.php index c43b84163..17c170777 100644 --- a/src/Validator/Spec/Tag/StyleAmpRuntimeTransformed.php +++ b/src/Validator/Spec/Tag/StyleAmpRuntimeTransformed.php @@ -23,6 +23,11 @@ final class StyleAmpRuntimeTransformed extends Tag */ const ID = 'style[amp-runtime] (transformed)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::STYLE, SpecRule::SPEC_NAME => 'style[amp-runtime] (transformed)', diff --git a/src/Validator/Spec/Tag/Sub.php b/src/Validator/Spec/Tag/Sub.php index c9d09dd26..40c77502e 100644 --- a/src/Validator/Spec/Tag/Sub.php +++ b/src/Validator/Spec/Tag/Sub.php @@ -21,6 +21,11 @@ final class Sub extends Tag */ const ID = 'SUB'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SUB, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/SubscriptionsScriptCiphertext.php b/src/Validator/Spec/Tag/SubscriptionsScriptCiphertext.php index 4a67bd611..7eebd307f 100644 --- a/src/Validator/Spec/Tag/SubscriptionsScriptCiphertext.php +++ b/src/Validator/Spec/Tag/SubscriptionsScriptCiphertext.php @@ -22,6 +22,11 @@ final class SubscriptionsScriptCiphertext extends Tag */ const ID = 'subscriptions script ciphertext'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SCRIPT, SpecRule::SPEC_NAME => 'subscriptions script ciphertext', diff --git a/src/Validator/Spec/Tag/SubscriptionsSectionContentSwgAmpCacheNonce.php b/src/Validator/Spec/Tag/SubscriptionsSectionContentSwgAmpCacheNonce.php index ed7152f5b..b8b4e9e65 100644 --- a/src/Validator/Spec/Tag/SubscriptionsSectionContentSwgAmpCacheNonce.php +++ b/src/Validator/Spec/Tag/SubscriptionsSectionContentSwgAmpCacheNonce.php @@ -22,6 +22,11 @@ final class SubscriptionsSectionContentSwgAmpCacheNonce extends Tag */ const ID = 'subscriptions-section content swg_amp_cache_nonce'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SECTION, SpecRule::SPEC_NAME => 'subscriptions-section content swg_amp_cache_nonce', diff --git a/src/Validator/Spec/Tag/Summary.php b/src/Validator/Spec/Tag/Summary.php index 75c8aa33b..e573884c1 100644 --- a/src/Validator/Spec/Tag/Summary.php +++ b/src/Validator/Spec/Tag/Summary.php @@ -21,6 +21,11 @@ final class Summary extends Tag */ const ID = 'SUMMARY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SUMMARY, SpecRule::MANDATORY_PARENT => Element::DETAILS, diff --git a/src/Validator/Spec/Tag/Sup.php b/src/Validator/Spec/Tag/Sup.php index 7eded5f9d..deedb7af8 100644 --- a/src/Validator/Spec/Tag/Sup.php +++ b/src/Validator/Spec/Tag/Sup.php @@ -21,6 +21,11 @@ final class Sup extends Tag */ const ID = 'SUP'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SUP, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Svg.php b/src/Validator/Spec/Tag/Svg.php index 5649d1375..566522f7b 100644 --- a/src/Validator/Spec/Tag/Svg.php +++ b/src/Validator/Spec/Tag/Svg.php @@ -23,6 +23,11 @@ final class Svg extends Tag */ const ID = 'SVG'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SVG, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/SvgTitle.php b/src/Validator/Spec/Tag/SvgTitle.php index a03fee55b..6e731273c 100644 --- a/src/Validator/Spec/Tag/SvgTitle.php +++ b/src/Validator/Spec/Tag/SvgTitle.php @@ -22,6 +22,11 @@ final class SvgTitle extends Tag */ const ID = 'svg title'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TITLE, SpecRule::SPEC_NAME => 'svg title', diff --git a/src/Validator/Spec/Tag/Switch_.php b/src/Validator/Spec/Tag/Switch_.php index 98555c37e..bc6256d3b 100644 --- a/src/Validator/Spec/Tag/Switch_.php +++ b/src/Validator/Spec/Tag/Switch_.php @@ -22,6 +22,11 @@ final class Switch_ extends Tag */ const ID = 'SWITCH'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SWITCH_, SpecRule::ATTR_LISTS => [ diff --git a/src/Validator/Spec/Tag/Symbol.php b/src/Validator/Spec/Tag/Symbol.php index efa0d31f3..ca83d3d2f 100644 --- a/src/Validator/Spec/Tag/Symbol.php +++ b/src/Validator/Spec/Tag/Symbol.php @@ -23,6 +23,11 @@ final class Symbol extends Tag */ const ID = 'SYMBOL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SYMBOL, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Table.php b/src/Validator/Spec/Tag/Table.php index 9f1f6d14b..e8f10d515 100644 --- a/src/Validator/Spec/Tag/Table.php +++ b/src/Validator/Spec/Tag/Table.php @@ -22,6 +22,11 @@ final class Table extends Tag */ const ID = 'TABLE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TABLE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Tbody.php b/src/Validator/Spec/Tag/Tbody.php index 3fb0c6ae0..5c6451bf7 100644 --- a/src/Validator/Spec/Tag/Tbody.php +++ b/src/Validator/Spec/Tag/Tbody.php @@ -21,6 +21,11 @@ final class Tbody extends Tag */ const ID = 'TBODY'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TBODY, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Td.php b/src/Validator/Spec/Tag/Td.php index 6805898d8..5d3814e06 100644 --- a/src/Validator/Spec/Tag/Td.php +++ b/src/Validator/Spec/Tag/Td.php @@ -22,6 +22,11 @@ final class Td extends Tag */ const ID = 'TD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TD, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Template.php b/src/Validator/Spec/Tag/Template.php index 7e6a2d2fb..eb5cb2993 100644 --- a/src/Validator/Spec/Tag/Template.php +++ b/src/Validator/Spec/Tag/Template.php @@ -23,6 +23,11 @@ final class Template extends Tag */ const ID = 'TEMPLATE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEMPLATE, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/TemplateAmp4email.php b/src/Validator/Spec/Tag/TemplateAmp4email.php index 1af2a3c5a..3104f86e9 100644 --- a/src/Validator/Spec/Tag/TemplateAmp4email.php +++ b/src/Validator/Spec/Tag/TemplateAmp4email.php @@ -23,6 +23,11 @@ final class TemplateAmp4email extends Tag */ const ID = 'TEMPLATE (AMP4EMAIL)'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEMPLATE, SpecRule::SPEC_NAME => 'TEMPLATE (AMP4EMAIL)', diff --git a/src/Validator/Spec/Tag/Text.php b/src/Validator/Spec/Tag/Text.php index bda9db70f..aa281f3ff 100644 --- a/src/Validator/Spec/Tag/Text.php +++ b/src/Validator/Spec/Tag/Text.php @@ -23,6 +23,11 @@ final class Text extends Tag */ const ID = 'TEXT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEXT, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Textarea.php b/src/Validator/Spec/Tag/Textarea.php index 2cf6d1844..238d1596b 100644 --- a/src/Validator/Spec/Tag/Textarea.php +++ b/src/Validator/Spec/Tag/Textarea.php @@ -24,6 +24,11 @@ final class Textarea extends Tag */ const ID = 'TEXTAREA'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEXTAREA, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Textpath.php b/src/Validator/Spec/Tag/Textpath.php index 7d5b42491..233e902fe 100644 --- a/src/Validator/Spec/Tag/Textpath.php +++ b/src/Validator/Spec/Tag/Textpath.php @@ -23,6 +23,11 @@ final class Textpath extends Tag */ const ID = 'TEXTPATH'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TEXTPATH, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Tfoot.php b/src/Validator/Spec/Tag/Tfoot.php index 03ad4e3e9..a9d470f08 100644 --- a/src/Validator/Spec/Tag/Tfoot.php +++ b/src/Validator/Spec/Tag/Tfoot.php @@ -21,6 +21,11 @@ final class Tfoot extends Tag */ const ID = 'TFOOT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TFOOT, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Th.php b/src/Validator/Spec/Tag/Th.php index 18599397b..2009220ac 100644 --- a/src/Validator/Spec/Tag/Th.php +++ b/src/Validator/Spec/Tag/Th.php @@ -22,6 +22,11 @@ final class Th extends Tag */ const ID = 'TH'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TH, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Thead.php b/src/Validator/Spec/Tag/Thead.php index 328b05c3c..5498d4f93 100644 --- a/src/Validator/Spec/Tag/Thead.php +++ b/src/Validator/Spec/Tag/Thead.php @@ -21,6 +21,11 @@ final class Thead extends Tag */ const ID = 'THEAD'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::THEAD, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Time.php b/src/Validator/Spec/Tag/Time.php index a0729cb63..a35980560 100644 --- a/src/Validator/Spec/Tag/Time.php +++ b/src/Validator/Spec/Tag/Time.php @@ -22,6 +22,11 @@ final class Time extends Tag */ const ID = 'TIME'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TIME, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Title.php b/src/Validator/Spec/Tag/Title.php index cf391f3cf..aaf69412b 100644 --- a/src/Validator/Spec/Tag/Title.php +++ b/src/Validator/Spec/Tag/Title.php @@ -21,6 +21,11 @@ final class Title extends Tag */ const ID = 'title'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TITLE, SpecRule::SPEC_NAME => 'title', diff --git a/src/Validator/Spec/Tag/TitleAmp4email.php b/src/Validator/Spec/Tag/TitleAmp4email.php index 222a4e46f..f743e8d52 100644 --- a/src/Validator/Spec/Tag/TitleAmp4email.php +++ b/src/Validator/Spec/Tag/TitleAmp4email.php @@ -21,6 +21,11 @@ final class TitleAmp4email extends Tag */ const ID = 'title [AMP4EMAIL]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TITLE, SpecRule::SPEC_NAME => 'title [AMP4EMAIL]', diff --git a/src/Validator/Spec/Tag/Tr.php b/src/Validator/Spec/Tag/Tr.php index 94c2f4a4f..6c628133a 100644 --- a/src/Validator/Spec/Tag/Tr.php +++ b/src/Validator/Spec/Tag/Tr.php @@ -22,6 +22,11 @@ final class Tr extends Tag */ const ID = 'TR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TR, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Tref.php b/src/Validator/Spec/Tag/Tref.php index 7cde731ce..92946eb01 100644 --- a/src/Validator/Spec/Tag/Tref.php +++ b/src/Validator/Spec/Tag/Tref.php @@ -23,6 +23,11 @@ final class Tref extends Tag */ const ID = 'TREF'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TREF, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Tspan.php b/src/Validator/Spec/Tag/Tspan.php index d0453fb65..36ecef809 100644 --- a/src/Validator/Spec/Tag/Tspan.php +++ b/src/Validator/Spec/Tag/Tspan.php @@ -23,6 +23,11 @@ final class Tspan extends Tag */ const ID = 'TSPAN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TSPAN, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Tt.php b/src/Validator/Spec/Tag/Tt.php index bf0678d20..68f3524b3 100644 --- a/src/Validator/Spec/Tag/Tt.php +++ b/src/Validator/Spec/Tag/Tt.php @@ -21,6 +21,11 @@ final class Tt extends Tag */ const ID = 'TT'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TT, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/U.php b/src/Validator/Spec/Tag/U.php index 45dc23b7b..2bb9f9f23 100644 --- a/src/Validator/Spec/Tag/U.php +++ b/src/Validator/Spec/Tag/U.php @@ -21,6 +21,11 @@ final class U extends Tag */ const ID = 'U'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::U, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Ul.php b/src/Validator/Spec/Tag/Ul.php index c4208cbe0..c1c1a56bd 100644 --- a/src/Validator/Spec/Tag/Ul.php +++ b/src/Validator/Spec/Tag/Ul.php @@ -21,6 +21,11 @@ final class Ul extends Tag */ const ID = 'UL'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::UL, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Use_.php b/src/Validator/Spec/Tag/Use_.php index 21c4fb974..6eb0ac609 100644 --- a/src/Validator/Spec/Tag/Use_.php +++ b/src/Validator/Spec/Tag/Use_.php @@ -23,6 +23,11 @@ final class Use_ extends Tag */ const ID = 'USE'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::USE_, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Var_.php b/src/Validator/Spec/Tag/Var_.php index 316240d42..4639f50bf 100644 --- a/src/Validator/Spec/Tag/Var_.php +++ b/src/Validator/Spec/Tag/Var_.php @@ -21,6 +21,11 @@ final class Var_ extends Tag */ const ID = 'VAR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::VAR_, SpecRule::HTML_FORMAT => [ diff --git a/src/Validator/Spec/Tag/Video.php b/src/Validator/Spec/Tag/Video.php index 8912ce3e6..5e8601a21 100644 --- a/src/Validator/Spec/Tag/Video.php +++ b/src/Validator/Spec/Tag/Video.php @@ -24,6 +24,11 @@ final class Video extends Tag */ const ID = 'VIDEO'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::VIDEO, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/VideoSource.php b/src/Validator/Spec/Tag/VideoSource.php index 3d48da2ab..b989d1340 100644 --- a/src/Validator/Spec/Tag/VideoSource.php +++ b/src/Validator/Spec/Tag/VideoSource.php @@ -23,6 +23,11 @@ final class VideoSource extends Tag */ const ID = 'video > source'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::SOURCE, SpecRule::SPEC_NAME => 'video > source', diff --git a/src/Validator/Spec/Tag/VideoTrack.php b/src/Validator/Spec/Tag/VideoTrack.php index ed6b5b253..d2a0a10e6 100644 --- a/src/Validator/Spec/Tag/VideoTrack.php +++ b/src/Validator/Spec/Tag/VideoTrack.php @@ -22,6 +22,11 @@ final class VideoTrack extends Tag */ const ID = 'video > track'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'video > track', diff --git a/src/Validator/Spec/Tag/VideoTrackKindSubtitles.php b/src/Validator/Spec/Tag/VideoTrackKindSubtitles.php index 73b6eced5..f3cf6137a 100644 --- a/src/Validator/Spec/Tag/VideoTrackKindSubtitles.php +++ b/src/Validator/Spec/Tag/VideoTrackKindSubtitles.php @@ -22,6 +22,11 @@ final class VideoTrackKindSubtitles extends Tag */ const ID = 'video > track[kind=subtitles]'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::TRACK, SpecRule::SPEC_NAME => 'video > track[kind=subtitles]', diff --git a/src/Validator/Spec/Tag/View.php b/src/Validator/Spec/Tag/View.php index a086e8f20..f53a4ec05 100644 --- a/src/Validator/Spec/Tag/View.php +++ b/src/Validator/Spec/Tag/View.php @@ -23,6 +23,11 @@ final class View extends Tag */ const ID = 'VIEW'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::VIEW, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Vkern.php b/src/Validator/Spec/Tag/Vkern.php index 61bf49a2c..5910ead84 100644 --- a/src/Validator/Spec/Tag/Vkern.php +++ b/src/Validator/Spec/Tag/Vkern.php @@ -23,6 +23,11 @@ final class Vkern extends Tag */ const ID = 'VKERN'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::VKERN, SpecRule::ATTRS => [ diff --git a/src/Validator/Spec/Tag/Wbr.php b/src/Validator/Spec/Tag/Wbr.php index 3937036d5..e45b701a9 100644 --- a/src/Validator/Spec/Tag/Wbr.php +++ b/src/Validator/Spec/Tag/Wbr.php @@ -21,6 +21,11 @@ final class Wbr extends Tag */ const ID = 'WBR'; + /** + * Array of spec rules. + * + * @var array + */ const SPEC = [ SpecRule::TAG_NAME => Element::WBR, SpecRule::HTML_FORMAT => [ diff --git a/tests/Exception/InvalidCssNameTest.php b/tests/Exception/InvalidCssNameTest.php deleted file mode 100644 index 23d8c07c2..000000000 --- a/tests/Exception/InvalidCssNameTest.php +++ /dev/null @@ -1,26 +0,0 @@ -expectException(InvalidCssName::class); - $this->expectExceptionMessage("Invalid css name 'cssName' was requested from the validator spec."); - - throw InvalidCssName::forCssName('cssName'); - } -} diff --git a/tests/Exception/InvalidCssRulesetNameTest.php b/tests/Exception/InvalidCssRulesetNameTest.php new file mode 100644 index 000000000..1d6a8b915 --- /dev/null +++ b/tests/Exception/InvalidCssRulesetNameTest.php @@ -0,0 +1,26 @@ +expectException(InvalidCssRulesetName::class); + $this->expectExceptionMessage("Invalid CSS ruleset name 'cssName' was requested from the validator spec."); + + throw InvalidCssRulesetName::forCssRulesetName('cssName'); + } +} diff --git a/tests/Validator/Spec/AttributeListTest.php b/tests/Validator/Spec/AttributeListTest.php index bb27f6740..ee5764ee8 100644 --- a/tests/Validator/Spec/AttributeListTest.php +++ b/tests/Validator/Spec/AttributeListTest.php @@ -14,7 +14,7 @@ class AttributeListTest extends TestCase * @covers \AmpProject\Validator\Spec\AttributeList::get() * @covers \AmpProject\Validator\Spec\AttributeList::has() */ - public function testDefaultValues() + public function testGet() { $dummyAttributeList = new DummyAttributeList(); diff --git a/tests/Validator/Spec/CssRulesetTest.php b/tests/Validator/Spec/CssRulesetTest.php new file mode 100644 index 000000000..8f2e7dc23 --- /dev/null +++ b/tests/Validator/Spec/CssRulesetTest.php @@ -0,0 +1,66 @@ +assertFalse($dummyCssRuleset->allowAllDeclarationInStyle); + $this->assertFalse($dummyCssRuleset->allowImportant); + $this->assertFalse($dummyCssRuleset->expandVendorPrefixes); + $this->assertFalse($dummyCssRuleset->maxBytesIsWarning); + $this->assertFalse($dummyCssRuleset->urlBytesIncluded); + + $this->assertIsArray($dummyCssRuleset->declarationListSvg); + $this->assertIsArray($dummyCssRuleset->disabledBy); + $this->assertIsArray($dummyCssRuleset->enabledBy); + $this->assertIsArray($dummyCssRuleset->fontUrlSpec); + $this->assertIsArray($dummyCssRuleset->htmlFormat); + $this->assertIsArray($dummyCssRuleset->imageUrlSpec); + } + + /** + * @covers \AmpProject\Validator\Spec\CssRuleset::getId() + * @covers \AmpProject\Validator\Spec\CssRuleset::get() + * @covers \AmpProject\Validator\Spec\CssRuleset::has() + * @covers \AmpProject\Validator\Spec\Tag::__get() + */ + public function testGet() + { + $dummyCssRuleset = new DummyCssRuleset(); + + $this->assertEquals('dummy', $dummyCssRuleset->getId()); + + $this->assertEquals($dummyCssRuleset->maxBytes, $dummyCssRuleset->get('maxBytes')); + + $this->assertTrue($dummyCssRuleset->has('maxBytes')); + $this->assertFalse($dummyCssRuleset->has('utter nonsense')); + + $this->assertEquals(42, $dummyCssRuleset->get('maxBytes')); + } + + /** + * @covers \AmpProject\Validator\Spec\CssRuleset::get() + * @covers \AmpProject\Exception\InvalidSpecRuleName::forSpecRuleName() + */ + public function testThrowsExceptionForUnknownCssRuleset() + { + $dummyCssRuleset = new DummyCssRuleset(); + + $this->expectException(InvalidSpecRuleName::class); + $this->expectExceptionMessage("Invalid spec rule name 'utter nonsense' was requested from the validator spec."); + $dummyCssRuleset->get('utter nonsense'); + } +} diff --git a/tests/Validator/Spec/DeclarationListTest.php b/tests/Validator/Spec/DeclarationListTest.php index 3c03f0f6a..dc38bb87f 100644 --- a/tests/Validator/Spec/DeclarationListTest.php +++ b/tests/Validator/Spec/DeclarationListTest.php @@ -14,7 +14,7 @@ class DeclarationListTest extends TestCase * @covers \AmpProject\Validator\Spec\DeclarationList::get() * @covers \AmpProject\Validator\Spec\DeclarationList::has() */ - public function testDefaultValues() + public function testGet() { $dummyDeclarationList = new DummyDeclarationList(); diff --git a/tests/Validator/Spec/DescendantTagListTest.php b/tests/Validator/Spec/DescendantTagListTest.php index 0a7e19237..e6bdbfb86 100644 --- a/tests/Validator/Spec/DescendantTagListTest.php +++ b/tests/Validator/Spec/DescendantTagListTest.php @@ -13,7 +13,7 @@ class DescendantTagListTest extends TestCase * @covers \AmpProject\Validator\Spec\DescendantTagList::get() * @covers \AmpProject\Validator\Spec\DescendantTagList::has() */ - public function testDefaultValues() + public function testGet() { $dummyDescendantTagList = new DummyDescendantTagList(); diff --git a/tests/Validator/Spec/Section/CssSpecRulesTest.php b/tests/Validator/Spec/Section/CssSpecRulesTest.php new file mode 100644 index 000000000..0e6a885da --- /dev/null +++ b/tests/Validator/Spec/Section/CssSpecRulesTest.php @@ -0,0 +1,79 @@ +cssRulesets = $spec->cssRulesets(); + } + + /** + * @covers \AmpProject\Validator\Spec\Section\CssRulesets::get() + */ + public function testGet() + { + $ruleSet = $this->cssRulesets->get('AMP (no-transformed)'); + $this->assertInstanceOf(Spec\CssRuleset::class, $ruleSet); + } + + /** + * @covers \AmpProject\Validator\Spec\Section\CssRulesets::get() + * @covers \AmpProject\Exception\InvalidCssRulesetName::forCssRulesetName() + */ + public function testGetThrowsExceptionForUnknownName() + { + $this->expectException(InvalidCssRulesetName::class); + $this->cssRulesets->get('utter nonsense'); + } + + /** + * @covers \AmpProject\Validator\Spec\Section\CssRulesets::byFormat() + */ + public function testByFormat() + { + $ruleSets = $this->cssRulesets->byFormat(Format::AMP); + $this->assertIsArray($ruleSets); + $this->assertCount(2, $ruleSets); + foreach ($ruleSets as $ruleSet) { + $this->assertInstanceOf(Spec\CssRuleset::class, $ruleSet); + } + } + + /** + * @covers \AmpProject\Validator\Spec\Section\CssRulesets::byFormat() + * @covers \AmpProject\Exception\InvalidFormat::forFormat() + */ + public function testByFormatThrowsExceptionForUnknownFormat() + { + $this->expectException(InvalidFormat::class); + $this->cssRulesets->byFormat('utter nonsense'); + } + + public function testIteration() + { + $this->assertGreaterThan(4, count($this->cssRulesets)); + foreach ($this->cssRulesets as $cssRuleset) { + $this->assertInstanceOf(Spec\CssRuleset::class, $cssRuleset); + $this->assertNotEmpty($cssRuleset::SPEC); + } + } +} diff --git a/tests/Validator/Spec/Section/CssTest.php b/tests/Validator/Spec/Section/CssTest.php deleted file mode 100644 index c0a60f9ae..000000000 --- a/tests/Validator/Spec/Section/CssTest.php +++ /dev/null @@ -1,58 +0,0 @@ -css = $spec->css(); - } - - public function testGetByName() - { - $ruleSet = $this->css->getByName('AMP (no-transformed)'); - $this->assertIsArray($ruleSet); - $this->assertArrayHasKey('allowImportant', $ruleSet); - } - - public function testGetThrowsExceptionForUnknownName() - { - $this->expectException(InvalidCssName::class); - $this->css->getByName('utter nonsense'); - } - - public function testGetByFormat() - { - $ruleSets = $this->css->getByFormat(Format::AMP); - $this->assertIsArray($ruleSets); - $this->assertCount(2, $ruleSets); - foreach ($ruleSets as $ruleSet) { - $this->assertIsArray($ruleSet); - $this->assertArrayHasKey('allowImportant', $ruleSet); - } - } - - public function testGetThrowsExceptionForUnknownFormat() - { - $this->expectException(InvalidFormat::class); - $this->css->getByFormat('utter nonsense'); - } -} diff --git a/tests/Validator/Spec/TagTest.php b/tests/Validator/Spec/TagTest.php index 50ec62454..f5361154c 100644 --- a/tests/Validator/Spec/TagTest.php +++ b/tests/Validator/Spec/TagTest.php @@ -10,7 +10,6 @@ class TagTest extends TestCase { /** - * @covers \AmpProject\Validator\Spec\Tag::getId() * @covers \AmpProject\Validator\Spec\Tag::get() * @covers \AmpProject\Validator\Spec\Tag::has() * @covers \AmpProject\Validator\Spec\Tag::__get() @@ -36,6 +35,21 @@ public function testDefaultValues() $this->assertFalse($dummyTag->siblingsDisallowed); $this->assertFalse($dummyTag->unique); $this->assertFalse($dummyTag->uniqueWarning); + } + + /** + * @covers \AmpProject\Validator\Spec\Tag::getId() + * @covers \AmpProject\Validator\Spec\Tag::get() + * @covers \AmpProject\Validator\Spec\Tag::has() + * @covers \AmpProject\Validator\Spec\Tag::__get() + */ + public function testGet() + { + $dummyTag = new DummyTag(); + + $this->assertEquals('dummy', $dummyTag->getId()); + + $this->assertEquals($dummyTag->tagName, $dummyTag->get('tagName')); $this->assertTrue($dummyTag->has('tagName')); $this->assertFalse($dummyTag->has('utter nonsense')); diff --git a/tests/Validator/SpecTest.php b/tests/Validator/SpecTest.php index 0bc83adb0..ea4890dca 100644 --- a/tests/Validator/SpecTest.php +++ b/tests/Validator/SpecTest.php @@ -27,11 +27,11 @@ public function testItCanProvideTheAttrListsSection() $this->assertInstanceOf(Section\AttributeLists::class, $attributeList); } - public function testItCanProvideTheCssSection() + public function testItCanProvideTheCssRulesetsSection() { $spec = new Spec(); - $css = $spec->css(); - $this->assertInstanceOf(Section\Css::class, $css); + $css = $spec->cssRulesets(); + $this->assertInstanceOf(Section\CssRulesets::class, $css); } public function testItCanProvideTheDeclarationListsSection() diff --git a/tests/src/ValidatorFixtures/DummyCssRuleset.php b/tests/src/ValidatorFixtures/DummyCssRuleset.php new file mode 100644 index 000000000..59a4ba0b5 --- /dev/null +++ b/tests/src/ValidatorFixtures/DummyCssRuleset.php @@ -0,0 +1,19 @@ + */ + const SPEC = [ + SpecRule::MAX_BYTES => 42, + ]; +}