Changes between Initial Version and Version 1 of Ticket #13059


Ignore:
Timestamp:
May 28, 2011, 6:32:53 PM (10 years ago)
Author:
liucougar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13059 – Description

    initial v1  
    1414
    1515NOTE: this error does not happen in real IE7, nor in native IE8 mode, nor in EmulateIE8 mode in IE9 and native IE9 mode
     16
     17proposed patch:
     18{{{
     19#!patch
     20Index: ../svn/dojo/_base/html.js
     21===================================================================
     22--- ../svn/dojo/_base/html.js   (revision 25205)
     23+++ ../svn/dojo/_base/html.js   (working copy)
     24@@ -55,7 +55,7 @@
     25                if(typeof id != "string"){
     26                        return id;
     27                }
     28-               var _d = doc || dojo.doc, te = _d.getElementById(id);
     29+               var _d = doc || dojo.doc, te = id && _d.getElementById(id);
     30                // attributes.id.value is better than just id in case the
     31                // user has a name=id inside a form
     32                if(te && (te.attributes.id.value == id || te.id == id)){
     33}}}