{"aliases":["default"],"browsers":{"android":"*","bb":"*","chrome":"*","firefox":"3.6 - *","ios_chr":"*","ios_saf":"*","ie":"6 - *","ie_mob":"10 - *","opera":"*","op_mini":"*","safari":"4 - *","firefox_mob":"3.6 - *"},"dependencies":["Document","Element","Text","_mutation"],"spec":"http://dom.spec.whatwg.org/#dom-childnode-before","baseDir":"Element/prototype/before","hasTests":true,"rawSource":"\n// Element.prototype.before\nDocument.prototype.before = Element.prototype.before = function before() {\n\tif (this.parentNode) {\n\t\tthis.parentNode.insertBefore(_mutation(arguments), this);\n\t}\n};\n\n// Not all UAs support the Text constructor.  Polyfill on the Text constructor only where it exists\n// TODO: Add a polyfill for the Text constructor, and make it a dependency of this polyfill.\nif (\"Text\" in this) {\n\tText.prototype.before = Element.prototype.before;\n}\n","minSource":"Document.prototype.before=Element.prototype.before=function(){this.parentNode&&this.parentNode.insertBefore(_mutation(arguments),this)},\"Text\"in this&&(Text.prototype.before=Element.prototype.before);","detectSource":"'Element' in this && 'before' in Element.prototype"}