Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Dammark 581 posts 1385 karma points
    Feb 26, 2014 @ 16:06
    Sebastian Dammark
    0

    Hey Guys

    Link: http://validator.w3.org/check?uri=http://starterkit.teacommerce.net/frontpage/

    If I look at the output, each product have a few attributes like refreshwithtemplate, productid and itemprop.  Along with these there are some metatags and any of this doesn't validate.

    What is it used for, and can it be deleted ?

    It could be a solution swithching to HTML5 and prefix all the attributes with "data-" and do a little housecleaning.

    But I don't know if there any of the attributes that are vital for the functionality.

     

  • Bjarne Fyrstenborg 1281 posts 3991 karma points MVP 7x c-trib
    Feb 26, 2014 @ 23:04
    Bjarne Fyrstenborg
    0

    Hi Sebastian

    Actually I modified the document to HTML5 and use the data- attribute on http://www.lightair.dk/shop/ionflow/ to fix the validation issues and haven't noticed it should affect the functionality.. on the frontpage I can see that I have missed to change it for the product boxes I added later.

    At the linked page I only had a few validation problems with Facebook and with HTML5, some of the old styling on elements should be moved to css instead, like border attribute on e.g. table elements..

    I am not sure excactly how refreshwithtemplate and productid is used, but itempropitemscope and itemtype are for semantics markup: see more on http://schema.org

    /Bjarne

  • Anders Burla 2560 posts 8256 karma points
    Feb 27, 2014 @ 08:54
    Anders Burla
    0

    Hi Sebastian and Bjarne

    Thanks for notifying us about this and thanks for the answer Bjarne. The refreshwithtemplate and productid is used in the javascript code for the starter kit to easy update the UI when you change the variant in the dropdown for a product.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft