mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
18 lines
390 B
JavaScript
18 lines
390 B
JavaScript
"use strict";
|
|
const HTMLElementImpl = require("./HTMLElement-impl").implementation;
|
|
const { reflectURLAttribute } = require("../../utils");
|
|
|
|
class HTMLEmbedElementImpl extends HTMLElementImpl {
|
|
get src() {
|
|
return reflectURLAttribute(this, "src");
|
|
}
|
|
|
|
set src(value) {
|
|
this.setAttributeNS(null, "src", value);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
implementation: HTMLEmbedElementImpl
|
|
};
|