I strongly urge you to consider how the custom data attributes affect our ability to use the code view. If such data needs to be added for things to work on your end, they should be added
after
processing the page, and not rendered in the code view. The way it is implemented now adds undue complexity for your users to sort through your added code. It makes for a quite bad user experience.