Reputation: 95
I'm trying to pass the HTML validation (https://validator.w3.org/) of my code, but I've got the following problem:
there is no attribute "NAME"
<FORM name="formMenu" id="formMenu" action=...
I'm using JSF 1.2, and the tag that generates this part of code is the following:
<h:form id="formMenu" >
...
</h:form>
I've been reading about that error, and it seems that it's because you shouldn't use "name" in the form. The problem is that this one is rendered from the jsf h:form. Is there any way I can delete the "name" attribute?
Upvotes: 1
Views: 96
Reputation: 1108722
Is there any way I can delete the "name" attribute?
Yes, with a custom renderer.
Much better, however, is to fix your doctype to be HTML5 instead of HTML4 or XHTML strict. This attribute is allowed in HTML5 and as additional advantage, you're catching up current state of technology.
<!DOCTYPE html>
Upvotes: 1