Ticket #4205: html.patch

File html.patch, 0.7 kB (added by nathan, 10 months ago)

A patch which will revert to the previous behavior. This is NOT probably the desired solution, but for any who are having problems with form submission, this may be an interim fix.

  • dojo/_base/html.js

     
    10841084                node = dojo.byId(node); 
    10851085                name = _fixAttrName(name); 
    10861086                if(args == 3){ 
    1087                         if(dojo.isFunction(value)){ 
    1088                                 try{ 
    1089                                         delete node[name]; // preserve clobbering behavior 
    1090                                 }catch(e){} 
    1091                                 // ensure that event objects are normalized, etc. 
    1092                                 dojo.connect(node, name, value); 
    1093                         }else if(typeof value == "boolean"){ // e.g. onsubmit, disabled 
     1087                        if(dojo.isFunction(value) || typeof value == "boolean"){ // e.g. onsubmit, disabled 
    10941088                                // if a function, we should normalize the event object here!!! 
    10951089                                node[name] = value; 
    10961090                        }else{