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.
24 lines
600 B
JavaScript
24 lines
600 B
JavaScript
import {stringAttribute} from '../shared/attributes.js';
|
|
import {registerHTMLClass} from '../shared/register-html-class.js';
|
|
|
|
import {HTMLElement} from './element.js';
|
|
|
|
/**
|
|
* @implements globalThis.HTMLTimeElement
|
|
*/
|
|
class HTMLTimeElement extends HTMLElement {
|
|
constructor(ownerDocument, localName = 'time') {
|
|
super(ownerDocument, localName);
|
|
}
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
get dateTime() { return stringAttribute.get(this, 'datetime'); }
|
|
set dateTime(value) { stringAttribute.set(this, 'datetime', value); }
|
|
}
|
|
|
|
registerHTMLClass('time', HTMLTimeElement)
|
|
|
|
export {HTMLTimeElement};
|