Added idea to allow <style>

This commit is contained in:
the-djmaze 2022-02-15 12:29:41 +01:00
parent 6c795d4ced
commit be35a541c3

View file

@ -158,7 +158,16 @@ export const
replaceWithChildren(oElement);
return;
}
/*
// Idea to allow CSS
if ('STYLE' === name) {
msgId = '#rl-msg-061eb4d647771be4185943ce91f0039d';
oElement.textContent = oElement.textContent
.replace(/[^{}]+{/g, m => msgId + ' ' + m.replace(',', ', '+msgId+' '))
.replace(/(background-)color:[^};]+/g, '');
return;
}
*/
if ('BODY' === name) {
forEachObjectEntry(tasks, (name, cb) => {
if (hasAttribute(name)) {
@ -174,7 +183,6 @@ export const
delAttribute('width');
oStyle.maxWidth = value + 'px';
oStyle.width = '100%';
// oStyle.removeProperty('width');
}
}