Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
feat(w3c): support specStatus "ED" for the TAG (speced#4343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Berjon authored Dec 16, 2022
1 parent 3168089 commit 7333cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/w3c/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ function validateStatusForGroup(conf) {
case "other":
if (
group === "tag" &&
![...trStatus, ...tagStatus].includes(specStatus)
!["ED", ...trStatus, ...tagStatus].includes(specStatus)
) {
const msg = docLink`The W3C Technical Architecture Group's documents can't use \`"${specStatus}"\` for the ${"[specStatus]"} configuration option.`;
const supportedStatus = codedJoinOr([...trStatus, ...tagStatus], {
const supportedStatus = codedJoinOr(["ED", ...trStatus, ...tagStatus], {
quotes: true,
});
const hint = `Please use one of: ${supportedStatus}. Automatically falling back to \`"unofficial"\`.`;
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/w3c/defaults-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe("W3C — Defaults", () => {
});

it("allows W3C TAG to show logos", async () => {
for (const specStatus of tagStatus) {
for (const specStatus of [...tagStatus, "ED"]) {
const ops = makeStandardOps({
specStatus,
group: "tag",
Expand Down

0 comments on commit 7333cf7

Please sign in to comment.