Menu

#1 Patch to ensure EasyPlot XHTML validates

open
nobody
None
5
2007-05-08
2007-05-08
No

Hi!

I tried validating a page that uses the EasyPlot widget, and I noticed that the widget was causing 2 errors. <div> tags can't have width and height attributes; that information should be contained in the style attribute. Here's a quick fix.

Change this line:
<div id="${id}" style="margin: 0 auto 0 auto;" width="${width}" height="${height}"></div>

to:
<div id="${id}" style="margin: 0 auto 0 auto; width=${width}px; height=${height}px;"></div>

...and it will validate.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB