@dooboostore/dom-parser 1.0.4 → 1.0.5
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/cjs/node/elements/HTMLTableElement.js.map +2 -2
- package/dist/cjs/node/elements/HTMLTfootElement.js.map +2 -2
- package/dist/esm/node/elements/HTMLTableElement.js.map +2 -2
- package/dist/esm/node/elements/HTMLTfootElement.js.map +2 -2
- package/dist/esm-bundle/dooboostore-dom-parser.esm.js.map +2 -2
- package/dist/types/node/elements/HTMLTableElement.d.ts.map +1 -1
- package/dist/types/node/elements/HTMLTfootElement.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-dom-parser.umd.js.map +2 -2
- package/package.json +1 -1
- package/src/node/elements/HTMLTableElement.ts +4 -0
- package/src/node/elements/HTMLTfootElement.ts +1 -0
package/package.json
CHANGED
|
@@ -35,6 +35,7 @@ export class HTMLTableElement extends HTMLElement {
|
|
|
35
35
|
createCaption(): HTMLElement {
|
|
36
36
|
let caption = this.caption;
|
|
37
37
|
if (!caption) {
|
|
38
|
+
// @ts-ignore
|
|
38
39
|
caption = this.ownerDocument.createElement('caption');
|
|
39
40
|
this.insertBefore(caption, this.firstChild);
|
|
40
41
|
}
|
|
@@ -51,6 +52,7 @@ export class HTMLTableElement extends HTMLElement {
|
|
|
51
52
|
createTHead(): HTMLElement {
|
|
52
53
|
let thead = this.tHead;
|
|
53
54
|
if (!thead) {
|
|
55
|
+
// @ts-ignore
|
|
54
56
|
thead = this.ownerDocument.createElement('thead');
|
|
55
57
|
const firstTBody = this.querySelector('tbody');
|
|
56
58
|
this.insertBefore(thead, firstTBody);
|
|
@@ -68,6 +70,7 @@ export class HTMLTableElement extends HTMLElement {
|
|
|
68
70
|
createTFoot(): HTMLElement {
|
|
69
71
|
let tfoot = this.tFoot;
|
|
70
72
|
if (!tfoot) {
|
|
73
|
+
// @ts-ignore
|
|
71
74
|
tfoot = this.ownerDocument.createElement('tfoot');
|
|
72
75
|
this.appendChild(tfoot);
|
|
73
76
|
}
|
|
@@ -101,6 +104,7 @@ export class HTMLTableElement extends HTMLElement {
|
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
|
|
107
|
+
// @ts-ignore
|
|
104
108
|
return row;
|
|
105
109
|
}
|
|
106
110
|
|