Traditionally the question has been to use xp:panel or just div, no xp: anything. They are the same on the client side. The difference is the server-side automagic works with a xp:panel and not with a div, so if you want to do something like partial refresh a div, then the xp:panel flavor simplifies that considerably. If you don’t need to use server-side automagic, the xp:-ness introduces a performance penalty that may be avoided by using a non-decorated HTML element.- The obvious answer for xp:div is it’s the same; since it’s an xp: thing the server-side automagic can work with it. Why it’s got onClick is a bit of a mystery.
I have a panel who annoyingly non-removable pop-up comment says it generates a div, but no control anywhere that explicitly labels itself “Div”.- If I type in xp:div it does just as you say; when selected it has a list of events, and Properties calls itself “paragraph”. I can only conclude this is valid, and the heinously useless “documentation” simply doesn’t cover it.