Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/core/issues-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,15 @@ function handleIssues(ins, ghIssues, conf) {
body = document
.createRange()
.createContextualFragment(ghIssue.bodyHTML);
const externalImages = /** @type {NodeListOf<HTMLImageElement>} */ (
body.querySelectorAll("img[src*='githubusercontent.com']")
);
if (externalImages.length) {
const msg = `Issue #${dataNum} contains images hosted on githubusercontent.com which may be rejected by W3C publication tools.`;
const hint =
"Download the images and host them alongside the spec source.";
showWarning(msg, name, { hint });
}
}
div.append(titleParent, body);
}
Expand Down
Loading