I looked at the code and it seems that readAttribute has some extra
plumbing for IE but other than that it works basically as you would
expect.

On May 19, 5:16 pm, patrick <[email protected]> wrote:
> Hi,
>
> I was looking over the API docs, and saw readAttribute, and thought to
> myself:  I have not been using this...
>
> I do an awful lot of:
> if ($(x).id == "foo")
> {}
> else if ($(x).style == "bar")
> {}
>
> ... and I am just wondering, is that not wise to do?  Should I be
> doing
> $(x).readAttribute('id') == "foo" ?
>
> Or does it not matter?
>
> -patrick
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/prototype-scriptaculous?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to