#184 ✓not_for_core
John-David Dalton

_attributeTranslations.read.values._getEv fix for IE

Reported by John-David Dalton | June 27th, 2008 @ 06:35 PM | in

This is an IE issue:

Garrett Smith pointed out that Element._attributeTranslations.read.values._getEv should not use toString.

This is not entirely possible but we can use Function.prototype.toString.

Also it should return a value only if wrapped in an anonymous function.

Example page: http://www.apple.com/itunes/

// Will result in partial string representation of a serialized function. The string begins with ')'.

OR try

$('someDiv').onclick = function() { var foobar = 'somereallylongstringsoyoucanseehowmessedupthisis'; }
alert($('someDiv').readAttribute('onclick')); // will alert "= 'somereallylongstringsoyoucanseehowmessedupthisis';"

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins


Referenced by