From 4573bf72f482098ae8c36542ea66adf6a0979fe4 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 27 Feb 2019 17:08:15 -0500 Subject: [PATCH] Allow in the element index, not just This helps with https://github.com/whatwg/html/pull/4383. --- .pre-process-annotate-attributes.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-process-annotate-attributes.pl b/.pre-process-annotate-attributes.pl index d314faa..7d416ad 100644 --- a/.pre-process-annotate-attributes.pl +++ b/.pre-process-annotate-attributes.pl @@ -50,7 +50,7 @@ # ignore... } } elsif ($mode eq 'index-in') { - if ($_ =~ m!^ [^<]*;?\n$!os) { + if ($_ =~ m!^ <(?:code|span) data-x="([^"]+)">[^<]*;?\n$!os) { $attributes{$1} = 1; } elsif ($_ =~ m@^ (.+?)(?:)?\n$@os) { local $" = ', ';