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.
20 lines
485 B
JavaScript
20 lines
485 B
JavaScript
'use strict';
|
|
const {registerHTMLClass} = require('../shared/register-html-class.js');
|
|
|
|
const {HTMLElement} = require('./element.js');
|
|
|
|
const tagName = 'h1';
|
|
|
|
/**
|
|
* @implements globalThis.HTMLHeadingElement
|
|
*/
|
|
class HTMLHeadingElement extends HTMLElement {
|
|
constructor(ownerDocument, localName = tagName) {
|
|
super(ownerDocument, localName);
|
|
}
|
|
}
|
|
|
|
registerHTMLClass([tagName, 'h2', 'h3', 'h4', 'h5', 'h6'], HTMLHeadingElement);
|
|
|
|
exports.HTMLHeadingElement = HTMLHeadingElement;
|