- From: Frank Ellermann <nobody@xyzzy.claranet.de>
- Date: Thu, 17 Apr 2008 07:03:44 +0200
- To: www-validator@w3.org
J.A. Verhoeven wrote: > Validating http://verhoeven-nl.eu/test/verhoeven/nl/formact.php > Error [70]: "end tag for X omitted, but OMITTAG NO was specified" That's not what I get, I get: | Line 38, Column 116: end tag for "div" omitted, but OMITTAG NO | was specified. Which is perfectly okay, it reflects what a browser "sees" as the source: [...] | <div id="left"> | <h2>O o p s ...</h2><p>U heeft geen achternaam ingevuld!</p> | <p>Klik om terug te gaan en je naam in te vullen.</p> (actually only two lines, I've split the second line). That is the end of what I get. There is a missing </div>, and that is what the validator gets, there is also a missing </body>, and a missing </html>. It is also what you get if you click on your own HTTP URL with any browser / curl / wget / whatever. > <div id="left"> > <?php > $voornaam = htmlspecialchars($_POST["voornaam"]); > $achternaam = htmlspecialchars($_POST["achternaam"]); [...] > if (!$achternaam) { > echo "<h2>O o p s ...</h2>"; > echo "<p>U heeft geen achternaam ingevuld!</p>"; > echo "<p>Klik om terug te gaan en je naam in te vullen.</p>"; > <!-- when adding this part the page will not validate and gives > strange results exit;}?> > --> Well, the </div></body></html> is missing, that's not strange, it is as it should be if you "exit" at this point. > Please can you tell if it's a bug in the validator You are not trying to validate the raw PHP source by file upload, or are you ? Don't try that, the validator is no PHP debugger. Frank
Received on Thursday, 17 April 2008 05:01:43 UTC