Issue Details (XML | Word | Printable)

Key: MDL-9230
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Sean Keogh
Votes: 10
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

The moodle html editor is still using font tags rather than styles, which breaks accessibility testing.

Created: 06/Apr/07 03:05 AM   Updated: 02/Mar/10 10:32 PM
Component/s: Accessibility, Filters
Affects Version/s: 1.8.11, 1.9.7
Fix Version/s: None

Environment: Moodle 1.8 (original first release) on Centos Linux 4.4 with PHP 5.1.6 and MySQL 5.0.20
Issue Links:
Duplicate
 

Database: Any
Participants: Eloy Lafuente (stronk7), Martin Dougiamas, Michael Spall and Sean Keogh
Security Level: None
Difficulty: Easy
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
A client reports that the editor is still creating html that uses <font> tags - this breaks the accessibility compliance. Any thoughts?

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Michael Spall added a comment - 08/May/07 10:55 PM
This also causes problems if you want to use the Moodle Tidy Filter in 1.8 because the font tags are stripped out by the Tidy filter.

Eloy Lafuente (stronk7) added a comment - 02/Mar/10 10:32 PM
Updated versions and pasted from recent duplicate of this (MDL-21743):

Hi all,

main problem here is that the tidy filter is aimed to produce correct XHTML results and FONT tags aren't allowed there, hence the default setting defined to drop them. And there are a bunch of Moodle installations requiring that, so we cannot, simply, change current behavior.

Perhaps it would be more interesting to, alternatively:

1) Allow configuration of the filter, so ppl can decide (using current settings as default).
2) Instead of setting it to "no", perhaps enabling the "clean" option could be interesting, as far as it uses to convert those tags into proper css styles/rules. Note I haven't tested it, just read the documentation at: http://tidy.sourceforge.net/docs/quickref.html#clean

Sounds easily achievable IMO, ciao