Closed getflourish closed 1 month ago
Love it! Thanks!
Probably something like this (super psuedocode):
# updateStumpElements
git clone https://github.com/mdn/browser-compat-data/tree/main/html/elements
names = map filename in elements
grammar.set(names, names)
write stump.grammar
Also, should probably rename "Stump". Not the best name for a language.
Yeah that could be an approach!
I guess it depends if all elements should be included or only "non deprecated" ones?
E.g. https://github.com/mdn/browser-compat-data/blob/main/html/elements/spacer.json
Only elements that are not deprecated should be included.
Except for blink. (https://github.com/mdn/browser-compat-data/blob/main/html/elements/blink.json). Blink must be included 😉
Would be neat but low pri
When playing with Stump, I’ve noticed that the
<cite>
tag was missing. I then figured that the list might be hand-compiled.For a full reference on available HTML tags, this might be a source: https://github.com/mdn/browser-compat-data/tree/master/html/elements
I wish the repo had a simple index.json file containing just the names …