By Guest on Monday, 06 April 2015
Replies 6
Likes 0
Views 2K
Votes 0
Using JEvents v3.2.8 Stable

Getting this error message on the W3C Validator for HTML5:

 Line 939, Column 129: The width attribute on the table element is obsolete. Use CSS instead.
…ing="0" cellpadding="0" align="center"><tr><td class="m


Here is the full line #939
<table class="mod_events_latest_table" width="100%" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td class="mod_events_latest_first" style="border-color:#000066"><span class="mod_events_latest_date">Tue Apr 7</span> - All Day<br />


This should be an easy fix. Just remove the 'width' attribute and add a CSS declaration for ".mod_events_latest_table {width:100%;}".

I prefer to not make any changes to add-on's as trying to remember hacks on future updates is a pain.

Luke
Hello Luke,

That's on HTML5 exactly. But not all browsers are HTML5 compatible yet. So it does no harm in leaving the code there.

Many thanks
Tony
·
Tuesday, 07 April 2015 09:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Tony,

It's such an easy fix to incorporate with your next update. Why not go ahead and make it HTML5 compatible?

Luke
·
Tuesday, 07 April 2015 16:08
·
0 Likes
·
0 Votes
·
0 Comments
·
We will be changing the config options for the latest events module soon in version 3.2.x of JEvents to allow you to wrap the latest events rows exactly as you want them.
·
Tuesday, 07 April 2015 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Geraint,

I believe you misunderstand what I am saying. I have no issues with how the wrapping of rows is done. My issue is with HTML5 validation. Now if you answer is suppose to answer this, could you be a bit more clear?

FYI, I know Tony wasn't concerned as HTML5 is not 'fully' support by 'all' browsers but that is changing quickly. As you know, we have had HTML4 since the last 1990's so I would recommend being proactive to get on board with HTML5 compliance as it is not the future, it is now. Just my two cents.
·
Tuesday, 07 April 2015 16:52
·
0 Likes
·
0 Votes
·
0 Comments
·
What Geraint is saying is true.

He means we will not be using tables and so on. So being row's custom designed to be whatever standard you wish.

As we hard code this is, changing it to be customizable will do so by using the likes of DIV's..

Thanks
Tony
·
Tuesday, 07 April 2015 21:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Tony,

OK, that makes sense now. Can't wait as I'm working on validating over 80+ sites now. I try to stay on the cutting edge.

Luke
·
Tuesday, 07 April 2015 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post