MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / getRootElement

Function getRootElement

src/test/resources/libraries/bird/prototype.js:3077–3085  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3075 var B = Prototype.Browser, doc = document, element, property = {};
3076
3077 function getRootElement() {
3078 if (B.WebKit && !doc.evaluate)
3079 return document;
3080
3081 if (B.Opera && window.parseFloat(window.opera.version()) < 9.5)
3082 return document.body;
3083
3084 return document.documentElement;
3085 }
3086
3087 function define(D) {
3088 if (!element) element = getRootElement();

Callers 1

defineFunction · 0.70

Calls 1

parseFloatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…