Closed racket-bug-submit closed 12 years ago
HTML is not XML. Xexprs represent XML, not HTML. When you use XML for HTML, it is not the XML that is incorrect, it is your use of it. In this case, you can give an empty string as the body of the tag: (textarea "") and the closing tag will be given, or use the empty-tag-shorthand export from XML. In fact, there is a FAQ entry on exactly this issue: http://docs.racket-lang.org/web-server/faq.html?q=faq#(part._.My_browser_displays_my_page_strangely__my_.C.S.S_is_ignored__sections_are_missing__etc_)
I think this response is 100% wrong. XML is *irrelevant* to modern
web development, and the web server should provide tools that are
useful to web developers, not tools that only appear to be useful, but
in fact cause subtle bugs. We should fix whatever is needed so that
people stop asking this FAQ.
On Fri, Jan 20, 2012 at 9:52 PM, jay@racket-lang.org wrote:
Class changed from "sw-bug" to "not-a-bug" by jay at Fri, 20 Jan 2012 21:52:13 -0500 Reason>>> HTML is not XML. Xexprs represent XML, not HTML. When you use XML for HTML, it is not the XML that is incorrect, it is your use of it. In this case, you can give an empty string as the body of the tag: (textarea "") and the closing tag will be given, or use the empty-tag-shorthand export from XML. In fact, there is a FAQ entry on exactly this issue: http://docs.racket-lang.org/web-server/faq.html?q=faq#(part._.My_browser_displays_my_page_strangely__my_.C.S.S_is_ignored__sections_are_missing__etc_)
State changed from "open" to "closed" by jay at Fri, 20 Jan 2012 21:52:13 -0500 Reason>>> Not a bug.
I second Sam's opinion here.
On Jan 21, 2012, at 8:51 AM, Sam Tobin-Hochstadt wrote:
I think this response is 100% wrong. XML is irrelevant to modern web development, and the web server should provide tools that are useful to web developers, not tools that only appear to be useful, but in fact cause subtle bugs. We should fix whatever is needed so that people stop asking this FAQ.
On Fri, Jan 20, 2012 at 9:52 PM, jay@racket-lang.org wrote:
Class changed from "sw-bug" to "not-a-bug" by jay at Fri, 20 Jan 2012 21:52:13 -0500 Reason>>> HTML is not XML. Xexprs represent XML, not HTML. When you use XML for HTML, it is not the XML that is incorrect, it is your use of it. In this case, you can give an empty string as the body of the tag: (textarea "") and the closing tag will be given, or use the empty-tag-shorthand export from XML. In fact, there is a FAQ entry on exactly this issue: http://docs.racket-lang.org/web-server/faq.html?q=faq#(part._.My_browser_displays_my_page_strangely__my_.C.S.S_is_ignored__sections_are_missing__etc_)
State changed from "open" to "closed" by jay at Fri, 20 Jan 2012 21:52:13 -0500 Reason>>> Not a bug.
sam th samth@ccs.neu.edu
--f46d042f91181ffbba04b70bc894
Content-Type: text/plain; charset=UTF-8
On Saturday, January 21, 2012, Sam Tobin-Hochstadt <samth@ccs.neu.edu>
wrote:
> I think this response is 100% wrong. XML is *irrelevant* to modern
> web development, and the web server should provide tools that are
> useful to web developers, not tools that only appear to be useful, but
> in fact cause subtle bugs. We should fix whatever is needed so that
> people stop asking this FAQ.
I think that it's more than that: IIRC, a textare is not one of the tags
that is allowed to be empty. (When I did the bindings for the
scribble/html language I went over the DTDs, and I made it always have a
closing tag.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!
--f46d042f91181ffbba04b70bc894
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Saturday, January 21, 2012, Sam Tobin-Hochstadt <<a href=3D"mailto:sa=
mth@ccs.neu.edu">samth@ccs.neu.edu</a>> wrote:<br>> I think this resp=
onse is 100% wrong. =C2=A0XML is *irrelevant* to modern<br>> web develop=
ment, and the web server should provide tools that are<br>
> useful to web developers, not tools that only appear to be useful, but=
<br>> in fact cause subtle bugs. =C2=A0We should fix whatever is needed =
so that<br>> people stop asking this FAQ.<br><br>I think that it's m=
ore than that: IIRC, a textare is not one of the tags that is allowed to be=
empty. =C2=A0(When I did the bindings for the scribble/html language I wen=
t over the DTDs, and I made it always have a closing tag.)<br>
<br>-- <br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((lambda (x) (x x)) (lambda (=
x) (x x)))=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Eli Barzilay:<br>=C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://www.bar=
zilay.org/">http://www.barzilay.org/</a>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0=C2=A0 Maze is Life!<br>
--f46d042f91181ffbba04b70bc894--
--Apple-Mail-4-962161085
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
The discussion has been taken off-line.
(As for the strictly technical sense, your reply is wrong. Please re-read Jay's response.)
On Jan 21, 2012, at 10:52 AM, Eli Barzilay wrote:
On Saturday, January 21, 2012, Sam Tobin-Hochstadt samth@ccs.neu.edu wrote:
I think this response is 100% wrong. XML is irrelevant to modern web development, and the web server should provide tools that are useful to web developers, not tools that only appear to be useful, but in fact cause subtle bugs. We should fix whatever is needed so that people stop asking this FAQ.
I think that it's more than that: IIRC, a textare is not one of the tags that is allowed to be empty. (When I did the bindings for the scribble/html language I went over the DTDs, and I made it always have a closing tag.)
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://www.barzilay.org/ Maze is Life!
--Apple-Mail-4-962161085
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
On Saturday, January 21, 2012, Sam Tobin-Hochstadt <samth@ccs.neu.edu> wrote:
> I think this response is 100% wrong. XML is _irrelevant_ to modern
> web development, and the web server should provide tools that are
> useful to web developers, not tools that only appear to be useful, but
> in fact cause subtle bugs. We should fix whatever is needed so that
> people stop asking this FAQ.
I think that it's more than that: IIRC, a textare is not one of the tags that is allowed to be empty. (When I did the bindings for the scribble/html language I went over the DTDs, and I made it always have a closing tag.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!
--Apple-Mail-4-962161085--
Originally submitted by Danny Yoo on: Fri Jan 20 18:20:01 -0500 2012
"
Write a program
"textarea is not supposed to be a self-terminating tag: most web browsers will not parse it as intended.
Release:
Environment:
This bug was converted from Gnats bug 12502.
[anon-submit; dyoo at hashcollision dot org]