It should be invalid for <span/> in any mode of XHTML (strict,
transitional) or HTML4 whatever you choose.

<span/> is an inline element that was never meant to support a block
level element (<form/>, <div/> etc.)

Browsers nowadays are very smart to render anything you throw at it
gracefully but that cannot be a license to generate semantically
invalid content intentionally. It's best to avoid. If not anything
else, the CSS designer would have hard time with layouts et al.

Yes, W3C validator often gets erratic, but that isn't the case here.

Cheers, Indrajit

On Aug 26, 10:27 pm, David Pollak <feeder.of.the.be...@gmail.com>
wrote:
> On Wed, Aug 26, 2009 at 9:12 AM, Peter Robinett 
> <pe...@bubblefoundry.com>wrote:
>
>
>
> > Would it be too complicated to let the developer choose (perhaps in
> > Boot.scala) whether they want a strict mode?
>
> Even transitional mode has these restrictions
>
>
>
>
>
> > Peter Robinett
>
> > On Aug 26, 8:20 am, David Pollak <feeder.of.the.be...@gmail.com>
> > wrote:
> > > Folks,
> > > I've been working on the XHTML validation stuff for Lift.  Basically, you
> > > can, in dev mode, turn on validation and you'll get an "error box" at the
> > > bottom of each screen that has a validation error as well as an error in
> > the
> > > console.
>
> > > I've found that a fair number of constructs that work in browsers fail
> > > validation.
>
> > > For example:
>
> > > <div><span><form>...</form></span></div>
>
> > > fails validation (no blocks in a span and form is a block).
>
> > > <form>
> > > <input>
> > > </form>
>
> > > fails validation (sub-tags of form must be blocks.)
>
> > > Is this right?  Is it worthwhile to add W3C validation when these
> > constructs
> > > are allowed by browsers?
>
> > > Thanks,
>
> > > David
>
> > > --
> > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > Follow me:http://twitter.com/dpp
> > > Git some:http://github.com/dpp
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to