const modName = "HTML";
const modVer = "2.0";
const conformTest = document.implementation.hasFeature(modName, modVer);
console.log(`DOM ${modName} ${modVer} supported?: ${conformTest}`);
// Log: "DOM HTML 2.0 supported?: true" (hasFeature always returns true)Document: implementation property / notebook
Document: implementation property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.