{"size": 455, "ext": "js", "max_stars_repo_path": "rules/fork-longdesc.js", "max_stars_repo_name": "darobin/spork", "max_stars_repo_stars_event_min_datetime": "2015-03-22T15:20:33.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-04T21:29:29.000Z", "max_issues_repo_path": "rules/fork-longdesc.js", "max_issues_repo_name": "darobin/spork", "max_issues_repo_issues_event_min_datetime": "2015-02-26T13:01:01.000Z", "max_issues_repo_issues_event_max_datetime": "2015-10-08T13:55:30.000Z", "max_forks_repo_path": "rules/fork-longdesc.js", "max_forks_repo_name": "darobin/spork", "max_forks_repo_forks_event_min_datetime": "2015-03-10T10:43:02.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-04T21:29:19.000Z"}
{"max_stars_count": 5, "max_issues_count": 13, "max_forks_count": 8, "avg_line_length": 35.0, "max_line_length": 120, "alphanum_fraction": 0.6065934066}
/*global assert*/

exports.name = "fork-longdesc";
exports.landscape = "W3C HTML does not consider <code><a href='#attr-img-longdesc'></a>longdesc</code> to be obsolete.";
exports.transform = function () {
    // remove from obsolete
    var $ldDT = assert("img@longdesc", $("#attr-img-longdesc").parent())
    ,   $dd = assert("<dd> after img@longdesc", $ldDT.next("dd"))
    ;
    $dd.html($dd.html().replace(/,[\s\S]+\./, "."));
    $ldDT.remove();
};
