Duplicate specification of attribute "border"

Permalink Browser Info Environment
I would like to buy that add-on, but i wonder how i can get rid of that duplicate border="0" in the output html code (as seen at the demo page), so that the page validates?
Thanks,
Michael

Type: Discussion
Status: New
okapi
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
Thanks for pointing that out -- I didn't realize it was doing that. I've just fixed the problem and updated the package.

-Jordan
okapi replied on at Permalink Reply
okapi
Thanks Jordan for your speedy reaction! I'm happy with your addon. Just a suggestion: wouldn't it be better to drop that border tag completely to provide XHTML 1.0 Strict validation?
Michael
jordanlev replied on at Permalink Reply
jordanlev
You're welcome. Thanks for purchasing the addon, and I'm glad you're happy with it.

Removing the border tag is kind of a tricky issue. Not having it results in an ugly blue border appearing around images in older versions of IE. Many developers (myself included) care more about how the page looks than if it validates (which is not to say I think it's a waste of time or wrong to care about validation -- just that validation has never been a requirement for the kinds of projects and clients I work with, and I think a majority of web developers are in that boat).

Another problem is that I'm using the built-in Concrete5 image helper to output the images, and it automatically includes the border attribute (that's actually why it was double-outputting before).

All that being said, there is a workaround for this -- you could create a custom template and replace the call to $html->image(...) with a straight-up <img> tag. If you would like any help with this let me know (or if you're not a coder at all I would be happy to provide this for you).

Cheers,
Jordan

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.