happy-dom 13.7.3 → 13.7.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.
Potentially problematic release.
This version of happy-dom might be problematic. Click here for more details.
@@ -125,7 +125,7 @@ class HTMLOptionElement extends HTMLElement_js_1.default {
|
|
125
125
|
* @returns Value.
|
126
126
|
*/
|
127
127
|
get value() {
|
128
|
-
return this.getAttribute('value')
|
128
|
+
return this.getAttribute('value') ?? this.textContent;
|
129
129
|
}
|
130
130
|
/**
|
131
131
|
* Sets value.
|
package/cjs/version.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
module.exports = { default: { version: '13.7.
|
1
|
+
module.exports = { default: { version: '13.7.5' } };
|
package/lib/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default { version: '13.7.
|
1
|
+
export default { version: '13.7.5' };
|
package/package.json
CHANGED
@@ -112,7 +112,7 @@ export default class HTMLOptionElement extends HTMLElement implements IHTMLOptio
|
|
112
112
|
* @returns Value.
|
113
113
|
*/
|
114
114
|
public get value(): string {
|
115
|
-
return this.getAttribute('value')
|
115
|
+
return this.getAttribute('value') ?? this.textContent;
|
116
116
|
}
|
117
117
|
|
118
118
|
/**
|