- From: Kauker, Hubert <Hubert.Kauker@stinnes.de>
- Date: Thu, 9 Nov 2000 07:26:20 -0500 (EST)
- To: "'html-tidy@w3.org'" <html-tidy@w3.org>
Hello Dave. First of all, thank you for placing such a beautiful tool like Tidy into the public domain. What disturbs me, though, is that the third script from the following example, which is defined just outside the <body> of the document, is silently moved inside. Do you think that is ok? I have a few webpages where I'd rather prefer the scripts stayed where I put them to ensure they are executed after the body's onLoad event. To enhance readability, could not a blank line be generated in front of the opening <script> and after the closing </script> ? And how about indenting a script block? Of course, tidying inside the block is quite a different issue, which is not your concern. Now here's the text: INPUT: ----------------- <html> <head> <title>Tidy Test</title> <script type="text/javascript"> alert ("head") </script> </head> <body> <h2>This is a test.</h2> <h2>A script follows.</h2> <script type="text/javascript"> alert ("body") </script> <h2>That was our script.</h2> </body> <script type="text/javascript"> alert ("end") </script> </html> ----------------- OUTPUT: ----------------- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>Tidy Test</title> <script type="text/javascript"> alert ("head") </script> </head> <body> <h2>This is a test.</h2> <h2>A script follows.</h2> <script type="text/javascript"> alert ("body") </script> <h2>That was our script.</h2> <script type="text/javascript"> alert ("end") </script> </body> </html> ----------------- > Mit freundlichen Grüßen, > Hubert Kauker > > travel-BA.Sys GmbH & Co. KG > Backoffice- & AdministrationsSysteme > Alexanderstrasse 38 > D-45472 Mülheim an der Ruhr, Germany > www.travelbasys.de > > Telefon: +49 208 494 7360. Fax: +49 208 491587 > mailto:hubert.kauker@stinnes.de > > > > > Mit freundlichen Grüßen, > Hubert Kauker > > travel-BA.Sys GmbH & Co. KG > Backoffice- & AdministrationsSysteme > Alexanderstrasse 38 > D-45472 Mülheim an der Ruhr, Germany > www.travelbasys.de > > Telefon: +49 208 494 7360. Fax: +49 208 491587 > mailto:hubert.kauker@stinnes.de > >
Received on Saturday, 11 November 2000 04:35:35 UTC