This is a template rule. It checks that the user-configured disallowed elements are not present in the HTML. Create a custom rule from this template to define which elements are forbidden.
See rule {rule:Web:S1936} for a non-template version with a configurable element list.
The rule supports both namespaced and non-namespaced element matching:
f:inputText will match only elements with that exact namespace prefix and local name.inputText (without namespace prefix) will match elements with that local name regardless of namespace prefix.For a disallowed list of: font,center:
<center><font color="red">Hello World!</font></center> <!-- Noncompliant -->
For a disallowed list of: f:inputText:
<f:inputText value="#{bean.name}" /> <!-- Noncompliant -->
<div class="centerRed">Hello World!</div>
<p:inputText value="#{bean.name}" /> <!-- Compliant; different namespace -->