#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: |
Description
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
dojo.parser.parse({ 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 10 years ago by
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(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.