From: Alexander Ebert Date: Sun, 3 Jan 2021 15:44:01 +0000 (+0100) Subject: Removed the `document.registerElement()` polyfill X-Git-Tag: 5.4.0_Alpha_1~491 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd252069544f264c063d057536f356b98d15db77;p=GitHub%2FWoltLab%2FWCF.git Removed the `document.registerElement()` polyfill The polyfill was introduced in 2015 to support mentiones through a custom element (see b4346e66b2f179e2f2ee5eb8db529475f7ec992e), but eventually was never used. `document.registerElement` is deprecated in browser anyway and should not be used. --- diff --git a/wcfsetup/install/files/js/WCF.Assets.js b/wcfsetup/install/files/js/WCF.Assets.js index 8291ac9210..7ff4ca45ca 100644 --- a/wcfsetup/install/files/js/WCF.Assets.js +++ b/wcfsetup/install/files/js/WCF.Assets.js @@ -43,9 +43,6 @@ */ !function(t){var e={init:function(){var e=["paddingTop","paddingRight","paddingBottom","paddingLeft","fontSize","lineHeight","fontFamily","width","fontWeight","border-top-width","border-right-width","border-bottom-width","border-left-width","-moz-box-sizing","-webkit-box-sizing","box-sizing"];return this.each(function(){function i(){for(var t=0;t/g,">").replace(/&/g,"&").replace(/\n/g,"
");s.html(t+" ").css({width:parseInt(r.width(),10)+"px"}),o()}function o(){var t=s.height(),e="hidden",i=d?t+h+a:t+h;i>b?(i=b,e="auto"):c>i&&(i=c),r.height()!==i&&r.css({overflow:e,height:i+"px"})}if("textarea"!==this.type)return!1;var r=t(this).css({resize:"none",overflow:"hidden"}),s=t("
").css({position:"absolute",display:"none","word-wrap":"break-word","white-space":"pre-wrap","border-style":"solid"}).appendTo(document.body);i();var d="border-box"==r.css("box-sizing")||"border-box"==r.css("-moz-box-sizing")||"border-box"==r.css("-webkit-box-sizing"),a=parseInt(r.css("border-top-width"))+parseInt(r.css("padding-top"))+parseInt(r.css("padding-bottom"))+parseInt(r.css("border-bottom-width")),p=parseInt(r.css("height"),10),h=parseInt(r.css("line-height"),10)||parseInt(r.css("font-size"),10),c=2*h>p?2*h:p,b=parseInt(r.css("max-height"),10)>-1?parseInt(r.css("max-height"),10):Number.MAX_VALUE;r.bind("keyup change cut paste",function(){n()}),t(window).bind("resize",function(){s.width()!==parseInt(r.width(),10)&&n()}),r.bind("blur",function(){o()}),r.bind("updateHeight",function(){i(),n()}),t(function(){n()})})}};t.fn.flexible=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.flexible"):e.init.apply(this,arguments)}}(jQuery); -/*! (C) WebReflection Mit Style License */ -(function(e,t,n,r){"use strict";function rt(e,t){for(var n=0,r=e.length;n>0),s="attached",o="detached",u="extends",a="ADDITION",f="MODIFICATION",l="REMOVAL",c="DOMAttrModified",h="DOMContentLoaded",p="DOMSubtreeModified",d="<",v="=",m=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,g=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],y=[],b=[],w="",E=t.documentElement,S=y.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},x=n.prototype,T=x.hasOwnProperty,N=x.isPrototypeOf,C=n.defineProperty,k=n.getOwnPropertyDescriptor,L=n.getOwnPropertyNames,A=n.getPrototypeOf,O=n.setPrototypeOf,M=!!n.__proto__,_=n.create||function vt(e){return e?(vt.prototype=e,new vt):this},D=O||(M?function(e,t){return e.__proto__=t,e}:L&&k?function(){function e(e,t){for(var n,r=L(t),i=0,s=r.length;i