Ensures titleDescription is always next to title

This commit is contained in:
Eric Amodio
2020-08-30 01:13:07 -04:00
parent edbf435008
commit 5e457c791c
2 changed files with 10 additions and 5 deletions

View File

@@ -997,6 +997,11 @@ export function trackFocus(element: HTMLElement | Window): IFocusTracker {
return new FocusTracker(element);
}
export function after<T extends Node>(sibling: HTMLElement, child: T): T {
sibling.after(child);
return child;
}
export function append<T extends Node>(parent: HTMLElement, ...children: T[]): T {
children.forEach(child => parent.appendChild(child));
return children[children.length - 1];