onejs-core 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom/document.js +1 -0
- package/dom/document.ts +1 -0
- package/package.json +1 -1
package/dist/dom/document.js
CHANGED
|
@@ -21,6 +21,7 @@ export class DocumentWrapper {
|
|
|
21
21
|
return new DomWrapper(this.#doc.createElement(tagName));
|
|
22
22
|
}
|
|
23
23
|
createElementNS(ns, tagName, options) {
|
|
24
|
+
tagName = typeof tagName === 'string' ? tagName : 'div';
|
|
24
25
|
return new DomWrapper(this.#doc.createElement(tagName));
|
|
25
26
|
}
|
|
26
27
|
createTextNode(text) {
|
package/dom/document.ts
CHANGED
package/package.json
CHANGED