W3C home > Mailing lists > Public > www-style@w3.org > June 2010

RE: [css21-selectors] Interpretation of attribute selector

From: Belov, Charles <Charles.Belov@sfmta.com>
Date: Wed, 2 Jun 2010 13:03:51 -0700
Message-ID: <E17F75B6E86AE842A57B4534F82D03769C29F2@MTAMAIL.muni.sfgov.org>
To: "Boris Zbarsky" <bzbarsky@MIT.EDU>
Cc: "www-style list" <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:28 GMT