possible bug?

For technical support for all editions of CSE HTML Validator. Includes bug reports.

possible bug?

Postby emulman » Sun Jan 16, 2011 7:34 am

Hello!

i am a happy user of CSE HTML validator Pro...but in the last version (10.0100) i have found something strange...i have a php page which with a lot of loops creates a lot of html form commands. but someone is wrong! to understand, i have lines like the following:

Code: Select all
foreach ($categRows as $categRow) {
                  if ($arr[1] < 3) {
                    $tab++; $ascii++;
                    $buttons = "\n              <input type=\"button\" value=\"S\" tabindex=\"" . $tab . "\" accesskey=\"" . htmlentities(chr($ascii)) . "\" title=\"show race details\" onclick=\"location.href='showRaceDetails.php?raceID=" . $categRow['ID_Race'] . "'\" />";
// etc


if i try to validate the HTML generated by CSE HTML i see strange errors like

The "type" attribute has an invalid attribute value "buton". The expected value is one of the following: "button", "checkbox", "color", "date", "datetime", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "textarea", "time", "url", or "week". (BUTON instead of BUTTON)

but for other BUTTON TAG parameters lke this:

The "tile" attribute is not valid for the "input" element (TILE instead of TITLE)

they are bugs? the generated page is quite big, about 40 KB..
emulman
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Sun Jan 16, 2011 7:25 am

Re: possible bug?

Postby Albert Wiersch » Sun Jan 16, 2011 8:19 am

Hello,

I'd like to try to reproduce this issue. Are you able to send that 40 KB document to me (via attachment) at support at htmlvalidator dot com or reply here and include the file as an attachment in your reply? If that document reproduces the problem, then I can use it to find out what's happening.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: possible bug?

Postby emulman » Sun Jan 16, 2011 9:41 am

ok, i have sent an attachment with the HTML generated and that strange errors! (extract the ZIP file)
Attachments
bug.zip
(4.99 KiB) Downloaded 178 times
emulman
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Sun Jan 16, 2011 7:25 am

Re: possible bug?

Postby emulman » Sun Jan 16, 2011 9:48 am

i have noticed that also a CAPTION tag in line 435 gives this error

The "caption" element must have an end tag (</caption>)

but the php code is correct

Code: Select all
echo "\n          <caption>" . $race->completeField(1, $race->recordExists("SELECT * FROM categories WHERE ID_Category = " . $row['Category'])) . "</caption>";


and it happens only for a few tags...buit is't annoying because of they doesn't allow to validate correctly these pages!
emulman
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Sun Jan 16, 2011 7:25 am

Re: possible bug?

Postby Albert Wiersch » Sun Jan 16, 2011 9:53 pm

Hello,

Thanks, I looked over the attached file and the error messages seem to be correct, so I'm not sure I understand the problem. Is the problem that bad HTML is being generated in the first place? If so, then the problem is probably somewhere in the script, but perhaps not where you are expecting it. Have you checked the script thoroughly?

If you are getting the HTML from running the script with the integrated web browser, and think that might be the problem (that the integrated web browser is not returning the correct HTML), then please let me know. This reminds me of a problem that came up awhile ago. I think it had something to do with security software interfering with the integrated web browser, if I remember correctly, so you might want to turn off your security software and see if that has any effect.

Line 360 (use of "buton"):
Code: Select all
              <input type="buton" value="S" tabindex="97" accesskey="�" title="show race details" onclick="location.href='showRaceDetails.php?raceID=10825'" />


Line 369 (use of "tile"):
Code: Select all
              <input type="button" value="M" tabindex="101" accesskey="�" tile="modify race data" onclick="location.href='modifyRaceData.php?raceID=10850'" />


Line 435 (improperly ended "caption"):
Code: Select all
          <caption>SCCA Trans-Am Championship over 2000cc<caption>
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: possible bug?

Postby emulman » Mon Jan 17, 2011 4:36 am

i have turned off all my security software, but nothing... i thought: directly from CSE HTML Validator enter this url to check:

http://www.racecarstory.org/NEW/eng/sho ... cuitType=2

i have also added the PHP page..check this! and the errors reported by CSE!!!

to notice i have turned on all the validate options (FULL)
Attachments
showRaceList.zip
(2.3 KiB) Downloaded 179 times
emulman
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Sun Jan 16, 2011 7:25 am

Re: possible bug?

Postby Albert Wiersch » Mon Jan 17, 2011 9:32 am

emulman wrote:i have turned off all my security software, but nothing... i thought: directly from CSE HTML Validator enter this url to check:

http://www.racecarstory.org/NEW/eng/sho ... cuitType=2

i have also added the PHP page..check this! and the errors reported by CSE!!!

to notice i have turned on all the validate options (FULL)


I opened the link you provided in "Open from the Web" and do not see the issues in question (although there are other problems).

This is strange but it may be reminiscent of strange problem someone had before where characters were being lost. What security software are you using? It may be that it has to be uninstalled to fix this problem as it may have buggy hooks into functions that are causing the problem, even when the checking is disabled.

If you have another computer you can try this on, does it work or does it do the same thing?
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: possible bug?

Postby Albert Wiersch » Mon Jan 17, 2011 10:04 am

UPDATE: It seems I am also getting dropped characters when I use Open from the Web, but the characters seem to be dropping in different places. I am going to investigate this further... it indeed could be a bug in CSE HTML Validator. I'll post back after I've had a chance to investigate it more fully. Please leave the page up if you can. Thanks!
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: possible bug?

Postby Albert Wiersch » Tue Jan 18, 2011 4:25 pm

emulman wrote:i have turned off all my security software, but nothing... i thought: directly from CSE HTML Validator enter this url to check:

http://www.racecarstory.org/NEW/eng/sho ... cuitType=2


Hello,

Are you still having this issue?

I was going to look into this issue further but your link is not returning what it use to so it is difficult to troubleshoot because I can't reproduce the problem. Is this temporary? Hope to have your link back and returning the same page. Thanks.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: possible bug?

Postby emulman » Wed Jan 19, 2011 5:34 am

it's really curious...i have checked that page but tehre are other wrong tags..reset for my pc, again check and again new tag errors!
emulman
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Sun Jan 16, 2011 7:25 am

Re: possible bug?

Postby Albert Wiersch » Wed Jan 19, 2011 12:44 pm

emulman wrote:it's really curious...i have checked that page but tehre are other wrong tags..reset for my pc, again check and again new tag errors!


Hello,

I have an idea what might be happening. I think it is an encoding issue. The charset is specified as "utf-8" so CSE HTML Validator tries to load it as UTF-8 but there are invalid characters/code points in there which may be causing the corruption when the file is loaded. I suspect that the accesskey values are being automatically generated and some are invalid - the ones past the point of the valid ones (shortly after accesskey="~" is generated). Can you fix this and see if it fixes the problem?
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: possible bug?

Postby emulman » Thu Jan 20, 2011 5:32 pm

EXACT! i have changed the charset in the tag META HTTP-EQUIV and there aren't no errors during the validation!
emulman
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Sun Jan 16, 2011 7:25 am

Re: possible bug?

Postby Albert Wiersch » Thu Jan 20, 2011 6:14 pm

emulman wrote:EXACT! i have changed the charset in the tag META HTTP-EQUIV and there aren't no errors during the validation!


Great! But you may still want to make sure that valid accesskey values are being generated.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests