Opened 12 years ago

Last modified 12 years ago

#9596 closed defect

dojo._isButtonTag throwing exception — at Initial Version

Reported by: Douglas Hays Owned by: anonymous
Priority: high Milestone: 1.4
Component: Core Version: 1.3.2
Keywords: Cc: James Burke
Blocked By: Blocking:


Calling dojo.marginBox(node, {}) with an INPUT node having no explicit type will cause an exception thrown in _isButtonTag since getAttribute("type") returns null on Firefox and Safari.

        <SCRIPT type="text/javascript" djConfig="parseOnLoad:false, isDebug:true" src=""></SCRIPT>
<INPUT id="textbox" size="60" onclick="dojo.marginBox(this,dojo.marginBox(this))" value="testing...">
<SCRIPT type="text/javascript">
        var textbox = dojo.byId('textbox');
                textbox.value = 'No error';
        }catch(e){ textbox.value = e.message; }

The fix to _isButtonTag is simple:


Change History (0)

Note: See TracTickets for help on using tickets.