RSS Browser Detection

Well, I don’t get it at all.

This is the BBC RSS feed ( http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml )

If you look at it in ie6, it seems to be compiled using a special stylesheet (nosol.xsl)

If you are viewing it in firefox or ie7, the default browser RSS styling is used.

I tried to do something similar to myself with this rss channel: http://www.bbusl.com/worksregion/4/rss.xml

It worked as planned on the Dev server. However, as soon as I put it on our production server, the ie6 stylesheet will appear when you view the rss channel in firefox!?!

How do I make the user style sheet display only in ie6? What is the difference that it worked like this on a dev server and not on a production server?

+3
source share
2 answers

I checked your channel through the W3C channel validator . I configured Firefox to use Fiddler as a proxy server to allow me to intercept and process the response sent by your server before it displays my browser.

It turns out that the stylesheet is applied due to the first validation error:

line 6, column 28: the link must be a full and valid URL: /worksregion/4/rss.xml [Help]

<link>/worksregion/4/rss.xml</link>
                            ^

URL- , RSS- Firefox, .

+5

script, , -.

-1

Source: https://habr.com/ru/post/1705245/


All Articles