Opened 11 years ago

Last modified 11 years ago

#9897 closed defect

Parser doesn't recognize parameters added after first widget instantiated — at Version 1

Reported by: bill Owned by: bill
Priority: high Milestone: 1.4
Component: Parser Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

This is an edge case, but this doesn't work:

  1. the parser parses a page with a ContentPane, thus caching the list of possible parameters for ContentPane:
    <div dojoType=dijit.layout.ContentPane>
  1. after the parse, there's a dojo.require("dijit.layout.BorderContainer"), or TabContainer, etc, some class that adds new parameters to _Widget:
    dojo.extend(dijit._Widget, {
    	// region: [const] String
    	//		"top", "bottom", "leading", "trailing", "left", "right", "center".
    	//		See the BorderContainer description for details on this parameter.
    	region: '',
  1. parser is called again, to parse another ContentPane (inside a BorderContainer) that passes the new parameters like region:
    <div dojoType=dijit.layout.ContentPane region=top>

The parser won't pick up the region parameter and thus the BorderContainer won't layout correctly.

I think this actually might be a common case for dojox.layout.ContentPane, when the href-loaded content does dojo.require() calls.

I'll check in a test case along with the fix.

Change History (1)

comment:1 Changed 11 years ago by bill

Description: modified (diff)
Note: See TracTickets for help on using tickets.