Sha256: c6583745403773b7de1ab6fd936a25eed0774dc0f98cdaf1115ce5dca3194179
Contents?: true
Size: 850 Bytes
Versions: 144
Compression:
Stored size: 850 Bytes
Contents
// MathML // http://www.w3.org/Math/ // By Addy Osmani // Based on work by Davide (@dpvc) and David (@davidcarlisle) // in https://github.com/mathjax/MathJax/issues/182 Modernizr.addTest('mathml', function(){ var hasMathML = false; if ( document.createElementNS ) { var ns = "http://www.w3.org/1998/Math/MathML", div = document.createElement("div"); div.style.position = "absolute"; var mfrac = div.appendChild(document.createElementNS(ns,"math")) .appendChild(document.createElementNS(ns,"mfrac")); mfrac.appendChild(document.createElementNS(ns,"mi")) .appendChild(document.createTextNode("xx")); mfrac.appendChild(document.createElementNS(ns,"mi")) .appendChild(document.createTextNode("yy")); document.body.appendChild(div); hasMathML = div.offsetHeight > div.offsetWidth; } return hasMathML; });
Version data entries
144 entries across 144 versions & 7 rubygems