I don't think the attribute is defined by default, after I did some
more testing. I find the value return is not consistent between
Firefox and IE8 (and probably previous versions of Microsoft Internet
Explorer).

Please do this simple test with a page that has jQuery and then input
the console of Firefox Firebug and IE8 Developer Tools:

Example: http://jquery.com/
alert($('#jq-siteLogo').attr('disabled'));

The alert window will report different values between Firefox and IE,
either "undefined" or "false". Thus, not consistent!

I can reproduce this "attr(name)" bug many times.

Sincerely,
William Chang
http://www.williamchang.org
http://www.babybluebox.com

On Aug 27, 3:02 am, ludovic <ludothebe...@gmail.com> wrote:
> I don't think it is a bug. I'd rather think you've tried with
> attributes that are defined by default.
> To take your example, "disabled" attribute exists for html elements
> and is equal to false by default, so it is normal that it'll return
> false rather than undefined.
>
> Regards
>
> ----
> Ludovic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to