title: Using class attribute instead of styleClass of a JSF component actually works, why?
body: <p>As far as I understood, we needed to use <code>styleClass=</code> as the JSF components don't support using just <code>class=</code>.</p>
  
  <p>I've noticed recently that some components that were using <code>class=</code> were still rendering correctly. As a minimal example, </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html
          PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"&gt;
  
      &lt;h:head&gt;
          &lt;title&gt;Simple JSF Facelets page&lt;/title&gt;
      &lt;/h:head&gt;
  
      &lt;h:body&gt;
         &lt;h:inputText class="wut" anothertag="hi" value="me"/&gt;
      &lt;/h:body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>This produces</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;link type="text/css" rel="stylesheet" href="/individuallifefaz/javax.faces.resource/theme.css.xhtml?ln=primefaces-aristo"/&gt;
          &lt;title&gt;Simple JSF Facelets page&lt;/title&gt;&lt;/head&gt;
      &lt;body&gt;
          &lt;input type="text" name="j_idt5" value="me" class="wut"/&gt;
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Why is this working? It's clearly not just passing through any unknown tags, as the <code>anothertag</code> is stripped out.</p>