On Mar 7, 12:53 pm, kangax <[email protected]> wrote:
> On Mar 6, 7:07 am, RobG <[email protected]> wrote:
> [...]
>
> > The differences are in the browsers' implementation of setAttribute,
> > For example, using setAttribute with any of the intrinsic event
> > handlers.
>
> Setting intrinsic event handlers was never supported, as far as I
> remember, although some users did indeed try to set them and wondered
> why it wouldn't work. As much as I'd hate to have another "exception",
> this "deficiency" should simply be stated in a documentation.

Yes, it was just an example of different behaviour, I wasn't
suggesting parsing attribute values.

[...]
> I personally almost always use simple property assignment, because I
> know what works and what doesn't; the speed benefits of `element.title
> = 'foo'` vs. $(element).writeAttribute('title', 'foo') are quite
> noticeable - no need to extend an element (that's O(N) in MSHTML), no
> need to call a method, no need to perform testing/translation/mapping
> inside that method, and so on and so forth.

Yes, agree fully.


--
Rob
--~--~---------~--~----~------------~-------~--~----~
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