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
Thanks,
Michael
Type: | Discussion |
---|---|
Status: | New |
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
Michael
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
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
-Jordan