Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] Remove deprecated attributes when pasting #2906

Open
renow-luxembourg opened this issue Jan 7, 2025 · 0 comments
Open

[Table] Remove deprecated attributes when pasting #2906

renow-luxembourg opened this issue Jan 7, 2025 · 0 comments

Comments

@renow-luxembourg
Copy link
Contributor

renow-luxembourg commented Jan 7, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant