Handle `data-` and `ng-` attributes in `Widget::addAttributes()` (see #7095)