dbmanager: fix setting html attributes (fixes #8271)