Ignore value of the "name" attribute ("submit")

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

Ignore value of the "name" attribute ("submit")

Postby jgcordes » Fri Jan 14, 2011 7:59 pm

I have a form with lines like this:
<input type="image" src="cart.jpg" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
These generate a Warning* message in CSE (v10.01). I *think* I need to keep this exact syntax to keep PayPal happy. How can I tell CSE Validator to ignore these messages? I did look at right-clicking on the Warning message but it is still not obvious to me.

* The value of the "name" attribute ("submit") may conflict with properties of the JavaScript Form object when using JavaScript. It is recommended that the value of the "name" attribute be changed to avoid potential conflict when accessing the form object's properties, methods, and event handlers.

Thanks,
John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Ignore value of the "name" attribute ("submit")

Postby Albert Wiersch » Fri Jan 14, 2011 8:58 pm

Hi John,

The easiest thing to do would be to right-click on the message and choose Options for this Message->Disable using Exact Text Match. That will disable future messages that exactly match that message... other similar messages with the same message ID would not be disabled.

You may also want to consider changing the message type to just a "message" so it's not a warning... that way it will still show but won't be as serious.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Ignore value of the "name" attribute ("submit")

Postby jgcordes » Fri Jan 14, 2011 9:21 pm

Hi Albert,
Thanks. I had tried that disabling option and thought, when it didn't make the other warning messages on the screen all disappear that it wasn't sufficient. Stupidly I never thought to try another "F6" to re-do the validation check! *Now* I see that indeed those Warnings are all gone.
Pardon another novice question: what does message ID refer to?
John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Ignore value of the "name" attribute ("submit")

Postby jgcordes » Fri Jan 14, 2011 10:02 pm

Hi Albert,
Another followup question on the disabling of the Message using Exact Text Match. I have just been reading extensively in the Help pages, and prowling through the menus, but so far have not discovered how to re-enable those now disabled Warnings. I assume there is a simple, probably very obvious, answer?!
John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Ignore value of the "name" attribute ("submit")

Postby Albert Wiersch » Fri Jan 14, 2011 10:51 pm

jgcordes wrote:Pardon another novice question: what does message ID refer to?


Hi John,

Most messages have a unique message ID. Having that enabled the functionality like disabling the message or changing it type. Here is more information:
http://www.htmlvalidator.com/htmlval/v1 ... message_id
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Ignore value of the "name" attribute ("submit")

Postby Albert Wiersch » Fri Jan 14, 2011 10:59 pm

jgcordes wrote:Hi Albert,
Another followup question on the disabling of the Message using Exact Text Match. I have just been reading extensively in the Help pages, and prowling through the menus, but so far have not discovered how to re-enable those now disabled Warnings. I assume there is a simple, probably very obvious, answer?!
John


Hi John,

Yes, you can go to the Message Output->Message ID options page in the Validator Engine Options to see and edit the "message ID" customizations. Unfortunately, it looks like there may be a bug in v10.01 that is not showing the proper information. I will look into this.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Ignore value of the "name" attribute ("submit")

Postby Albert Wiersch » Sat Jan 15, 2011 9:47 am

Albert Wiersch wrote:Unfortunately, it looks like there may be a bug in v10.01 that is not showing the proper information. I will look into this.


I've now released v10.0110 which should fix this issue. Unfortunately the bug looks like it can corrupt your "message ID" config if you go to the Validator Engine->Message Output->Message ID options page in the Validator Engine Options and then press the OK button instead of the Cancel button to exit the Validator Engine Options dialog. This was serious enough to make me want to release the next update (v10.0110) sooner rather than later.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Ignore value of the "name" attribute ("submit")

Postby jgcordes » Sat Jan 15, 2011 10:05 am

Hi Albert,
Thanks for the responses. I had looked in the Message Output (under Validator Engine Options), and in that Message ID options section, last night but didn't see anything about how to re-enable the Warnings I had disabled using the Exact Text Match capability. I will get the update 10.011, but at the moment it's not clear to me that it deals with my issue.
John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Ignore value of the "name" attribute ("submit")

Postby Albert Wiersch » Sat Jan 15, 2011 10:19 am

jgcordes wrote:Hi Albert,
Thanks for the responses. I had looked in the Message Output (under Validator Engine Options), and in that Message ID options section, last night but didn't see anything about how to re-enable the Warnings I had disabled using the Exact Text Match capability. I will get the update 10.011, but at the moment it's not clear to me that it deals with my issue.
John


Hi John,

When you get the update and go back to that options page, you should see the message you disabled there. You can delete the entire row (which will re-enable the message and remove it from the message ID config file) or just select the row and set the "Disable message" checkbox according. Please let me know how it works. Thanks!
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Ignore value of the "name" attribute ("submit")

Postby jgcordes » Sat Jan 15, 2011 10:34 am

Hi Albert,
I had just posted a quick reply saying that 10.011 did fix my problem, but it seems to have crossed with yours and I don't see it on the list. So am repeating the statement now -- sorry to all if this ends up being a duplicate post.
Thanks,
John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Ignore value of the "name" attribute ("submit")

Postby Albert Wiersch » Sat Jan 15, 2011 1:32 pm

Hi John, no problem. I don't see a duplicate post but I do wonder what happened to it.

I'm glad the updated fixed the problem!
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest