Opened 13 years ago

Closed 12 years ago

#2603 closed defect (fixed)

HTML inside a Widget is not copied to containerNode when using namespaces other than dojo

Reported by: guest Owned by: bill
Priority: high Milestone: 0.9beta
Component: Dijit Version: 0.4.1
Keywords: widget namespace DOM containerNode Cc:
Blocked By: Blocking:

Description

We tested this with the Memo example to be absolutely sure.

If we create the Memo within the default dojo namespace it works fine.

As soon as we move it to our own namespace, which is otherwise working fine, the "same" widget places its inner HTML just outside its own HTML.

A test case can be provided.

Regards,

Tom

(t dot weber at torweg dot org)

Attachments (1)

test-case.zip (5.8 KB) - added by guest 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by guest

Attachment: test-case.zip added

comment:1 Changed 13 years ago by alex

Milestone: 0.4.20.4.3

comment:2 Changed 12 years ago by Adam Peller

Component: GeneralDijit
Owner: changed from anonymous to bill

comment:3 Changed 12 years ago by bill

Milestone: 0.4.40.9beta
Resolution: fixed
Status: newclosed

I don't think this is an issue with dijit anymore, but also looking at your testcase I see some strange things.

  1. dojo/pulse/pulse.js

You've put the pulse directory under dojo; at least for 0.9, your own code shouldn't be in the dojo/ directory; it should be a sibling to that dojo/ directory. For 0.4 there were issues w/builds etc. about whether or not the source was directly under dojo or under dojo/src so it's more complicated.

And also, that file has strange provides:

dojo.provide("dojo.namespaces.pulse");
dojo.provide("pulse.widget");

There should only be one provide() call, which matches the directory location of the file. Neither of these provide calls matches the directory location.

Anyway, try this against 0.9 and reopen if there's still an issue.

Note: See TracTickets for help on using tickets.