myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rudi Steiner" <rudi.stei...@googlemail.com>
Subject Re: XHTML Strict
Date Wed, 18 Apr 2007 07:03:10 GMT
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 <joern.zaefferer@googlemail.com> wrote:
>
>
> On 4/17/07, Mike Kienenberger <mkienenb@gmail.com> 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.
>

Mime
View raw message