Skip to content

[Table] Remove deprecated attributes when pasting #2906

Open
@renow-luxembourg

Description

Feature Request

In French-speaking countries, for accessibility audit we use the RGAA accessibility guidelines, for the data tables attributes it's a little stricter than WCAG.

Is your feature request related to a problem? Please describe.
When a user copies/pastes a table element from Excel or Word, it comes with some deprecated and unwanted attributes (for example : align, cellpadding, cellspacing, etc.)
During accessibility audits, when encountering this type of content, the RGAA 10.1.2 test failed.
Test 10.1.2 translation: "On each web page, attributes used for information presentation must not be available in the generated source code. Has this rule been followed?"
The complete list of deprecated attributes can be found in the RGAA testing methodology

Describe the solution you'd like
The simplest solution will be to automatically remove these attributes when the user pastes the content.

Are there alternatives?
We can also develop a Rich Text Editor plugin that adds a button to the RTE toolbar. The action of this button will be to remove all the deprecated attributes.

Documentation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions