- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 27 Aug 2007 03:03:08 +0000
- To: www-validator-cvs@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4987
Summary: XHTML 1.0 Validator is inserting a hidden input tag,
leading to validation failure.
Product: AppC Checker
Version: unspecified
Platform: All
URL: http://econtriver.com/__BUG.php
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: dave.null@w3.org
ReportedBy: nik.cimino@gmail.com
QAContact: www-validator-cvs@w3.org
http://econtriver.com/__BUG.php
I left this page up so you guys can see what is going on. If you navigate to
the preceding page and then click the W3C XHTML 1.0 Validation image at the
bottom of the page you will see the page fail validation with the following
error:
Error Line 79, Column 137: document type does not allow element "input" here;
missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",
"address", "fieldset", "ins", "del" start-tag.
…="599ab6265110b0945f8d988711904fb0" />
The previous line of code that was triggering the error is not in my HTML, so I
had the validator show the source code it was checking and found the following:
78# <!-- SiteSearch Google -->
79# <form method="get" action="http://www.google.com/search"><input
type="hidden" name="PHPSESSID" value="8432a3c5def875fae677d8d0b27dfc8c" />
80# <p class="search_para">
If you go to the actual page and view source code, then you will see:
78#<!-- SiteSearch Google -->
79#<form method="get" action="http://www.google.com/search">
80# <p class="search_para">
The validator added the PHPSESSID to my code when checking it. This error
indicates my code is failing, when it is actually correct.
Please let me know when you have the information you need, so that I can take
down that BUG page.
This is from PHP source code:
<?php
session_start();
echo '<?xml version="1.0" encoding="utf-8" ?';
echo '>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
____The remaining portion of the PHP source code is just the remainder of the
HTML page.
Received on Monday, 27 August 2007 03:03:13 UTC