edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] tidy debug tree, and a js script
@ 2015-08-29 10:04 Karl Dahlke
  2015-08-29 13:25 ` Adam Thompson
  0 siblings, 1 reply; 12+ messages in thread
From: Karl Dahlke @ 2015-08-29 10:04 UTC (permalink / raw)
  To: Edbrowse-dev

Debug prints are in, and seem to work.
Thanks Kevin.

Here is my test page, that I was worried about.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title>jf test </title></head>
<body>
hello world
<script type=text/javascript>
document.writeln("This is <A href=http://edbrowse.org>our website</A>");
</script>
</body></html>

I browse with db6, there  is lots of js debugging,
I'll leave that out, here are the relevant lines.

line 7 column 67: '<' + '/' + letter not allowed here
Node(0): Text
Text: hello world 
Node(0): script
type = text/javascript
Node(1): Text
Text: document.writeln("This is &lt;A href=http://edbrowse.org&gt;our
website&lt;\/A&gt;");
#  end of tidy debug output, next stuff is ours
execute jf at 6
< side effects
w{This is <A href=http://edbrowse.org>our website</A>
`~@}
< ok
execution complete
docwrite 62 bytes
<<
This is <A href=http://edbrowse.org>our website</A>
>>
anchorSwap 4
anchors unframed
whitespace combined

Right off the bat I'm concerned becausee tidy shows an error
where there is no error.
It is trying to interpret the </a> tag in the string, in the script,
and it shouldn't be doing that at all.
Next I look at the text node under the script,
the text that is to be passed to the js engine, and it has been html escaped.
<a> is now &lt;a&gt;
Why?
That would totally screw things up.
Is it escaped and interpreted for the benefit of printing, for us,
or is it done by cleanup?
If the latter then we can't use tidy5 unless this is fixed.
This is a show stopper.
They can't be mucking with the contents of a js script at all.
In fact they shouldn't muck with the contents of any script.

Karl Dahlke

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-08-30 11:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-29 10:04 [Edbrowse-dev] tidy debug tree, and a js script Karl Dahlke
2015-08-29 13:25 ` Adam Thompson
2015-08-29 14:36   ` Karl Dahlke
2015-08-29 14:58     ` Adam Thompson
2015-08-29 16:05       ` Karl Dahlke
2015-08-30  1:15         ` Kevin Carhart
2015-08-30  8:26         ` Adam Thompson
2015-08-30  9:30           ` Adam Thompson
2015-08-30  9:49             ` Karl Dahlke
2015-08-30 10:02               ` Adam Thompson
2015-08-30 10:31                 ` Karl Dahlke
2015-08-30 11:16                   ` Adam Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).