Skip to content

Commit 4fdc0fb

Browse files
authored
Remove obsolete special cases in .pre-process-index-generator.pl
* HTMLBaseFontElement was removed from the spec in 2013 (whatwg/html@8c58bed). * HTMLSourceElement was merged in 2016 (whatwg/html@d8f4b79). * XMLDocument partial interface was removed in 2016 (whatwg/html@523f7a8).
1 parent 607b57c commit 4fdc0fb

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.pre-process-index-generator.pl

+4-12
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,15 @@
1616
if ($4) {
1717
($id, $name) = ($4, $5);
1818
} else {
19-
if ($5 eq 'HTMLSourceElement') {
20-
($id, $name) = ('the-source-element-when-used-with-the-picture-element:htmlsourceelement', $5);
21-
} elsif ($5 eq 'XMLDocument') {
22-
($id, $name) = ('loading-xml-documents:xmldocument', $5);
23-
} else {
24-
die "don't know how to create partial interface entry for $name in All Interfaces index";
25-
}
19+
die "partial interface entry for $5 is missing an id (required for interface index)";
2620
}
2721
$definitions{$name} = { } unless defined $definitions{$name};
2822
$definitions{$name}{partial} = [] unless exists $definitions{$name}{partial};
2923
push @{$definitions{$name}{partial}}, $id;
3024
} else {
31-
if ($5 ne 'HTMLBaseFontElement') {
32-
$name = $5;
33-
$definitions{$name} = { } unless defined $definitions{$name};
34-
die "duplicate interface definitions for $name" if exists $definitions{$name}{primary};
35-
}
25+
$name = $5;
26+
$definitions{$name} = { } unless defined $definitions{$name};
27+
die "duplicate interface definitions for $name" if exists $definitions{$name}{primary};
3628
}
3729
}
3830
$inpre = 0 if /<\/pre>/os;

0 commit comments

Comments
 (0)