Class ConformanceRules.BanElementSetAttribute

java.lang.Object
com.google.javascript.jscomp.ConformanceRules.AbstractRule
com.google.javascript.jscomp.ConformanceRules.BanElementSetAttribute
All Implemented Interfaces:
CheckConformance.Rule
Enclosing class:
ConformanceRules

public static final class ConformanceRules.BanElementSetAttribute extends ConformanceRules.AbstractRule
Ban Element#setAttribute with attribute names specified in value or any dynamic string.

Using the element access syntax to set properties of Element is considered to be equivalent to calling Element#setAttribute. E.g., element[prop] = value is treated as element.setAttribute(prop, value) when element has the type Element.