{"size": 443, "ext": "js", "max_stars_repo_path": "node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js", "max_stars_repo_name": "IliyanGanev/ReactExperiment", "max_stars_repo_stars_event_min_datetime": "2018-04-18T12:06:53.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-15T14:15:15.000Z", "max_issues_repo_path": "node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js", "max_issues_repo_name": "IliyanGanev/ReactExperiment", "max_issues_repo_issues_event_min_datetime": "2020-06-17T13:26:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T09:09:27.000Z", "max_forks_repo_path": "node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js", "max_forks_repo_name": "IliyanGanev/ReactExperiment", "max_forks_repo_forks_event_min_datetime": "2018-03-30T14:14:30.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-20T21:50:21.000Z"}
{"max_stars_count": 6, "max_issues_count": 6, "max_forks_count": 5, "avg_line_length": 22.15, "max_line_length": 92, "alphanum_fraction": 0.7313769752}
"use strict";

const HTMLElementImpl = require("./HTMLElement-impl").implementation;

const resourceLoader = require("../../browser/resource-loader");

class HTMLSourceElementImpl extends HTMLElementImpl {
  get src() {
    return resourceLoader.resolveResourceUrl(this._ownerDocument, this.getAttribute("src"));
  }

  set src(value) {
    this.setAttribute("src", value);
  }
}

module.exports = {
  implementation: HTMLSourceElementImpl
};
