Discussion:
Page which doed not display properly
Richard Torrens (lists)
2018-03-08 11:11:06 UTC
Permalink
http://www.magheragenealogy.org/

Most of of the page's text does not display in Netsurf.

It is not a J/S thing. But the html is terrible to decipher!
--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
Tim Hill
2018-03-08 12:24:54 UTC
Permalink
Post by Richard Torrens (lists)
http://www.magheragenealogy.org/
Most of of the page's text does not display in Netsurf.
It is not a J/S thing. But the html is terrible to decipher!
It is. The >26 <script></script> tags would beg to differ.

The best result from a page like that?
Menu > Page > Export > Text
--
Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk
Richard Torrens (lists)
2018-03-08 12:58:34 UTC
Permalink
Post by Tim Hill
Post by Richard Torrens (lists)
http://www.magheragenealogy.org/
Most of of the page's text does not display in Netsurf.
It is not a J/S thing. But the html is terrible to decipher!
It is. The >26 <script></script> tags would beg to differ.
The best result from a page like that?
Menu > Page > Export > Text
I removed all "<script"**"/script>" bits with StrongED. - there are indeed
27!

The page still does not display properly - so as I said, it is not a J/S
thing!

And yes, there are various ways of readuing it!
--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
Tim Hill
2018-03-08 13:41:29 UTC
Permalink
In article <***@Torrens.org>, Richard Torrens (lists)
<***@Torrens.org> wrote:

[Snip]
Post by Richard Torrens (lists)
The page still does not display properly - so as I said, it is not a
J/S thing!
If you say so.
--
Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk
Jeremy Nicoll - ml netsurf
2018-03-08 13:55:36 UTC
Permalink
Post by Richard Torrens (lists)
Post by Tim Hill
Post by Richard Torrens (lists)
http://www.magheragenealogy.org/
Most of of the page's text does not display in Netsurf.
It is not a J/S thing. But the html is terrible to decipher!
It is. The >26 <script></script> tags would beg to differ.
Languages other than Javascript can implement script sections...
Post by Richard Torrens (lists)
I removed all "<script"**"/script>" bits with StrongED. - there are indeed
27!
The page still does not display properly - so as I said, it is not a J/S
thing!
That does not follow. Maybe the code you removed was essential... and
that
WOULD make it a script issue.
--
Jeremy Nicoll - my opinions are my own
Richard Torrens (lists)
2018-03-08 17:31:51 UTC
Permalink
Post by Jeremy Nicoll - ml netsurf
Post by Richard Torrens (lists)
The page still does not display properly - so as I said, it is not a J/S
thing!
That does not follow. Maybe the code you removed was essential... and
that WOULD make it a script issue.
If removing _all_ script from a page does not alter the way the page
displays, then the way it displays is nothing to do with the removed
script.

I would have thought that did not require explaining. Apologies for not
being clear enough.
--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
Tomasz Konojacki
2018-03-09 14:51:41 UTC
Permalink
On Thu, 08 Mar 2018 17:31:51 +0000 (GMT)
Post by Richard Torrens (lists)
If removing _all_ script from a page does not alter the way the page
displays, then the way it displays is nothing to do with the removed
script.
I would have thought that did not require explaining. Apologies for not
being clear enough.
It's completely not true. If the website relies on JS to display its
contents and that JS code doesn't work under NetSurf, removing it won't
change anything.

The only way to check whether it's a JS issue or not is to test the
website with a more capable browser (like Firefox or Chrome) with JS
disabled.

The page is completely blank on Opera with JS disabled which proves
that it *is* a JS issue.
Jim Nagel
2018-03-08 13:15:07 UTC
Permalink
Post by Tim Hill
Post by Richard Torrens (lists)
It is not a J/S thing. But the html is terrible to decipher!
It is. The >26 <script></script> tags would beg to differ.
Would be nice to add a colour for <script>... </script> to the HTML
mode in StrongEd so that JS would immediately jump out at you in a
page where "the html is terrible to decipher".

I think somebody is working to update that mode but I can't remember
who. Is it you, Tim?

Indeed, it'd be nice if the Netsurf toolbar were to include a graphic
that would light up to alert that a page contains Javascript. I have
often wished for a button that would switch Javascript on or off and
indicate the status (just a shortcut for iconbar choices > Content).

(Meanwhile my Netsurf "welcome" page does include Tim's welcome
workaround from 2016nov, to indicate Javascript on/off status.)
--
Jim Nagel www.archivemag.co.uk
Tim Hill
2018-03-08 14:24:14 UTC
Permalink
In article <***@6.abbeypress.net>, Jim Nagel
<***@abbeypress.co.uk> wrote:

[Snip]
Post by Jim Nagel
Would be nice to add a colour for <script>... </script> to the HTML
mode in StrongEd so that JS would immediately jump out at you in a
page where "the html is terrible to decipher".
A workaround - to make your own scripts stand out - is to put them in
HTML comments per ye olde stylee:

<script>
<!--
document.write("Happy Mother's Day!");
-->
</script>

With the luxury of a PC at my elbow, I tend to throw recalcitrant pages
at it rather than try and decipher them. WYSIWYG page design tools, such
as WordPress used to construct Richard's page or online tools such as Wix
often produce a mass of unformatted garbage; even though this page could
be created with a half-dozen DIVs, the 'info panel' and 'menu' both
require either CSS, JS or both that NetSurf cannot render.

Such a page also fails google's mobile test. Quelle surprise.
Post by Jim Nagel
I think somebody is working to update that mode but I can't remember
who. Is it you, Tim?
Not me, no, sorry.

T
--
Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk
Richard Torrens (lists)
2018-03-08 17:43:26 UTC
Permalink
Post by Tim Hill
With the luxury of a PC at my elbow, I tend to throw recalcitrant pages
at it rather than try and decipher them. WYSIWYG page design tools, such
as WordPress used to construct Richard's page
I woul point out that this Richard dos not use anything other than
StrongED!
--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
Richard Torrens (lists)
2018-03-08 17:41:48 UTC
Permalink
Post by Jim Nagel
Would be nice to add a colour for <script>... </script> to the HTML
mode in StrongEd so that JS would immediately jump out at you in a
page where "the html is terrible to decipher".
I think somebody is working to update that mode but I can't remember
who. Is it you, Tim?
Having got to grips with advanced Search and Replace, I have it in mind to
next get to grips with Modes. If so one thing I may well do is to update
the HTML mode.

But doing the script removal will highlight the scripts you are removing.
I have now written this up as an example:
http://stronged.torrens.org/man/search/examples/js.html
--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
Chris Newman
2018-03-09 23:49:02 UTC
Permalink
In article <***@6.abbeypress.net>,
Jim Nagel <***@abbeypress.co.uk> wrote:

<snip>
Post by Jim Nagel
(Meanwhile my Netsurf "welcome" page does include Tim's welcome
workaround from 2016nov, to indicate Javascript on/off status.)
Mine doesn't. Boo, hoo. More details, please.
--
Chris
Loading...