- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Tue, 20 Sep 2011 22:43:36 +0300
- To: Etienne Miret <etienne.miret@ens-lyon.org>
- CC: msanderz@att.net, www-validator@w3.org
20.9.2011 21:17, Etienne Miret wrote: > Sorry Jukka, but I think you’re wrong. The error you thought about triggers > the error message: “end tag for element "P" which is not open”. Only if the document is an XHTML document. If you take the script code that was posted, wrap it inside a <script> element and put that inside a minimal HTML 4.01 document, then you’ll get the error message described in the original posting. And this can be fixed the way I described. > msanderz, I think your issue is that you use XHTML but serve it as text/html. I don’t see any reason to think that XHTML is involved in any way. Just the opposite: as the error message described is what you get with HTML 4.01, then msanderz is most probably using HTML 4.01. (The Internet media type is not relevant here. If you wrap the code inside an XHTML 1.0 document, you get the “end tag for element "P" which is not open”, whether you serve it as text/html or as some XML media type.) > I recommend putting your Javascript in a separate file. That’s one option of course, though slightly inefficient if you have just a small piece of code. -- Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Tuesday, 20 September 2011 19:44:14 UTC