Copy link to clipboard
Copied
Hi all,
I'm going through my website code and trying to fix any validation errors that are being flagged. See the following:
It is for the website http://www.whsfirstaidkits.com.au
The 4 errors relate to the shopping cart summary module that I have within my code. I am using the following: <div class="shopping-cart">{module_shoppingcartsummary,horizontal}</div> and BC converts that to: <div class="shopping-cart"><span id="catCartSummary" quote="False" vertical="False"><table cellspacing="0" class="cartSummaryTable"><tr><td class="cartSummaryItem">Shopping cart is empty.</td></tr></table></span></div>
Now the validator says that it is producing the following errors:
Attribute quote not allowed on element span at this point.
Attribute vertical not allowed on element span at this point.
Element table not allowed as child of element span in this context. (Suppressing further errors from this subtree.)
The cellspacing attribute on the table element is obsolete. Use CSS instead.
Since BC generates this code automatically, is there a way to fix this?
Cheers,
Jordan
Hi guys, Build your own layout for it:
module_shoppingcartsummary | Business Catalyst Developers - The module
Shopping cart summary | Business Catalyst Developers - The Cart layout
Copy link to clipboard
Copied
Same Here!
I have the same issue on a site I'm currently doing W3C checks for.
I tried changing document type to HTML5 from XHTML Transitional, but W3C checks failed on the same things regarding the .{module_shoppingcartsummary}
For comparison, I tested the Appliance King template for a page with the same shopping cart summary;
http://appliance-king-preview.businesscatalyst.com/lcd-tv
It too found the same W3C errors.
Copy link to clipboard
Copied
Hi guys, Build your own layout for it:
module_shoppingcartsummary | Business Catalyst Developers - The module
Shopping cart summary | Business Catalyst Developers - The Cart layout
Copy link to clipboard
Copied
Nice one Liam!
I learn something new every day!
Copy link to clipboard
Copied
Hi Liam,
Could you update these links please?
Thanks.
Copy link to clipboard
Copied
Done.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now