diff --git a/src/lib/web-worker/worker-constructors.ts b/src/lib/web-worker/worker-constructors.ts index 7ef0bfe7..62d38f25 100644 --- a/src/lib/web-worker/worker-constructors.ts +++ b/src/lib/web-worker/worker-constructors.ts @@ -3,8 +3,8 @@ import { WorkerAnchorElement } from './worker-anchor'; import { WorkerElement } from './worker-element'; import { WorkerContentWindow, WorkerIFrameElement } from './worker-iframe'; import { WorkerDocumentElementChild, WorkerDocument } from './worker-document'; -import { WorkerDocumentTypeNode, WorkerNode } from './worker-node'; import { WorkerInstance } from './worker-instance'; +import { WorkerNode } from './worker-node'; import { WorkerScriptElement } from './worker-script'; export const constructInstance = ( @@ -37,8 +37,6 @@ const getConstructor = (interfaceType: InterfaceType, nodeName?: string): typeof return WorkerDocument; } else if (interfaceType === InterfaceType.Window) { return WorkerContentWindow; - } else if (interfaceType === InterfaceType.DocumentTypeNode) { - return WorkerDocumentTypeNode; } else if (interfaceType <= InterfaceType.DocumentFragmentNode) { return WorkerNode; } else { diff --git a/src/lib/web-worker/worker-node.ts b/src/lib/web-worker/worker-node.ts index e36e7b05..f04b0e4b 100644 --- a/src/lib/web-worker/worker-node.ts +++ b/src/lib/web-worker/worker-node.ts @@ -71,15 +71,3 @@ export class WorkerNodeList { return this._[Symbol.iterator](); } } - -export class WorkerDocumentTypeNode extends WorkerNode { - get name() { - return NodeName.DocumentTypeNode; - } - get publicId() { - return ''; - } - get systemId() { - return ''; - } -}