MantisBT - NetSurf
View Issue Details
0001825NetSurf[All Projects] Generalpublic2007-04-24 18:182009-02-20 15:29
ReporterSourceforge Import placeholder 
Assigned ToSourceforge Import placeholder 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0001825: Not ignoring Javascript correctly?
DescriptionUsing NetSurf test build 20 Apr 2007 19:15

When you visit the URL http://www.x-cosmos.it/cropcircles/ all you get is a completely blank page.

Having looked at the source code to the page, there are some embedded document.write('html') and 'body' tags inside a <script>...</script> porttion (from line 18 in the source code onwards).

It looks like NetSurf is seeing these tags and somehow interpreting them to (falsely) believe there is no content between the <body>...</body> tags.

Surely NS should ignore everything from <script> until </script>?
If you manually delete this section of Javascript, then the page starts to render (still not correctly, but that's probably due to other javascript) but at least you can see the main body etc.

regards,
Paul Vigay
nospam (at) vigay.com
Additional Informationnobody added a note on Wed Apr 25 19:04:13 2007

Logged In: NO

Officially the script ends at the first ETAGO so the script is wrong, and the three occurences should be escaped. It probably works in other browsers as the page will use quirks mode (no DOCTYPE).

http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.2.1

john


rjek added a note on Tue Apr 24 18:53:37 2007

Logged In: YES
user_id=893271
Originator: NO

My understanding is that UAs should ignore tags that they don't understand, but render their contents as if there tags where not there. This is why people often use HTML comments to hide the contents of their <script> tags.

This will need somebody who is more well-read in the spec than I to decide, however.

Imported from sourceforge bug http://sourceforge.net/support/tracker.php?aid=1706778 on Tue Dec 10 17:34:13 2013

TagsNo tags attached.
Attached Files

There are no notes attached to this issue.

Issue History
2013-12-10 17:41Vincent SandersNew Issue
2013-12-10 17:41Vincent SandersAssigned To => Sourceforge Import placeholder