#1097 closed defect (duplicate)
Setting <body onload="function"> prevents dojo from loading
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Core | Version: | 0.3 |
Keywords: | body onload init | Cc: | |
Blocked By: | Blocking: |
Description
<body onload="function"> is often used to run init code when page is loaded. I know there's dojo.addOnLoad
, but still... Setting <body onload> shouldn't prevent dojo from working correctly. This goes against usability (it's too easy to break the dojo and not even realize why it's broken).
There are methods like addEventListener
to prevent possible conflicting situations like this.
Change History (4)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Thanks for looking into it. Shouldn't dojo documentation at least state that this is the problem until a solution is implemented?
Note: See
TracTickets for help on using
tickets.
We realize that this is a problem, but the solutions are not nearly as straightforward as you suggest.