Opened 12 years ago

Closed 12 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: rhys@…
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 12 years ago by bill

Component: GeneralDijit
Resolution: wontfix
Status: newclosed

Hopefully that's not in the new FAQ... because not planning to support this in Dijit.

Note: See TracTickets for help on using tickets.