HTML Validation

Hi i trying to validate opencart. And always get error because of extensions. The problem my extension using a lot of attributes which is not part of w3c standart. For example

<select onchange="recalculateprice();" name="option[232]">
            <option price="0.0" price_prefix="+" value=""> --- Please Select --- </option>
                        <option rel-hoverimage="!" price="0.0000" price_prefix="+" points="0" value="32" disabled="disabled">White
        
           - out of stock         
      
                        </option>
                        <option rel-hoverimage="!" price="0.0000" price_prefix="+" points="0" value="33">Yellow
        
           - 2 pcs         
      
                        </option>
                        <option rel-hoverimage="!" price="0.0000" price_prefix="+" points="0" value="36">Rose
        
           - 3 pcs         
      
                        </option>
                        <option rel-hoverimage="!" price="0.0000" price_prefix="+" points="0" value="37">Black PVD
        
           - 7 pcs         
      
                        </option>
                      </select>

Open in new window


So i searching for some way how i can fix it and do not rewrite module from scratch.
LVL 1
umaximAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

umaximAuthor Commented:
More Example
<select onchange="recalculateprice();" name="option[227]">
            <option price="0.0" price_prefix="+" value=""> --- Please Select --- </option>
                        <option rel-hoverimage="!" price="0.0000" price_prefix="+" points="0" value="17">10K Gold
        
           - 1 pcs         
      
                        </option>
                        <option rel-hoverimage="!" price="600.0000" price_prefix="+" points="0" value="18">14K Gold
        
           - 1 pcs         
      
                        
        
          (+$600.00)        
      
                        </option>
                        <option rel-hoverimage="!" price="8000.0000" price_prefix="+" points="0" value="31">18K Gold
        
           - 3 pcs         
      
                        
        
          (+$8,000.00)        
      
                        </option>
                      </select>

Open in new window

0
Chris StanyonWebDevCommented:
Simple answer - don't worry about it.

If you really are concerned about validation, then drop any extension then doesn't validate. If you want to keep the extensions, then forget about validation. There's not really a lot else you can do.
0
GaryCommented:
There is no point you trying to go through all the HTML trying to make it valid, because then you will have to go through all the other files js etc and change everything there.
And guaranteed you will mess something up and then you will be screwed.

Contact the authors and tell them to make their code compliant.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

umaximAuthor Commented:
i am web developer i can fix it by my self but i just trying to find maybe w3c have some exception for validation custom attributes.
0
GaryCommented:
And what happens when there is a bug fix or a security hole is found, you will have to update the plugin and then go through it all again.
You are wasting your time.
If the only errors are custom attributes then do not worry about it - its a minor thing in the grand scheme.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Chris StanyonWebDevCommented:
The plugins should be storing the arbitrary information inside data attributes if you have an HTML5 DOCTYPE!

You may not have liked my answer, but it was the right one!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.