happy-dom
Advanced tools
Comparing version 13.7.6 to 13.7.7
@@ -43,2 +43,8 @@ import HTMLElement from '../html-element/HTMLElement.cjs'; | ||
/** | ||
* Sets loading. | ||
* | ||
* @param loading Loading. | ||
*/ | ||
set loading(loading: string); | ||
/** | ||
* Returns x. | ||
@@ -45,0 +51,0 @@ */ |
@@ -43,2 +43,8 @@ import HTMLElement from '../html-element/HTMLElement.js'; | ||
/** | ||
* Sets loading. | ||
* | ||
* @param loading Loading. | ||
*/ | ||
set loading(loading: string); | ||
/** | ||
* Returns x. | ||
@@ -45,0 +51,0 @@ */ |
@@ -51,5 +51,14 @@ var _a, _b, _c, _d, _e, _f, _g; | ||
get loading() { | ||
return this[PropertySymbol.loading]; | ||
const loading = this.getAttribute('loading'); | ||
return loading === 'eager' || loading === 'lazy' ? loading : 'auto'; | ||
} | ||
/** | ||
* Sets loading. | ||
* | ||
* @param loading Loading. | ||
*/ | ||
set loading(loading) { | ||
this.setAttribute('loading', loading); | ||
} | ||
/** | ||
* Returns x. | ||
@@ -56,0 +65,0 @@ */ |
@@ -1,1 +0,1 @@ | ||
export default { version: '13.7.6' }; | ||
export default { version: '13.7.7' }; |
{ | ||
"name": "happy-dom", | ||
"version": "13.7.6", | ||
"version": "13.7.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom", |
@@ -53,6 +53,16 @@ import HTMLElement from '../html-element/HTMLElement.js'; | ||
public get loading(): string { | ||
return this[PropertySymbol.loading]; | ||
const loading = this.getAttribute('loading'); | ||
return loading === 'eager' || loading === 'lazy' ? loading : 'auto'; | ||
} | ||
/** | ||
* Sets loading. | ||
* | ||
* @param loading Loading. | ||
*/ | ||
public set loading(loading: string) { | ||
this.setAttribute('loading', loading); | ||
} | ||
/** | ||
* Returns x. | ||
@@ -59,0 +69,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8614348
171299