Deprecated GUI API utilities
As of SDL Web 8, a number of utility methods and properties are deprecated, most of which are now built-in into all supported browsers. Note that the DOM utilities (Tridion.Utils.Dom) are intended to be used on HTML DOM nodes.
| Deprecated method or property | Replacement |
|---|---|
| Tridion.Utils.Dom.containsNode | Node.contains |
| Tridion.Utils.Dom.getPreviousElementSibling | Element.previousElementSibling |
| Tridion.Utils.Dom.getNextElementSibling | Element.nextElementSibling |
| Tridion.Utils.Dom.getFirstElementChild | Element.firstElementChild |
| Tridion.Utils.Dom.getLastElementChild | Element.lastElementChild |
| Tridion.Utils.Dom.getOuterHTML | Element.outerHTML |
| Tridion.Utils.Dom.setOuterHTML | Element.outerHTML |
| Tridion.Utils.Dom.getSrcElement | Event.target |
| Tridion.Utils.Dom.getParentWindow | Element.ownerDocument.defaultView |
| Tridion.Utils.Dom.setTextAttribute | Node.setAttribute |
| Tridion.Utils.Dom.removeTextAttribute | Node.removeAttribute |
| Tridion.Utils.Css.hasClass | Element.classList.contains |
| Tridion.Utils.Event.srcElement | Event.target |