- From: Grant, John A <jagrant@x1.nrcan.gc.ca>
- Date: Fri, 19 Mar 2004 19:24:18 -0500
- To: www-validator@w3.org
- Message-ID: <3E3C279AF3F9D411BAA00002A529150E070FEE50@s0-ott-x10.nrcan.gc.ca>
Hi, I created the test code below to illustrate my point. I understand that the error is caused by placing a structural element inside a non-structural element, i.e. <p> inside <font>...</font> (same goes for putting <p> inside <span>...</span>). However, the error message below doesn't make sense. It seems to imply that "<p>" is only allowed inside <applet>, <object>, <map>, <iframe> or <button> and I know that's not the information you're trying to convey. Would it be possible to improve the error reporting for this situation and say what you actually mean? Thanks. John A. Grant Radiation Geophysics Section ( http://gamma.nrcan.gc.ca/ <http://gamma.nrcan.gc.ca/> ) Geological Survey of Canada ( http://www.nrcan.gc.ca/gsc/ <http://www.nrcan.gc.ca/gsc/> ) (613) 992-1082 Below are the results of attempting to parse this document with an SGML parser. 1. Line 8 <http://validator.w3.org/check#line-8> , column 24: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <font color="#000000"><p></font> ^ Source Listing Below is the source input I used for this validation: line_1 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> line_2 2: <html> line_3 3: <head> line_4 4: <title>xxx</title> line_5 5: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> line_6 6: </head> line_7 7: <body> line_8 8: <font color="#000000"><p></font> line_9 9: </body> line_10 10: </html>
Received on Friday, 19 March 2004 19:50:45 UTC