Comment #7 on issue 933 by tobie.langel: jQuery expects "expando" attributes
http://code.google.com/p/google-caja/issues/detail?id=933
There's a significant difference in the way expandos and attributes handle
values of type !== 'string':
var div = document.getElementsByTagName('div')[0];
div.foo = {foo:4};
console.log(div.foo);
// -> Object foo=4
console.log(div.getAttribute('foo'));
// -> null
div.setAttribute('bar', {bar:4});
console.log(div.bar);
// -> undefined
console.log(div.getAttribute('bar'));
// -> "[object Object]"
Same for HTML attributes (see
http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html#ID-
642250288)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
http://groups.google.com/group/google-caja-discuss
To unsubscribe, email [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---