Opened 14 years ago
Closed 14 years ago
#2753 closed defect (wontfix)
<div dojoAttachPoint="domNode"></div> mentioned in FAQ fails in bootstrap1.js
Reported by: | guest | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Dijit | Version: | 0.4.2 |
Keywords: | domNode dojo.widget.Parse bootstrap1 | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
The JotSpot FAQ mentions that dojoAttachPoint="domNode" can be used to get around leading comments in custom widget HTML templates. In practice on 0.4.2 this fails for me with a message like
DEBUG: dojo.widget.Parse: error: [TypeError: this.domNode.getElementsByTagName is not a function, file: http://mydevelopmentsystem:myport/js/dojo/src/bootstrap1.js, line: 780]
My template looks like
<!-- XXX Any leading HTML comments will break the template. --> <div class="requesterGroupTree" id="${this.widgetId}"> <div dojoType="dojo:TreeBasicControllerV3" id="${this.widgetId}_controller"> </div> <div dojoType="dojo:TreeSelectorV3" id="${this.widgetId}_selector"> </div> <div dojoType="dojo:TreeV3" id="${this.widgetId}_tree" listeners="${this.widgetId}_controller;${this.widgetId}_selector"> </div> </div>
Change History (1)
comment:1 Changed 14 years ago by
Component: | General → Dijit |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Hopefully that's not in the new FAQ... because not planning to support this in Dijit.