Hello together, I figured out, that new Element(''span'', { ''class'':''something'' }); doesn ´t work in IE8. The generated source code looks like <span className="invisible"></span>. It´s easy to fix it by manipulating directly the Prototype-Core, but who can I do this better, e.g. by overwriting new Element() in an external file? Greetings! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It´s not that dificult to overwrite specific methods or to enhance Objects with methods - how is it possible to manipulate/overwrite "new Element()"? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
T.J. Crowder
2008-Mar-12 17:25 UTC
Re: IE8: Attribute "class" in new Element() not working
> It´s easy to fix it by manipulating directly the Prototype-CoreIf I''m reading your message correctly, it sounds like you think the issue is a bug in Prototype (as opposed to a bug in the IE8 beta) and than you''ve found a solution to the problem. Probably the best thing would be to post a note to the Prototype Core group (http:// groups.google.com/group/prototype-core) outlining the details of the problem and your fix to see whether there''s agreement that it''s really a Prototype issue (as opposed to a bug in the IE8 beta, of which there are bound to be many!). If it''s really a Prototype bug, the best way to address it is to file a trac ticket (http://dev.rubyonrails.org/) and ideally -- as it sounds like you''ve found a solution -- post a diff file with the solution. Thanks, -- T.J. Crowder tj / crowder software / com On Mar 11, 4:54 pm, ohneworte <alexander.gewess...-Tswl7xcH0yE@public.gmane.org> wrote:> Hello together, > > I figured out, that new Element(''span'', { ''class'':''something'' }); doesn > ´t work in IE8. The generated source code looks like <span > className="invisible"></span>. > > It´s easy to fix it by manipulating directly the Prototype-Core, but > who can I do this better, e.g. by overwriting new Element() in an > external file? > > Greetings!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---