Skip to content

Commit 42bd4f8

Browse files
committed
chore(core): ElementVNode has QElement
1 parent b920080 commit 42bd4f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/qwik/src/core/client/vnode-impl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type { ChoreArray } from './chore-array';
1010
import { _EFFECT_BACK_REF } from '../reactive-primitives/types';
1111
import { BackRef } from '../reactive-primitives/cleanup';
1212
import { isDev } from '@qwik.dev/core/build';
13+
import type { QElement } from '../shared/types';
1314

1415
/** @internal */
1516
export abstract class VNode extends BackRef {
@@ -137,7 +138,7 @@ export class ElementVNode extends VNode {
137138
nextSibling: VNode | null | undefined,
138139
public firstChild: VNode | null | undefined,
139140
public lastChild: VNode | null | undefined,
140-
public element: Element,
141+
public element: QElement,
141142
public elementName: string | undefined
142143
) {
143144
super(flags, parent, previousSibling, nextSibling);

packages/qwik/src/core/shared/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface Container {
5757

5858
export type HostElement = VNode | ISsrNode;
5959

60-
export interface QElement extends HTMLElement {
60+
export interface QElement extends Element {
6161
qDispatchEvent?: (event: Event, scope: QwikLoaderEventScope) => boolean;
6262
vNode?: VNode;
6363
}

packages/qwik/src/server/ssr-container.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import {
4242
convertStyleIdsToString,
4343
dangerouslySetInnerHTML,
4444
escapeHTML,
45-
isClassAttr,
4645
mapArray_get,
4746
mapArray_has,
4847
mapArray_set,

0 commit comments

Comments
 (0)