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.
21 lines
375 B
JavaScript
21 lines
375 B
JavaScript
'use strict';
|
|
|
|
var Node = require('./node');
|
|
|
|
/**
|
|
* Initialize a `Doctype` with the given `val`.
|
|
*
|
|
* @param {String} val
|
|
* @api public
|
|
*/
|
|
|
|
var Doctype = module.exports = function Doctype(val) {
|
|
this.val = val;
|
|
};
|
|
|
|
// Inherit from `Node`.
|
|
Doctype.prototype = Object.create(Node.prototype);
|
|
Doctype.prototype.constructor = Doctype;
|
|
|
|
Doctype.prototype.type = 'Doctype';
|