Refresh loses scrolling position on XML page rendered with XSLT

44 Views Asked by At

This is a publicly available webpage that can be used for testing. It is an XML page transformed into HTML by the browser via XSL transforms.

I noticed that Chrome browsers on MacOS loses the scrolling position on this page upon refreshing. This doesn't happen for plain HTML pages, such as if I use xsltproc to pre-render the page into HTML. It also doesn't happen on the XML page on iOS browsers.

What caused this behaviour difference? Is it a bug or a implementation decision? What can I do about it? I can use javascript to remember the scrolling position, as detailed in a number of SO posts. I can also just pre-render the page. But I would like to get to the cause of the matter to see if I'm doing anything wrong with the client-side XML rendering.

0

There are 0 best solutions below