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, report
public BanCreateDom(AbstractCompiler compiler, Requirement requirement) throws CheckConformance.InvalidRequirementSpec
protected ConformanceRules.ConformanceResult checkConformance(NodeTraversal t, Node n)
checkConformance
in class ConformanceRules.AbstractRule
Copyright © 2009-2019 Google. All Rights Reserved.