Warning about table width

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Warning about table width

Postby ajtruckle » Mon Mar 22, 2010 4:34 am

Hi

I get this message:

Consider using the "width" attribute with the "table" element. This is considered to be good style and can cause the table and page to render faster. Note that this is not a deprecated attribute in HTML 4.01 nor XHTML 1.0. It's also a valid XHTML 1.1 attribute.

...r your valued input concerning new features.</p><hr /><p>Please use the form below to contact me:</p><form action="emailProcessor.php" method="post"><table style="width: 100%"><tr><td style="width: 106px" valign="top">Name:</td><td><input name="txtFullName" size="50" tabindex="1" type="text"/></td></tr><...

Note that the width is specified in the style parameters so I am unsure why the warning was flagged.
ajtruckle
Rank II - Novice
Rank II - Novice
 
Posts: 41
Joined: Sat Feb 27, 2010 2:24 pm

Re: Warning about table width

Postby Albert Wiersch » Mon Mar 22, 2010 8:54 am

Thanks. That check does not check the contents of the "style" attribute. It only looks for the "width" attribute. I will look into improving this for a future version so that if the "style" attribute is used and it contains the "width" property then the message doesn't display.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Warning about table width

Postby Albert Wiersch » Wed Mar 24, 2010 11:36 am

Thanks for the suggestion. The next BETA of CSE HTML Validator should suppress the table width message if the "width" CSS property is used in the table's style attribute.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron