You are here

jsTree - document.registerElement is deprecated

Submitted by Asif Nowaj, Last Modified on 2019-11-08

If you are using jsTree library and found out that Chrome has started to warn about deprecating a feature used by jstree like below. Then you can find what you need to do to resolve this issue (warning).

document.registerElement is deprecated and will be removed in M73, around March 2019.
Please use window.customElements.define instead. 
See for more details.

You are still receiving this warning that means your jsTree js file is old and you haven't updated it for long time.
This issue has already been fixed in latest jsTree library. So you do not need to make any changes in your code, just upgrade the your jsTree js file i.e. jstree.min.js.

Please update jstree library to 3.3.7 onwards. Current version is 3.3.8. You can download it from or use following CDN:

<script src="//"></script>

<link rel="stylesheet" href="//" />
<script src="//"></script>

Discussion or Comment

If you have anything in mind to share, please bring it in the discussion forum here.