I've also noticed that Obsidian hides text automatically inside of <div> or other HTML elements if they contain the property "markdown='1'", thereby blocking you from writing perfectly valid HTML inside of a Markdown file which was designed to be HTML-compatible.
Attributes dont need to be in the spec, if I add an attribute mycustomattr="xyz" and it changes how the document is rendered, that probably violates the HTML spec.