breck7 / scrollsdk

Build on top of Scroll.
https://sdk.scroll.pub
380 stars 17 forks source link

Missing HTML elements in Stump #127

Closed getflourish closed 1 month ago

getflourish commented 3 years ago

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 …

breck7 commented 3 years 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 
breck7 commented 3 years ago

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

getflourish commented 3 years ago

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

breck7 commented 3 years ago

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 commented 1 month ago

Would be neat but low pri