code-syntax-block icon indicating copy to clipboard operation
code-syntax-block copied to clipboard

Accessibility fix, switch attribute from "lang" to "data-lang"

Open mkaz opened this issue 5 years ago • 1 comments

  • Uses commits from @CarlosLongarela that change the attributs.
  • Adds a deprecated property to the block

IN PROGRESS

This PR does not work as expected, if using an older block with the "lang" attribute, the deprecation does not get run and the attribute does not get read or converted properly.

To test:

  • Create a post with the trunk version of the block, add a code block with language
  • Apply the PR, and rebuild
  • Open the post in the Editor and the block is invalidated

mkaz avatar Sep 07 '20 15:09 mkaz

I've determined the cause of why this deprecation is not working and filed a ticket at: https://github.com/WordPress/gutenberg/issues/33672

mkaz avatar Jul 24 '21 16:07 mkaz