On 09/01/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > Strangely, the <button> element has no methods
> > whatsoever[1]
> >
> > [1]
> > http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-34812697
>
> According to this spec they do:
>
> http://www.w3.org/TR/html4/interact/forms.html#h-17.5

I wonder if their are other examples of where the HTML spec doesn't
agree with the DOM spec?

In terms of HTML, I try to follow the specification (or at least stick
with the attributes that it defines). But when it comes to JavaScript,
you really limit yourself if you try to be this strict.

jQuery wouldn't work if it was written like that (as it uses innerHTML
and the different methods of adding/removing events).

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to