essepuntato / rash

Research Articles in Simplified HTML (RASH) Framework includes a markup language defined as a subset of HTML+RDF for writing scientific articles, and related tools to convert it into different formats, to extract data from it, etc.
https://w3id.org/people/essepuntato/papers/rash-peerj2016.html
ISC License
82 stars 24 forks source link

HTML5 and namespace for MathML #24

Closed essepuntato closed 9 years ago

essepuntato commented 9 years ago

In HTML, have mathml:math to be associated with the related namespace declaration? See http://www.w3.org/TR/html5-diff/#syntax

sideshowbarker commented 9 years ago

Per http://www.w3.org/TR/html/syntax.html#parsing when an HTML parser encounters a start tag whose name is math it inserts an math element into the DOM in the MathML namespace. So the entire subtree of that element then also automatically gets put into the MathML namespace.

Similarly for any svg start tag; the HTML parser puts it into the DOM in the SVG namespace.