You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
import {HTMLElement} from './element.js';
|
|
import {registerHTMLClass} from '../shared/register-html-class.js';
|
|
import { stringAttribute } from '../shared/attributes.js';
|
|
|
|
const tagName = 'meta'
|
|
/**
|
|
* @implements globalThis.HTMLMetaElement
|
|
*/
|
|
export class HTMLMetaElement extends HTMLElement {
|
|
constructor(ownerDocument, localName =tagName) {
|
|
super(ownerDocument, localName);
|
|
}
|
|
|
|
/* c8 ignore start */
|
|
get name() { return stringAttribute.get(this, 'name'); }
|
|
set name(value) { stringAttribute.set(this, 'name', value); }
|
|
|
|
get httpEquiv() { return stringAttribute.get(this, 'http-equiv'); }
|
|
set httpEquiv(value) { stringAttribute.set(this, 'http-equiv', value); }
|
|
|
|
get content() { return stringAttribute.get(this, 'content'); }
|
|
set content(value) { stringAttribute.set(this, 'content', value); }
|
|
|
|
get charset() { return stringAttribute.get(this, 'charset'); }
|
|
set charset(value) { stringAttribute.set(this, 'charset', value); }
|
|
|
|
get media() { return stringAttribute.get(this, 'media'); }
|
|
set media(value) { stringAttribute.set(this, 'media', value); }
|
|
/* c8 ignore stop */
|
|
|
|
}
|
|
|
|
registerHTMLClass(tagName, HTMLMetaElement);
|
|
|