[Prototype-core] Re: writeAttribute 'style' in IE 7

2009-05-01 Thread bazikch
@Rick elParent and el are names (id's). Tried your solution but only one style get copied. Accordingly to quirksmode, #setAttribute implementation in IE 7 and lower is incomplete (http://www.quirksmode.org/dom/ w3c_core.html#attributes). Therefore I prefer base my application on a framework ;-) @

[Prototype-core] Re: writeAttribute 'style' in IE 7

2009-04-30 Thread kangax
On Apr 30, 10:13 am, bazikch wrote: > Hello, > > I'm trying to do the following: > $(el).writeAttribute('style', $(elParent).readAttribute('style')); It would be helpful if you explained what it is exactly that are you trying to accomplish. The line above actually ends up jumping through dozens

[Prototype-core] Re: writeAttribute 'style' in IE 7

2009-04-30 Thread Rick Waldron
$(elParent).readAttribute('style') is elParent a var of an extended element? my first guess would be that it is.. if it is.. try: elParent.readAttribute('style') if its not... try: $('elParent').readAttribute('style') same with: el.writeAttribute( so... put together: el.writeAttribu