Why are some widgets wrapped in a div with attributes widgetid and data-mendix-id?

0
I’ve noticed some widgets get wrapped in a div with these two attributes. Dataviews and some add-on widgets include it, such as Mendix’s own Progress Bar. Looking at the code it seems that the div is not rendered by the widget itself, but is added by mendix. When and why is this div added? Thanks for the help.
asked
0 answers