Why is this an issue?

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.

Namespace support

The rule supports both namespaced and non-namespaced element matching:

Noncompliant code example

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 -->

Compliant solution

<div class="centerRed">Hello World!</div>
<p:inputText value="#{bean.name}" /> <!-- Compliant; different namespace -->