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.
25 lines
646 B
JavaScript
25 lines
646 B
JavaScript
'use strict';
|
|
const {stringAttribute} = require('../shared/attributes.js');
|
|
const {registerHTMLClass} = require('../shared/register-html-class.js');
|
|
|
|
const {HTMLElement} = require('./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)
|
|
|
|
exports.HTMLTimeElement = HTMLTimeElement;
|