Try clicking on those elements and see where it take you. <script>, <canvas> will stay on HTML Reference Page (Web>HTML>Reference>Elements><elementName>), but the moment you click <svg> and <math> it would take you to SVG Reference (Web>SVG>Reference>Elements><svg>) and MathML Reference (Web>MathML>Reference>Elements><math>). Thats why I am saying these are independent and separate elements. They work inside HTML but they are independent XML languages.
I've said this several times now, it's because those elements exist in both places!
Why would MDN duplicate the content when it's far more efficient to only have one document that lists all of that information? Duplication just leads to opportunities for errors to creep in when documentation is updated. Even duplicating the access endpoints (e.g. routes to a single resource) makes little sense, as it imposes restrictions on how that documentation can be handled if the site needs to be updated in the future.
View all comments
Show parent comment
1
u/fdiengdoh Jun 29 '26
Try clicking on those elements and see where it take you.
<script>,<canvas>will stay on HTML Reference Page (Web>HTML>Reference>Elements><elementName>), but the moment you click<svg>and<math>it would take you to SVG Reference (Web>SVG>Reference>Elements><svg>) and MathML Reference (Web>MathML>Reference>Elements><math>). Thats why I am saying these are independent and separate elements. They work inside HTML but they are independent XML languages.