MCPcopy Create free account
hub / github.com/prototypejs/prototype / extend_IE8

Function extend_IE8

src/prototype/dom/dom.js:3271–3282  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3269 // of Element.extend that acts like Prototype.K _except_ when the element
3270 // is one of the problematic types.
3271 function extend_IE8(element) {
3272 if (!element || elementIsExtended(element)) return element;
3273
3274 var t = element.tagName;
3275 if (t && (/^(?:object|applet|embed)$/i.test(t))) {
3276 extendElementWith(element, Element.Methods);
3277 extendElementWith(element, Element.Methods.Simulated);
3278 extendElementWith(element, Element.Methods.ByTag[t.toUpperCase()]);
3279 }
3280
3281 return element;
3282 }
3283
3284 // If the browser lets us extend specific elements, we can replace `extend`
3285 // with a thinner version (or, ideally, an empty version).

Callers

nothing calls this directly

Calls 2

elementIsExtendedFunction · 0.85
extendElementWithFunction · 0.85

Tested by

no test coverage detected