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

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.
0 answers