Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9328 (closed defect: untested)

Opened 11 months ago

Last modified 10 months ago

Adding a class attribute breaks Element

Reported by: justinbmeyer Assigned to: sam
Priority: normal Milestone: 1.x
Component: Prototype Version: 1.1.6
Severity: normal Keywords: Element
Cc:

Description

When I write the following code:

new Element("div", {'class': 'row'} )

The code errors because

Element._attributeTranslations.write

is undefined. However, the following works:

new Element("div" )

Change History

08/22/07 01:28:58 changed by kangax

Which browser/platform are you using? Can you provide a simple test case?

All of these work fine for me (FF2/win):

new Element("div", {className: 'row'}) new Element("div", {class: 'row'}) new Element("div", {'className': 'row'}) new Element("div", {'class': 'row'})

08/28/07 16:58:37 changed by mislav

  • status changed from new to closed.
  • resolution set to untested.

I doubt he is talking about FF, probably IE. Justin, please provide a failing test case (a diff against the current trunk would be awesome).