RE: [css21-selectors] Interpretation of attribute selector

Boris Zbarsky [mailto:bzbarsky@MIT.EDU] on Wednesday, June 02, 2010
12:14 PM wrote:

>On 6/2/10 3:04 PM, Belov, Charles wrote:
>>>>>     p[style="text-align: justify;"],
>>> p[style="text-align:justify;"] {
>>>>>       text-align: left;
>>>>>     }
>> My bad. Unfortunately, that only fixes it for Firefox and Safari.
>> Internet Explorer 8 steadfastly remains justified.

>What does getAttribute return in IE8 for that attribute?

TEXT-ALIGN: justify

and

p[style="text-align: justify;"], p[style="text-align:justify;"],
p[style="TEXT-ALIGN: justify"] {
    text-align: left !important;
}

works in all three browsers.  

Please see http://www.sfmta.com/cms/testSelectorE.htm .

Thanks!

Charles Belov
SFMTA Webmaster

Received on Wednesday, 2 June 2010 21:41:22 UTC