use more set literals

This commit is contained in:
Erik Krogh Kristensen
2022-01-20 14:35:59 +01:00
parent c09b6691e1
commit 3155114e36
19 changed files with 38 additions and 117 deletions

View File

@@ -176,18 +176,13 @@ module DOM {
eltName = ["script", "iframe", "embed", "video", "audio", "source", "track"] and
attrName = "src"
or
(
eltName = "link" or
eltName = "a" or
eltName = "base" or
eltName = "area"
) and
eltName = ["link", "a", "base", "area"] and
attrName = "href"
or
eltName = "form" and
attrName = "action"
or
(eltName = "input" or eltName = "button") and
eltName = ["input", "button"] and
attrName = "formaction"
)
}