MCPcopy
hub / github.com/tinymce/tinymce / _get

Function _get

modules/tinymce/src/core/main/ts/api/dom/DOMUtils.ts:377–380  ·  view source on GitHub ↗
(elm: string | T | null | undefined)

Source from the content-addressed store, hash-verified

375 : elm as T;
376
377 const _get = <T extends Node>(elm: string | T | null | undefined): SugarElement<T | HTMLElement> | null => {
378 const value = get(elm);
379 return Type.isNonNullable(value) ? SugarElement.fromDom(value) : null;
380 };
381
382 const getAttrib = (elm: string | Element | null, name: string, defaultVal: string = ''): string => {
383 let value: string | undefined;

Callers 4

getAttribFunction · 0.85
hasClassFunction · 0.85
isHiddenFunction · 0.85
getOuterHTMLFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…