I started down this road with slot attributes (now in master). this probably wouldn't be a huge challenge.
note: this introduced a rule-editing bug. patched / deploying.
HTML on new wagns is completely valid.