Skip to content

Commit

Permalink
make sure the implementation in the headers is in a <dd><a> (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak authored Dec 16, 2024
1 parent 178b58e commit 47d6617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/metadata/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ 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?.dd?.querySelector('a')) {
meta.implementationReport =
dts.Implementation.dd.querySelector('a').href;
}
Expand Down

0 comments on commit 47d6617

Please sign in to comment.