Hello, validating the html-output of a <h:form/>-tag in the validator at w3c i got this message:
Error Line 48 column 55: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag. ...en" name="_idJsp4_SUBMIT" value="1" /><input type="hidden" name="_idJsp4:_lin Thats why I proposed to enclose every hiddenfield in a <div/>-Tag. Should I open an Jira-Issue for this two proposals? Best regards, Rudi On 4/17/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
On 4/17/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote: > Yes, the burden of proof is on Rudi. If he opens up a JIRA issue with > patches and justification (not prohibited by spec, but required for > xhtml), then we'll apply them. > > A quick google search turns up that "ins", "del", "h1", "h2", "h3", > "h4", "h5", "h6", "p", "div", "address", "fieldset" are the only > direct children allowed for form. Thus inputs need to be in either > <p> or <div> or <fieldset> if I understand it. You are right: > <!ELEMENT > FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form --> > And %block; is defined as: > <!ENTITY % block > "P | H1| > H2|H3| > H4|H5| > H6 | UL | > OL | PRE | DL | DIV | NOSCRIPT | > BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> > > Weird, but correct.