Opened 10 years ago

Last modified 10 years ago

#11528 closed defect

[regression] font-family of TextBox becomes difficult to override in IE — at Initial Version

Reported by: Kenneth G. Franqueiro Owned by:
Priority: high Milestone: 1.5.1
Component: Dijit - Form Version: 1.5
Keywords: TextBox Cc:
Blocked By: Blocking:


In Dojo 1.5 (as of revision 21560), TextBox has its font-family style set inline on IE. This causes enormous potential for custom-CSS-clobbering regressions, especially in the case of TextBoxes constructed without srcNodeRef.

To summarize:

In cases where srcNodeRef is not specified, IE's default style will end up inlined, only overrideable by an !important rule.

In cases where srcNodeRef is specified, if the source node matches a selector having a font-family rule, it will be inlined. However, if the font-family is supplied on .dijitTextBox, it will be clobbered, since this class is added during _Widget's postCreate which is not called until AFTER the inlining is done by TextBox.

This is probably much more efficiently illustrated with an example, which I have uploaded. In this test page, any textbox whose font-family is not effectively monospace has failed the test. Please see the example's source for more details.

Change History (1)

Changed 10 years ago by Kenneth G. Franqueiro

Example of bug with test cases

Note: See TracTickets for help on using tickets.