const { Node } = require('./Node');

const Comment = class extends Node {
  get outerHTML() {
    return `<!--${this.textContent}-->`;
  }
  get innerHTML() {
    return this.textContent;
  }
};

module.exports = {
  Comment
};

const { Node } = require('./Node');

const Comment = class extends Node {
  constructor() {
    super();
    this._nodeValue = '';
  }
  get nodeName() {
    return '#comment';
  }
  get nodeType() {
    return Node.COMMENT_NODE;
  }
  get nodeValue() {
    return this._nodeValue;
  }
  set nodeValue(nodeValue) {
    this._nodeValue = nodeValue;
  }
  get textContent() {
    return this.nodeValue;
  }
  set textContent(textContent) {
    this.nodeValue = textContent;
  }
};

module.exports = {
  Comment
};

Update comment interface to better match the Text one.
Update comment interface to better match the Text one.

Eventually we should probably base this off a common interface.
