codigo0/node_modules/happy-dom/lib/nodes/html-embed-element/HTMLEmbedElement.js
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  Ticket 1.1: Estructura Clean Architecture en backend
-  Ticket 1.2: Schemas Zod compartidos
-  Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares)
-  Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares)
-  Ticket 1.5: Eliminación de duplicidades (~50 líneas)

Cambios principales:
- Creada estructura Clean Architecture en backend/src/
- Schemas Zod compartidos en backend/src/shared/schemas/
- Refactorización modular de drugs y procedures
- Utilidades genéricas en src/utils/ (filter, validation)
- Eliminados scripts obsoletos y documentación antigua
- Corregidos errores: QueryClient, import test-error-handling
- Build verificado y funcionando correctamente
2026-01-25 21:09:47 +01:00

83 lines
1.7 KiB
JavaScript

import HTMLElement from '../html-element/HTMLElement.js';
import * as PropertySymbol from '../../PropertySymbol.js';
/**
* HTMLEmbedElement
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement
*/
export default class HTMLEmbedElement extends HTMLElement {
/**
* Returns height.
*
* @returns Height.
*/
get height() {
return this.getAttribute('height') || '';
}
/**
* Sets height.
*
* @param height Height.
*/
set height(height) {
this.setAttribute('height', height);
}
/**
* Returns width.
*
* @returns Width.
*/
get width() {
return this.getAttribute('width') || '';
}
/**
* Sets width.
*
* @param width Width.
*/
set width(width) {
this.setAttribute('width', width);
}
/**
* Returns source.
*
* @returns Source.
*/
get src() {
if (!this.hasAttribute('src')) {
return '';
}
try {
return new URL(this.getAttribute('src'), this[PropertySymbol.ownerDocument].location.href)
.href;
}
catch (e) {
return this.getAttribute('src');
}
}
/**
* Sets source.
*
* @param src Source.
*/
set src(src) {
this.setAttribute('src', src);
}
/**
* Returns type.
*
* @returns Type.
*/
get type() {
return this.getAttribute('type') || '';
}
/**
* Sets type.
*
* @param type Type.
*/
set type(type) {
this.setAttribute('type', type);
}
}
//# sourceMappingURL=HTMLEmbedElement.js.map