Opened 8 years ago

Closed 7 years ago

#14155 closed defect (invalid)

dojo.byId returns DispHTMLDivElement instead of HTMLDivElement on IE9.

Reported by: linlei99 Owned by: Eugene Lazutkin
Priority: blocker Milestone: tbd
Component: HTML Version: 1.6.1
Keywords: IE9 dojo.byId Cc:
Blocked By: Blocking:

Description

This issue occurs on IE9 when using hostname in the url, but it returns HTMLDivElement object when using ip address or localhost in the url. The pages don't show correctly when using hostname in the url to access them. It works fine with FF.

For example, we are using dojo.byId to get a content pane's dom node and append a tab container to it (see code below). The code works with Url with ip address and localhost, but not with hostname on IE9.

========================================== var parent = dojo.byId("contentpaneId"); parent.appendChild(tabContainer.domNode); ==========================================

By using IE 9 develop tool, we found that the objects returned by dojo.byId are different. One is HTMLDivElement, the other is DispHTMLDivElement. Not sure whether it is the reason causes the issue.

Please help out. Thank you very much.

Change History (4)

comment:1 Changed 8 years ago by bill

Component: GeneralHTML
Owner: set to Eugene Lazutkin

comment:2 Changed 7 years ago by Colin Snover

Priority: highblocker

Bulk update of open ticket priorities.

comment:3 Changed 7 years ago by sprabhal

I'm running into the same issue and keep getting a

HIERARCHY_REQUEST_ERR

Are there any workarounds?

comment:4 Changed 7 years ago by Eugene Lazutkin

Resolution: invalid
Status: newclosed

From the top of my head you have a name clash in IE: you defined a global variable with the same name as some node id --- IE always creates a top level (global) variable for every node id. Why the difference between IP vs. domain name? Different security settings. Find and eliminate the clash, and you should be good to go.

Please reopen this ticket only if you have a simple repro case.

Last edited 7 years ago by Eugene Lazutkin (previous) (diff)
Note: See TracTickets for help on using tickets.