On Sat, Aug 29, 2015 at 10:36:09AM -0400, Karl Dahlke wrote:
> > If we want to print tidy warnings for local files fair enough,
> > but lets make it a user's choice,
> 
> We can come up with a better convention,
> similar to nojs and novs in the config file,
> I'm fine with that, we're just playing so to speak.
> But I'm not going to worry too much abount conventions
> until we know tidy5 is usable, which I'm not sure it is.
> 
> You're talking about what the specs say, I'm talking about
> what's on the internet that we have to honor.
> I'm sure I could find document.write with tags in it if I look around.

No, this just doesn't work in anyone's conforming implementation.
Apparently it's a difference between html and xhtml or something,
I'm not entirely sure.

> But ok, if you didn't like my last sample script then try this one.
> I know this is to spec.
> 
> <!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>
> if(3 < 4) alert("alls well");
> </script>
> </body></html>
> 
> Turn off js, we don't need it here, set db6, browse,
> and see that < is turned into &lt;.
> That would be a syntax error.
> Tidy is mucking withth the script.

Haven't ran the edbrowse test yet, but downloaded,compiled and installed tidy5
and ran your script through their executable.
The script came out perfectly fine (and yes I know tidy consumed the html
because it added the generator field). Not sure what we're doing differently.
I wonder if it's just a printing thing or something.

Cheers,
Adam.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to