Opened 15 years ago

Closed 15 years ago

#2715 closed defect (wontfix)

TreeContextMenuV3 and TreeContextMenu cause parse errors when used in an xhtml document

Reported by: guest Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.1
Keywords: TreeContextMenuV3, XHTML Cc:
Blocked By: Blocking:


I have an html file with dojo widgets which is working great. However, when I convert this to xhtml, I am getting the following error

DEBUG: dojo.widget.Parse: error: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://localhost:8080/dojotrial/js/dojo/dojo.js Line: 321"] DEBUG: [object MouseEvent?]

The HTML file which works is

<html> <head></head> <body> <script type="text/javascript">

var djConfig = {isDebug: true };


<script type="text/javascript" src="js/dojo/dojo.js">

/* Load Dojo engine */


<script type="text/javascript">

dojo.require("dojo.widget.*"); dojo.require("dojo.widget.TreeV3"); dojo.require("dojo.widget.TreeBasicControllerV3"); dojo.require("dojo.widget.TreeDndControllerV3"); dojo.require("dojo.widget.TreeEmphasizeOnSelect?"); dojo.require("dojo.widget.TreeSelectorV3"); dojo.require("dojo.widget.TreeDeselectOnDblselect?"); dojo.require("dojo.widget.TreeContextMenuV3"); dojo.require("dojo.widget.TreeContextMenu?"); dojo.require("dojo.widget.TreeEditor?"); dojo.require("dojo.dnd.TreeDragAndDropV3"); dojo.hostenv.writeIncludes();


<div dojoType="TreeEditor?" widgetId="editor"></div> <div dojoType="TreeBasicControllerV3" widgetId="MyTreeController?" editor="editor"></div> <div dojoType="TreeSelectorV3" widgetId="selector"></div> <div dojoType="TreeEmphasizeOnSelect?" selector="selector"></div> <div dojoType="TreeDndControllerV3" controller="MyTreeController?" widgetId="dndcontroller"></div>

<div dojoType="TreeContextMenuV3" toggle="explode" contextMenuForWindow="false" widgetId="MyTreeMenu?">

<div dojoType="TreeMenuItemV3" caption="Rename" widgetId="ctxRename"></div>



<div dojoType="TreeV3" style="background-color:gray" expandLevel="2" DndMode?="between;onto" DndAcceptTypes?="firstTree" widgetId="firstTree" listeners="MyTreeController?;dndcontroller;selector;MyTreeMenu?">

<div dojoType="TreeNodeV3" widgetId="Item 1" title="Item 1">

<div dojoType="TreeNodeV3" widgetId="Item 1.1" title="Item 1.1"></div>


</div> </body> </html>

When I remove the line containing

< div dojoType ="TreeContextMenuV3" toggle = "explode" contextMenuForWindow = "false" widgetId = "MyTreeMenu?" > < div dojoType= "TreeMenuItemV3" caption ="Rename" widgetId = "ctxRename" ></ div > </ div>

The parse error disappears. TreeContextMenuV3 seems to be broken for xhtml.

Attachments (1)

treetest.xhtml (1.8 KB) - added by guest 15 years ago.
This is the xhtml file which throws the parse error

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by guest

Attachment: treetest.xhtml added

This is the xhtml file which throws the parse error

comment:1 Changed 15 years ago by bill

Resolution: wontfix
Status: newclosed

TreeContextMenu? is not supported as part of Dijit (have to hook normal Menu into your tree).

Note: See TracTickets for help on using tickets.