[Prototype-core] setOpacity error
I just discovered that if you call setOpacity in IE on an element that was just created (and so hasn't been added to the DOM yet), an exception will be thrown. It looks like the currentStyle object on the element is not set until after it has been attached to the DOM. An example script is: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head script type=text/javascript src=prototype.js/script script type=text/javascript function test() { var div = new Element('div'); div.setStyle({ background: 'blue', opacity: .5 }); div.update('This Worked'); document.body.appendChild(div); } /script /head body input type=button onclick=test() value=Click Me! / /body /html I filled a bug #9904 on it. This affects 1.6rc0 and since there was no changes to this part of the code for 1.6rc1, I believe it affects that as well. Trevan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Inheritance changes
I just saw that there were some more changes with the inheritance code. I'm wondering how stable is the code. Meaning, if I start working on a project and use the current inheritance code right now, what probability is there that I'll need to rename functions (addMethods) or change function calls (such as changing the $super construct)? Thanks, Trevan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Opera and prototype
I was playing around with the testing framework and decided to see if I could get it working with Opera and appeared to be successful. But when I ran the tests, opera failed the dom, form, position, and selector tests. Is prototype supposed to support Opera? Trevan P.S. I submitted a patch to add opera to the test suites as well as a possible fix the problem where you have to close IE before it goes to the next test case (http://dev.rubyonrails.org/ticket/7852) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] $$() and :nth psuedo-elements
The new version of $$() is wonderful but doesn't seem to work all that well with the :nth psuedo-elements. It looks to only work correctly when in the formula an+b, a and b are positive and b a. I don't know if anyone has noticed this yet, but I couldn't find a bug id so I filled a new one and added a possible fix for it (as well as test cases). The bug is at: http://dev.rubyonrails.org/ticket/7841. Trevan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---