xiverisx Posted August 9, 2010 Share Posted August 9, 2010 Hi everyone, i need valid HTML code, and in my site there is one error:there is no attribute "border"What should i do, to remove border attribute, from img tag? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 9, 2010 Share Posted August 9, 2010 border is a valid img attribute, what validator are you using and what HTML are you validating? Link to comment Share on other sites More sharing options...
xiverisx Posted August 9, 2010 Author Share Posted August 9, 2010 In some html doctype's it is, but in xhtml strict ir is depracated:http://www.w3schools.com/tags/tag_img.asp"Deprecated. Use styles instead.Specifies the width of the border around an image"So anyone knows how to solve my problem? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 9, 2010 Share Posted August 9, 2010 As I asked, WHAT HTML are you having problems validating? Link to comment Share on other sites More sharing options...
xiverisx Posted August 9, 2010 Author Share Posted August 9, 2010 I can't delete the border="0" attribute in img TAGExample:TinyMCE automatic render's img taf with border attribute, and i don't know how to remove it.All this causes not valid html: Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 9, 2010 Share Posted August 9, 2010 That still does not tell me where the HTML is coming from. Link to comment Share on other sites More sharing options...
xiverisx Posted August 9, 2010 Author Share Posted August 9, 2010 i am using this module:http://www.prestashop.com/forums/viewthread/16918/third_party_modules/module_2packcolumneditorTo create text-image info block in the columnThis module using TinyMCE and when i am inserting img, but TineMCE adds that atribute. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 9, 2010 Share Posted August 9, 2010 Explain more what you are doing. I have never used that module. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 9, 2010 Share Posted August 9, 2010 Try editing this line in lefteditorial.php: extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]" make the stuff for the img class look like this: img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name] Link to comment Share on other sites More sharing options...
xiverisx Posted August 10, 2010 Author Share Posted August 10, 2010 Thanks it worked Link to comment Share on other sites More sharing options...
Recommended Posts