Removing an inherited class (RomaJS and ODD processing)
Hi all, (this is based off a conversation James and I just had over the romajs slack channel) I'm implementing a button to remove an inherited attribute class form an element, for example removing att.global.responsibility from abbr, but keeping the other classes it inherits via att.global. I figured it would be enough to generate ODD like this: <elementSpec ident="abbr" mode="change"> <classes mode="change"> <memberOf key="att.global.rendition" mode="delete"/> </classes> </elementSpec> But it doesn't work because abbr is not a direct member of att.global.rendition. Should it work, though? If it did, it would certainly make roma's processing easier, otherwise it will have to generate something like the following, which is easier said than done: <elementSpec ident="abbr" mode="change"> <classes mode="change"> <memberOf key="att.global" mode="delete"/> <memberOf key="att.global.responsibility"/> <memberOf key="att.global.source"/> </classes> </elementSpec>. I appreciate your thoughts! If this sounds more like a bug / feature request I'm happy to move the conversation to a GitHub ticket. Also feel free to chime in on Slack. Ciao, Raff
participants (1)
-
Raffaele Viglianti