No abbreviation in IE6

Hi,
I've just found out that abbreviations (<abbr>) cannot be added in IE6 using the WYSIWYG button. I'm just curious: why is that? Could it be developed?



Given that the WYSIWYG is able to insert Matrix keywords, couldn't the same system be used to insert tags unsupported by IE?

Matrix keywords are not HTML tags, and thus the WYSIWYG doesn't do anything "special" with them. However, IE will strip an unknown tag automatically when in edit mode, so when the popup tries to add the <ABBR> tag to the code, IE strips it.


Therefore, I just wrote it so that IE is blocked from adding the <ABBR> tag with the pop-up. You can still add it in Code View, though (IIRC).



You could add this as a feature request, or chose to fund the development of this change yourself. :slight_smile:


I initially attempted a work-around of having the accessibility.inc file enter in a tag such as

    var html = '' + inside_html + '';

then use html tidy to replace with the correct code... however even this was not inserted into the editor with IE either...

even if it could the same problem may exist when html tidy cleans up the code?

I've just noticed that one of our environments with the same install of v3.12.0 is not having this problem… I will look at any possible differences between the two environments. Anyone else notice this is not a problem with IE 6 or 7?

I'm ashamed to admit I've spent way to much time trying to create yet another internet explorer hack to get this to work… mainly because the plugin is called 'accessibility' so didn't want to rule out ie users…


Here is the code that will make it work for ie:

          if (HTMLArea.is_gecko) {
         	 editor.insertHTML(html, range);
          } else {
         	 // in ie so create a dummy abbr element for the dom
         	 var doot = document.createElement('ABBR');
         	 range.pasteHTML(html);
          }


I believe that ie does not have the abbr in its dom... therefore when a dummy abbr element is created - AND NEVER ACTUALLY USE IT! ie now has it in it's dom and recognizes the tag... hay thats my guess :P

I have tested this in ie 6 & 7 with consistent success. I'm now thinking that I may do a quick check for ie at the top of an include (why not this one?) and create the dummy abbr element anyway... any feedback would be kewl :D

I curse the non standards compliant internet explorer!!

If you have a working patch to fix the problem, submit a bug report with the patch and we'll test it out and include it in the next version of Matrix.


Thanks for your work on this issue.