mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-05 13:00:08 +02:00
update node modules
This commit is contained in:
207
node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js
generated
vendored
207
node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js
generated
vendored
@@ -6,90 +6,70 @@ const utils = require("./utils.js");
|
||||
const impl = utils.implSymbol;
|
||||
const HTMLElement = require("./HTMLElement.js");
|
||||
|
||||
function HTMLTableRowElement() {
|
||||
throw new TypeError("Illegal constructor");
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(HTMLTableRowElement.prototype, HTMLElement.interface.prototype);
|
||||
Object.setPrototypeOf(HTMLTableRowElement, HTMLElement.interface);
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement, "prototype", {
|
||||
value: HTMLTableRowElement.prototype,
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
configurable: false
|
||||
});
|
||||
|
||||
HTMLTableRowElement.prototype.insertCell = function insertCell() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
class HTMLTableRowElement extends HTMLElement.interface {
|
||||
constructor() {
|
||||
throw new TypeError("Illegal constructor");
|
||||
}
|
||||
const args = [];
|
||||
{
|
||||
let curArg = arguments[0];
|
||||
if (curArg !== undefined) {
|
||||
curArg = conversions["long"](curArg, {
|
||||
context: "Failed to execute 'insertCell' on 'HTMLTableRowElement': parameter 1"
|
||||
});
|
||||
} else {
|
||||
curArg = -1;
|
||||
|
||||
insertCell() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
args.push(curArg);
|
||||
}
|
||||
return utils.tryWrapperForImpl(this[impl].insertCell(...args));
|
||||
};
|
||||
|
||||
HTMLTableRowElement.prototype.deleteCell = function deleteCell(index) {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
const args = [];
|
||||
{
|
||||
let curArg = arguments[0];
|
||||
if (curArg !== undefined) {
|
||||
curArg = conversions["long"](curArg, {
|
||||
context: "Failed to execute 'insertCell' on 'HTMLTableRowElement': parameter 1"
|
||||
});
|
||||
} else {
|
||||
curArg = -1;
|
||||
}
|
||||
args.push(curArg);
|
||||
}
|
||||
return utils.tryWrapperForImpl(this[impl].insertCell(...args));
|
||||
}
|
||||
|
||||
if (arguments.length < 1) {
|
||||
throw new TypeError(
|
||||
"Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only " +
|
||||
arguments.length +
|
||||
" present."
|
||||
);
|
||||
}
|
||||
const args = [];
|
||||
{
|
||||
let curArg = arguments[0];
|
||||
curArg = conversions["long"](curArg, {
|
||||
context: "Failed to execute 'deleteCell' on 'HTMLTableRowElement': parameter 1"
|
||||
});
|
||||
args.push(curArg);
|
||||
}
|
||||
return this[impl].deleteCell(...args);
|
||||
};
|
||||
deleteCell(index) {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "rowIndex", {
|
||||
get() {
|
||||
if (arguments.length < 1) {
|
||||
throw new TypeError(
|
||||
"Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only " +
|
||||
arguments.length +
|
||||
" present."
|
||||
);
|
||||
}
|
||||
const args = [];
|
||||
{
|
||||
let curArg = arguments[0];
|
||||
curArg = conversions["long"](curArg, {
|
||||
context: "Failed to execute 'deleteCell' on 'HTMLTableRowElement': parameter 1"
|
||||
});
|
||||
args.push(curArg);
|
||||
}
|
||||
return this[impl].deleteCell(...args);
|
||||
}
|
||||
|
||||
get rowIndex() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
return this[impl]["rowIndex"];
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "sectionRowIndex", {
|
||||
get() {
|
||||
get sectionRowIndex() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
return this[impl]["sectionRowIndex"];
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "cells", {
|
||||
get() {
|
||||
get cells() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
@@ -97,23 +77,18 @@ Object.defineProperty(HTMLTableRowElement.prototype, "cells", {
|
||||
return utils.getSameObject(this, "cells", () => {
|
||||
return utils.tryWrapperForImpl(this[impl]["cells"]);
|
||||
});
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "align", {
|
||||
get() {
|
||||
get align() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
const value = this.getAttribute("align");
|
||||
return value === null ? "" : value;
|
||||
},
|
||||
}
|
||||
|
||||
set(V) {
|
||||
set align(V) {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
@@ -123,23 +98,18 @@ Object.defineProperty(HTMLTableRowElement.prototype, "align", {
|
||||
});
|
||||
|
||||
this.setAttribute("align", V);
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "ch", {
|
||||
get() {
|
||||
get ch() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
const value = this.getAttribute("char");
|
||||
return value === null ? "" : value;
|
||||
},
|
||||
}
|
||||
|
||||
set(V) {
|
||||
set ch(V) {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
@@ -149,23 +119,18 @@ Object.defineProperty(HTMLTableRowElement.prototype, "ch", {
|
||||
});
|
||||
|
||||
this.setAttribute("char", V);
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "chOff", {
|
||||
get() {
|
||||
get chOff() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
const value = this.getAttribute("charoff");
|
||||
return value === null ? "" : value;
|
||||
},
|
||||
}
|
||||
|
||||
set(V) {
|
||||
set chOff(V) {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
@@ -175,23 +140,18 @@ Object.defineProperty(HTMLTableRowElement.prototype, "chOff", {
|
||||
});
|
||||
|
||||
this.setAttribute("charoff", V);
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "vAlign", {
|
||||
get() {
|
||||
get vAlign() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
const value = this.getAttribute("vAlign");
|
||||
return value === null ? "" : value;
|
||||
},
|
||||
}
|
||||
|
||||
set(V) {
|
||||
set vAlign(V) {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
@@ -201,23 +161,18 @@ Object.defineProperty(HTMLTableRowElement.prototype, "vAlign", {
|
||||
});
|
||||
|
||||
this.setAttribute("vAlign", V);
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, "bgColor", {
|
||||
get() {
|
||||
get bgColor() {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
|
||||
const value = this.getAttribute("bgColor");
|
||||
return value === null ? "" : value;
|
||||
},
|
||||
}
|
||||
|
||||
set(V) {
|
||||
set bgColor(V) {
|
||||
if (!this || !module.exports.is(this)) {
|
||||
throw new TypeError("Illegal invocation");
|
||||
}
|
||||
@@ -228,19 +183,21 @@ Object.defineProperty(HTMLTableRowElement.prototype, "bgColor", {
|
||||
});
|
||||
|
||||
this.setAttribute("bgColor", V);
|
||||
},
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
}
|
||||
}
|
||||
Object.defineProperties(HTMLTableRowElement.prototype, {
|
||||
insertCell: { enumerable: true },
|
||||
deleteCell: { enumerable: true },
|
||||
rowIndex: { enumerable: true },
|
||||
sectionRowIndex: { enumerable: true },
|
||||
cells: { enumerable: true },
|
||||
align: { enumerable: true },
|
||||
ch: { enumerable: true },
|
||||
chOff: { enumerable: true },
|
||||
vAlign: { enumerable: true },
|
||||
bgColor: { enumerable: true },
|
||||
[Symbol.toStringTag]: { value: "HTMLTableRowElement", configurable: true }
|
||||
});
|
||||
|
||||
Object.defineProperty(HTMLTableRowElement.prototype, Symbol.toStringTag, {
|
||||
value: "HTMLTableRowElement",
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
const iface = {
|
||||
// When an interface-module that implements this interface as a mixin is loaded, it will append its own `.is()`
|
||||
// method into this array. It allows objects that directly implements *those* interfaces to be recognized as
|
||||
@@ -302,8 +259,6 @@ const iface = {
|
||||
this._internalSetup(obj);
|
||||
Object.defineProperty(obj, impl, {
|
||||
value: new Impl.implementation(constructorArgs, privateData),
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user