xmlapi-web
Version:
browser implementation of xmlapi
39 lines (38 loc) • 1.61 kB
TypeScript
import { WebapiNode } from './webapi_node';
import { WebapiAttribute } from './webapi_attribute';
import { AbstractElement } from 'xmlapi';
export declare class WebapiElement extends WebapiNode implements AbstractElement {
protected wrapee: Element;
constructor(wrapee: Element);
native: Element;
namespaceUri: string;
namespacePrefix: string;
nameLocal: string;
namePrefixed: string;
getAttributes(): WebapiAttribute[];
firstChild: WebapiNode | WebapiElement;
lastChild: WebapiNode | WebapiElement;
child(index: number): WebapiNode | WebapiElement;
firstElementChild(): WebapiElement;
previousElementSibling(): WebapiElement;
nextElementSibling(): WebapiElement;
appendChild(child: WebapiNode): WebapiNode;
getAttribute(name: string): string;
getAttributeNs(nsUri: string, localName: string): string;
setAttribute(name: string, value: string | number): this;
renameAttributeIfExists(nameOld: string, nameNew: string): void;
removeAttribute(name: string): void;
buildNsMap(): any;
clone(): any;
nameNs: string;
children: () => Wu.WuIterable<WebapiNode | WebapiElement>;
rchildren: () => Wu.WuIterable<WebapiNode | WebapiElement>;
childElements: () => Wu.WuIterable<WebapiElement>;
childElement: (index: number) => WebapiElement;
countChildren: () => number;
countElementChildren: () => number;
getElementChild: (index: number) => WebapiElement;
setAttributes: (keyvalue: Object) => WebapiElement;
unwrap: () => WebapiElement;
rewrap: (replacement: WebapiElement) => WebapiElement;
}