From gnp at freemail.gr Thu Mar 8 21:32:10 2007 From: gnp at freemail.gr (Giorgos Pontikakis) Date: Thu, 8 Mar 2007 23:32:10 +0200 Subject: [cl-who-devel] script tag Message-ID: <200703082332.10979.gnp@freemail.gr> Hello, I think I found a bug in cl-who. The following sample code: (defun script-bug () (with-html-output-to-string (*standard-output* nil :indent t) (:html (:head (:script :src "/myscript.js" :type "text/javascript")) (:body (:p "Some text") (:script :type "text/javascript" "alert(5);"))))) gives: " " The first script tag is not closed properly. It should be: If I get this right, this happens because there are no must not be omitted even in this case. This seems to prevent correct parsing of the document. Cheers, Giorgos From edi at agharta.de Thu Mar 8 22:00:20 2007 From: edi at agharta.de (Edi Weitz) Date: Thu, 08 Mar 2007 23:00:20 +0100 Subject: [cl-who-devel] script tag In-Reply-To: <200703082332.10979.gnp@freemail.gr> (Giorgos Pontikakis's message of "Thu, 8 Mar 2007 23:32:10 +0200") References: <200703082332.10979.gnp@freemail.gr> Message-ID: Hi, On Thu, 8 Mar 2007 23:32:10 +0200, Giorgos Pontikakis wrote: > I think I found a bug in cl-who. The following sample code: > > (defun script-bug () > (with-html-output-to-string (*standard-output* nil :indent t) > (:html > (:head > (:script :src "/myscript.js" :type "text/javascript")) > (:body > (:p "Some text") > (:script :type "text/javascript" "alert(5);"))))) > > gives: > > " > > > > > " > > > The first script tag is not closed properly. It should be: > > > If I get this right, this happens because there are no must not be omitted even in this > case. This seems to prevent correct parsing of the document. The tag /is/ closed correctly. Note that there's a difference between > > > > " > > > > > > The first script tag is not closed properly. It should be: > > > > > > If I get this right, this happens because there are no must not be omitted even in this > > case. This seems to prevent correct parsing of the document. > > The tag /is/ closed correctly. Note that there's a difference between > >