UNPKG

sub

Version:

A subset of the DOM environment for running Rule.js on the server

39 lines (31 loc) 1.07 kB
"use strict"; var HTMLElement = require('./HTMLElement').HTMLElement; var initializeHTMLElement = require('./HTMLElement').initializeHTMLElement; /* * HTMLUnknownElement */ var HTMLUnknownElement, createHTMLUnknownElement; HTMLUnknownElement = (function () { // Extension (function (child, parent) { function HTMLUnknownElement() { this.constructor = child; } HTMLUnknownElement.prototype = parent.prototype; child.prototype = new HTMLUnknownElement(); }(HTMLUnknownElement, HTMLElement)); //Constructor function HTMLUnknownElement() { throw new TypeError('Illegal constructor'); } return HTMLUnknownElement; }()); createHTMLUnknownElement = (function (constructor) { HTMLUnknownElement.prototype = constructor.prototype; function HTMLUnknownElement() { initializeHTMLElement.apply(this, arguments); } return function (tagName) {return new HTMLUnknownElement(tagName); }; }(HTMLUnknownElement)); exports.HTMLUnknownElement = HTMLUnknownElement; exports.createHTMLUnknownElement = createHTMLUnknownElement;