Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2010
    Posts
    27
    Plugin Contributions
    0

    Default HTML5 slider on my homepage won't validate

    Hi,

    I installed a slider on my homepage that is HTML5, it won't validate on the w3c validator. I was wondering what the best way to get it to validate would be? If I change the doc type to html5 on the validator I only get errors that are related to the mainContentWrapper attributes being obsolete. Should I try to change the table attributes using css to style it and change the doc type? Could this cause problems down the road? Any help would be greatly appreciated, I've been stuck at this point for a while now.


    Thanks!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: HTML5 and Zen Cart

    You pose some very interesting questions :)

    First thing to remember is that the w3c validator (and others) only attempt to ensure that the page(s) are compliant to the standards for any given doc type. It says nothing about how the different browsers will render the site.

    From what you have posted, and assuming the page(s) display in all the browsers you've tried, then you probably have nothing to worry about, at least for the time being.

    If you change the attributes to make the pages html5 compliant and set the doc type to html5, then it'll pass the validation checks, but I suspect that some browsers will 'complain' or not render properly because they themselves are not yet html5 aware, and could possibly fall back to html1.1 (eek).

    On the other hand, having html5 elements on the page(s) and not declaring them by the doc type could cause problems to existing browsers simply because they don't know how to handle the html5 elements.

    In short, you are caught somewhere between a rock and a hard place :)

    Ultimately, all websites will need to be updated for html5 compliance, but whether it is worth doing it yourself now, or whether you'll be better off waiting another year to see how things have evolved is a matter of debate.

    Although it is 'nice' to have a site compliant with any given standard, I personally don't put much emphasis on them... Typically I'll only use them to help me find formatting errors (missing or badly formed tags, etc). Then regardless of any other compliance 'errors', I tend to ignore them and rely what I see with my own eyes when I view the site with several different web browsers. It'd be silly have a site with 100% compliance to a particular standard, if the browsers make a mess of things anyway.

    As I said, you posed some very good questions, and my response should be considered as personal opinion only, and not to be taken as an authoritive answer.

    Cheers
    Rod.

    "The nice thing about standards is that there are so many to choose from" - Andrew S. Tanenbaum

  3. #3
    Join Date
    Jun 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: HTML5 and Zen Cart

    Thanks Rod for your reply, you bring up some great points. I'm fairly new to the web programming, so I don't want to mess anything up. My site seems to be working great, and the search engine can read it so I'm happy. It would be nice to have my site validate just to pacify my OCD

 

 

Similar Threads

  1. ACoin Homepage Slider Support
    By brandonturpin in forum All Other Contributions/Addons
    Replies: 56
    Last Post: 7 Jun 2013, 04:51 PM
  2. Homepage slider & load issues
    By IAINMCG in forum General Questions
    Replies: 3
    Last Post: 20 Mar 2013, 12:02 AM
  3. homepage won't load
    By valentinez247 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 13 Apr 2010, 07:43 PM
  4. XML slider on homepage using iFrame
    By laavllc in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Feb 2010, 02:41 PM
  5. category links won't validate - help
    By defkiss in forum General Questions
    Replies: 4
    Last Post: 30 May 2007, 01:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR