public static final class ConformanceRules.BanCreateDom extends ConformanceRules.AbstractRule
goog.dom.createDom and goog.dom.DomHelper#createDom with parameters
specified in value in the format tagname.attribute, e.g. value: 'iframe.src'.
Tag name might be also * to ban the attribute in any tag.
Note that string literal values assigned to banned attributes are allowed as they couldn't be
attacker controlled.| Constructor and Description |
|---|
BanCreateDom(AbstractCompiler compiler,
Requirement requirement) |
| Modifier and Type | Method and Description |
|---|---|
protected ConformanceRules.ConformanceResult |
checkConformance(NodeTraversal t,
Node n) |
check, reportpublic BanCreateDom(AbstractCompiler compiler, Requirement requirement) throws CheckConformance.InvalidRequirementSpec
protected ConformanceRules.ConformanceResult checkConformance(NodeTraversal t, Node n)
checkConformance in class ConformanceRules.AbstractRuleCopyright © 2009-2020 Google. All Rights Reserved.