Saturday, 18 May 2019

Re: Something went wrong with the layout engine between 4630 and 4631

On Tue, 14 May 2019 at 21:18, David Higton <dave@davehigton.me.uk> wrote:
Hi guys,

Try http://www.bbc.co.uk/news/ with versions 4630 and 4631.  Notice a
big difference?  There certainly is with the RISC OS version, and I
somehow expect it to be platform-independent.

We now handle media queries, so, because your window is wide enough,
you're getting a desktop rendering of the site now, rather than the mobile
version.

Unfortunately the page does complicated stuff with JavaScript for no
apparent reason.  Line 502 of the page source has a

<script type="text/css" id="nw-c-navigation-enhanced-css">
...
</script>

section which actually contains CSS, rather than a script.

This CSS is needed to make the page get laid out correctly.

At line 504, there's an actual JavaScript script that extracts
the aforementioned script tag's CSS content and reinserts it
into the DOM as a style element.

NetSurf doesn't handle enough JavaScript to do all these
shenanigans yet.

Cheers,

Michael

No comments:

Post a Comment