Dear Michael,

  now I'm reading your reply, I remember I've also used a form
wrapping something in the past. But was just a workarround and I
wasn't aware of using this sistematically. Also wasn't pretending to
define a more general solution like now.

  If HTML is limited to not to have controls like those outside forms
then the wrapping solution should be atomically and industrially used.
By atomic I mean the minimal expression of a control. Now in practice
this means to me that I should refactor a wrapper generator of every
kind of control that demands a form to exist so it can expectorate
healty html. And I understand that this should be made at "atom-
level", I mean a little form wraping one control because the
(forcibly) injected requeriment to limit the composibility of the
controls (to evade the unsuported form nesting). I wonder when will
come the day on which HTML becomes what it should for the good of us
all?

  Thanks for your pragmatic reply,

  cheers !

Sebastian


On 2 jul, 14:17, "Michael Peters" <[EMAIL PROTECTED]> wrote:
> Sebastian Sastre wrote:
> > Hi there,
>
> >   maybe will sound you naif but I've surprisingly found today that
> > someElement.disable() can't be used for elements that are not inside a
> > form.
>
> I don't think it's valid HTML to have form input elements (input, button,
> select, etc) outside of a <form> tag. Different browsers handle different
> invalid DOM's differently, so I'm not sure you'll have much luck trying to
> do this.
>
> I usually use a dummy form for these kinds of things (not wrapping the
> whole doc in a form, cause nested forms aren't allowed either). Just use
> small dummy forms for groups of controls:
>
> <form name="ignoreme">
> <input type="button"....>
> </form>
>
> --
> Michael Peters
> Developer
> Plus Three, LP


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to