static void |
ExtensionsUtils.validateAmpScriptSrcAttr(ParsedHtmlTag tag,
String attrValue,
dev.amp.validator.ValidatorProtos.TagSpec tagSpec,
Context context,
dev.amp.validator.ValidatorProtos.ValidationResult.Builder result) |
Validates the 'src' attribute for AMP JavaScript (Runtime and Extensions)
script tags.
|
static void |
AttributeSpecUtils.validateAttributes(ParsedTagSpec parsedTagSpec,
ParsedTagSpec bestMatchReferencePoint,
Context context,
ParsedHtmlTag encounteredTag,
ValidateTagResult result) |
Validates whether the attributes set on |encountered_tag| conform to this
tag specification.
|
static void |
TagSpecUtils.validateDescendantTags(ParsedHtmlTag encounteredTag,
ParsedTagSpec parsedTagSpec,
Context context,
dev.amp.validator.ValidatorProtos.ValidationResult.Builder validationResult) |
Validates that this tag is an allowed descendant tag type.
|
static void |
AttributeSpecUtils.validateLayout(ParsedTagSpec parsedTagSpec,
Context context,
ParsedHtmlTag encounteredTag,
dev.amp.validator.ValidatorProtos.ValidationResult.Builder result) |
Validates the layout for the given tag.
|
static void |
TagSpecUtils.validateSsrLayout(dev.amp.validator.ValidatorProtos.TagSpec spec,
ParsedHtmlTag encounteredTag,
dev.amp.validator.ValidatorProtos.AmpLayout.Layout inputLayout,
CssLength inputWidth,
CssLength inputHeight,
String sizesAttr,
String heightsAttr,
Context context,
dev.amp.validator.ValidatorProtos.ValidationResult.Builder result) |
Helper method for validateLayout.
|
static ValidateTagResult |
TagSpecUtils.validateTag(Context context,
ParsedHtmlTag encounteredTag,
ParsedTagSpec bestMatchReferencePoint) |
Validates the provided |tagName| with respect to the tag
specifications in the validator's rules, returning a ValidationResult
with errors for this tag and a PASS or FAIL status.
|
static ValidateTagResult |
TagSpecUtils.validateTagAgainstSpec(ParsedTagSpec parsedTagSpec,
ParsedTagSpec bestMatchReferencePoint,
Context context,
ParsedHtmlTag encounteredTag) |
Validates the provided |tagName| with respect to a single tag
specification.
|