Blame view

lib/jsdom/living/nodes/HTMLBodyElement-impl.js 490 Bytes
858f2bdf5   Boyan Georgiev   fixes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  "use strict";
  const { mixin } = require("../../utils");
  const HTMLElementImpl = require("./HTMLElement-impl").implementation;
  const WindowEventHandlersImpl = require("./WindowEventHandlers-impl").implementation;
  
  class HTMLBodyElementImpl extends HTMLElementImpl {
    constructor(...args) {
      super(...args);
      this._proxyWindowEventsToWindow();
    }
  }
  
  mixin(HTMLBodyElementImpl.prototype, WindowEventHandlersImpl.prototype);
  
  module.exports = {
    implementation: HTMLBodyElementImpl
  };