On Apr 23, 2:12 pm, DuncanIdaho <Duncan.Idaho2...@googlemail.com>
wrote:
> I have the following in my stylesheet
>
[quoted text clipped - 10 lines]
>
> AJAX produces the following html
[snip]
> in Opera and Firefox the anchor with class 'leaf' is rendered in a
> smaller pink font (nice!) in IE it's rendered in the same sized light
> blue as other stuff in the navbody
>
> Are class selectors supposed to work when output is dynamically
> generated ? or is this another 'feature' of IE
Known problem with IE when elements are added to the DOM via scripting
(the fact that the content was fetched via AJAX is irrelevant, you can
see the same issue when adding it locally). You need to apply the
class via the className property _after_ the element has been inserted
into the DOM. I used to know the reason for this but it's slipped my
mind (must be getting old). Ask in an IE or JavaScript related group
for more details.
Steve
DuncanIdaho - 27 Apr 2008 09:18 GMT
> On Apr 23, 2:12 pm, DuncanIdaho <Duncan.Idaho2...@googlemail.com>
> wrote:
[quoted text clipped - 23 lines]
>
> Known problem with IE when elements are added to the DOM via scripting
OK, well I tried a javascript group with no luck, I've got a few ideas
though so I'll give them a try.
Thanks for taking the time to reply
Idaho