Changes between Initial Version and Version 1 of Ticket #7466


Ignore:
Timestamp:
Aug 18, 2008, 12:47:09 PM (11 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7466

    • Property Owner changed from anonymous to Becky Gibson
    • Property Component changed from General to Accessibility
  • Ticket #7466 – Description

    initial v1  
    44
    55Here is the code that fails:
    6 
    7         var cs = dojo.getComputedStyle(div);
    8         if(cs){
    9                 var bkImg = cs.backgroundImage;
    10                 var needsA11y = (cs.borderTopColor==cs.borderRightColor) || (bkImg != null && (bkImg == "none" || bkImg == "url(invalid-url:)" ));
    11                 dojo[needsA11y ? "addClass" : "removeClass"](dojo.body(), "dijit_a11y");
    12                 if(dojo.isIE){
    13                         div.outerHTML = "";             // prevent mixed-content warning, see http://support.microsoft.com/kb/925014
    14                 }else{
    15                         dojo.body().removeChild(div);
    16                 }
     6{{{
     7var cs = dojo.getComputedStyle(div);
     8if(cs){
     9        var bkImg = cs.backgroundImage;
     10        var needsA11y = (cs.borderTopColor==cs.borderRightColor) || (bkImg != null && (bkImg == "none" || bkImg == "url(invalid-url:)" ));
     11        dojo[needsA11y ? "addClass" : "removeClass"](dojo.body(), "dijit_a11y");
     12        if(dojo.isIE){
     13                div.outerHTML = "";             // prevent mixed-content warning, see http://support.microsoft.com/kb/925014
     14        }else{
     15                dojo.body().removeChild(div);
    1716        }
    18 
     17}
     18}}}
    1919The variable "needsA11y" is getting set to true and the <body> class has "dijit_a11y" appended to it.  That triggers major overrides in css - making our page unusable.
    2020