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

Changeset 7312

Show
Ignore:
Timestamp:
08/14/07 05:08:18 (1 year ago)
Author:
sam
Message:

prototype: Fix readAttribute-related failure in form.html in IE.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/trunk/CHANGELOG

    r7311 r7312  
    11*SVN* 
     2 
     3* Fix readAttribute-related failure in form.html in IE.  [sam, Andrew Dupont] 
    24 
    35* Fix failing dom.html and selector.html tests in IE.  [Tobie Langel, Andrew Dupont] 
  • spinoffs/prototype/trunk/src/dom.js

    r7311 r7312  
    800800          return element.getAttribute(attribute, 2); 
    801801        }, 
     802        _getAttrNode: function(element, attribute) { 
     803          var node = element.getAttributeNode(attribute); 
     804          return node ? node.value : ""; 
     805        }, 
    802806        _getEv: function(element, attribute) { 
    803807          var attribute = element.getAttribute(attribute); 
     
    840844  (function(v) { 
    841845    Object.extend(v, { 
    842       href: v._getAttr, 
    843       src:  v._getAttr, 
    844       type: v._getAttr, 
    845       disabled: v._flag, 
    846       checked:  v._flag, 
    847       readonly: v._flag, 
    848       multiple: v._flag, 
     846      href:        v._getAttr, 
     847      src:         v._getAttr, 
     848      type:        v._getAttr, 
     849      action:      v._getAttrNode, 
     850      disabled:    v._flag, 
     851      checked:     v._flag, 
     852      readonly:    v._flag, 
     853      multiple:    v._flag, 
    849854      onload:      v._getEv, 
    850855      onunload:    v._getEv,