pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
7 lines (6 loc) • 537 B
TypeScript
/// <reference path="../pxtlib.d.ts" />
export declare function getBlocksWithType(parent: Document | Element, type: string): Element[];
export declare function getChildrenWithAttr(parent: Document | Element, tag: string, attr: string, value: string): Element[];
export declare function getFirstChildWithAttr(parent: Document | Element, tag: string, attr: string, value: string): Element;
export declare function getDirectChildren(parent: Element, tag: string): Element[];
export declare function cleanOuterHTML(el: HTMLElement): string;