Opened 13 years ago

Closed 13 years ago

#2344 closed defect (duplicate)

dojo.byId() returns null on IE6 when form has input field with name=id attribute.

Reported by: victor.doss@… Owned by: anonymous
Priority: high Milestone: 0.9
Component: Core Version: 0.4.1
Keywords: byId null ie name input id Cc:
Blocked By: Blocking:

Description

byId() returns null on IE6 when form has input field with name=id attribute. Dojo version 0.4.1. pl. check the code below...


<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <script type="text/javascript">
      var djConfig = { isDebug: true };
  </script>
  <script type="text/javascript" src="js/dojo/dojo.js"></script>
  <script type="text/javascript">

dojo.require("dojo.debug.console");
dojo.require("dojo.lang.*");
dojo.require("dojo.event.*");

dojo.addOnLoad(function() {
   dojo.debug("dojo.byId() on form with <input name='id' : "
                              +dojo.byId("buggyForm"));
});
   </script>
</head>
<body>
   <form id="buggyForm">
         <input name="id">
   </form>
</body>
</html>

Change History (2)

comment:1 Changed 13 years ago by nicola.rizzo+dojo@…

duplicate: see #2248

comment:2 Changed 13 years ago by dylan

Milestone: 0.9
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.