HTML5 element is being removed when switching between visual and text editor

I am using WordPress to code a site using hand-coded HTML, which I paste into the page editor of WordPress. But when I load that page using the built-in visual editor, tinyMCE is removing the <main> element from my markup and replaces it with &nbsp;

I’m familiar with users experiencing frustration with tinyMCE/WordPress injecting <p> elements or stripping empty tags, etc. But this one really stumps me. Any ideas?

Related posts

Leave a Reply

1 comment