jtree icon indicating copy to clipboard operation
jtree copied to clipboard

Missing HTML elements in Stump

Open getflourish opened this issue 3 years ago • 4 comments

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 …

getflourish avatar Mar 15 '21 08:03 getflourish

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 

breck7 avatar Mar 31 '21 15:03 breck7

Also, should probably rename "Stump". Not the best name for a language.

breck7 avatar Mar 31 '21 15:03 breck7

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

getflourish avatar Apr 01 '21 06:04 getflourish

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 😉

breck7 avatar Apr 01 '21 14:04 breck7

Would be neat but low pri

breck7 avatar Jul 19 '24 19:07 breck7