Complete = "true" - empty alt tag

Complete = "true" - empty alt tag

by Heather P -
Number of replies: 3
Hi
we are trying to follow accessibility guidelines and use an empty alt tag where appropriate.
We have found that in the html editor if we are using Internet Explorer 8 then alt="" is replaced on saving to complete="true".
If we use FireFox then it just deletes the tag completely.

Does anyone know how to force these two browsers to accept an empty alt tag or does anybody know a different browser that we can use with Moodle to include an empty alt tag in the html editor.

Thanks
Incidentally we are on Moodle 1.9.5
Average of ratings: -
In reply to Heather P

Re: Complete = "true" - empty alt tag

by Mauno Korpelainen -

The problem is not in browsers - the problem is called HTMLArea, the default editor of moodle 1.9.

If you disable editor from your profile (When editing text - Use standard web forms) you can add empty alt tags just fine.

A workaround in HTMLArea is to use alt=" " (space as alt tag) or to modify htmlarea.php ... or change the whole editor to tinymce but that's a bigger issue. wink

In reply to Mauno Korpelainen

Re: Complete = "true" - empty alt tag

by Heather P -
Hi
just for info I have just discovered that if you use Safari web browser you can enter an empty alt tag but it does do something rather strange with html editor - you just get a box to type code into, no tools of any description so I'm guessing that that would pretty much be the equivalent of turning off the editor.
Thank you.
In reply to Heather P

Re: Complete = "true" - empty alt tag

by Mauno Korpelainen -

Yes, it's true - the code of HTMLArea was written so many years ago that all current browsers did not even exist and HTMLArea supports (is allowed to use) only Firefox and IE.

So without changing any settings you can use Safari, Opera or Chrome and you get only textarea like you would get if HTMLArea is disabled from user profile - and can add empty alt tags.