TinyMCE and XHTML validator
This is interesting:
TinyMCE is forcing the presence (inserting it) of the border attribute (for the img HTML element) even though it is not a valid XHTML code.
XHTML Validator fails to validate this piece of code:
img title="Assistance for Travellers" alt="Assistance for Travellers" src="/images/travel_s.jpg" border="0"
However, it is impossible to remove the border attribute from the DCR. We have tried to remove it through 'HTML source' means without success.
After this (border) attribute gets remove from HTML source, TinyMCE puts it back in (on 'Update' of HTML).
We tried to fix the problem (to instruct TinyMCE to stop inserting this tag by editing this config file:
X:\iw-home\httpd\iw\tinymce\jscripts\tiny_mce\tiny_mce_src.js
this.defParam("valid_elements", "+a[name|href|target|title|class],strong/b[class],em/i[class],strike[class],u[class],+p[dir|class|align],ol,ul,li,br,img[class|src|border=0|alt|title|hspace|vspace|width|height|align],sub,sup,blockquote[dir|style],table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[dir|class|colspan|rowspan|width|height|align|valign],div[dir|class|align],span[class|align],pre[class|align],address[class|align],h1[dir|class|align],h2[dir|class|align],h3[dir|class|align],h4[dir|class|align],h5[dir|class|align],h6[dir|class|align],hr");
We removed 'border=0' from above configuration setting - however, it didn't help (the border attribute still gets inserted into HTML).
Has anybody faced similar issues?