Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10881 closed enhancement (fixed)

parser support of bidi inheritance

Reported by: bill Owned by: bill
Priority: high Milestone: 1.5
Component: Dijit Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:


Add limited parser support for bidi inheritance, such that:

1) when parsing a document, a dir setting on a node (widget or otherwise) will propogate down and become an attribute passed to descendant widgets when they are instantiated

2) the closest ancestor wins (ex: a dir="ltr" on a <p> will override a dir="rtl" on <body>)

3) option to parser to specify default dir for instantiated widgets, so that ContentPane can say something like

    rootNode: this.containerNode, 
    dir: "rtl"

Note that this ticket intentionally doesn't address widgets created programatically, even if they are created with a srcNodeRef specified.

Also, changing the dir of a node after the widgets have been parsed is not supported; the effects are undefined.

See also #10880.

Change History (4)

comment:1 Changed 12 years ago by bill

(In [21609]) Enhance parser to track dir=ltr/rtl settings on nodes (with or without a dojoType setting), and propogate those settings down to descendant widgets when the widgets are constructed.

Refs #10402, #10881.

comment:2 Changed 12 years ago by bill

(In [21679]) specify lang on subnodes, so calendar show up in arabic, refs #10881

comment:3 Changed 12 years ago by bill

Resolution: fixed
Status: newclosed

comment:4 Changed 12 years ago by bill

(In [21762]) Tweak test so that programmatic creation matches declarative creation exactly (including dir attribute), to prevent spurious failure. Refs #10881.

Note: See TracTickets for help on using tickets.