Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sure the implementation in the headers is in a <dd><a>
Browse files Browse the repository at this point in the history
deniak committed Dec 16, 2024
1 parent 2289eac commit 00acd07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rules/metadata/profile.js
Original file line number Diff line number Diff line change
@@ -72,7 +72,11 @@ export async function check(sr, done) {
// implementation report
if (['CR', 'CRD', 'PR', 'REC'].indexOf(id) > -1) {
const dts = sr.extractHeaders();
if (dts.Implementation) {
if (
dts.Implementation &&
dts.Implementation.dd &&
dts.Implementation.dd.querySelector('a')
) {
meta.implementationReport =
dts.Implementation.dd.querySelector('a').href;
}

0 comments on commit 00acd07

Please sign in to comment.