I considered implementing the logic as attributes.spellcheck = settings.enableSpellcheck.toString(); instead of only setting attributes.spellcheck = "false" if !settings.enableSpellcheck. However, that implementation would have the default settings (equivalent to previous functionality) cause every instance of a defined word/phrase to have the unnecessary tag (-spellcheck = "true".
I considered implementing the logic as
attributes.spellcheck = settings.enableSpellcheck.toString();
instead of only settingattributes.spellcheck = "false"
if!settings.enableSpellcheck
. However, that implementation would have the default settings (equivalent to previous functionality) cause every instance of a defined word/phrase to have the unnecessary tag (-spellcheck = "true"
.