fixes #2983 Dojo buttons not displaying properly in old versions of HTML...

... Pages

Fixed the issue and committed code for review, please check it. and this same issue is exists in master-2.3.1 also.