{"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-replacewith","baseDir":"Element/prototype/replaceWith","hasTests":true,"rawSource":"\n// Element.prototype.replaceWith\nDocument.prototype.replaceWith = Element.prototype.replaceWith = function replaceWith() {\n\tif (this.parentNode) {\n\t\tthis.parentNode.replaceChild(_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.replaceWith = Element.prototype.replaceWith;\n}\n","minSource":"Document.prototype.replaceWith=Element.prototype.replaceWith=function(){this.parentNode&&this.parentNode.replaceChild(_mutation(arguments),this)},\"Text\"in this&&(Text.prototype.replaceWith=Element.prototype.replaceWith);","detectSource":"'Element' in this && 'replaceWith' in Element.prototype"}