I just was reading the Lost Mine of Phandelver adventure when I noticed that page 21, section "3. Trapped Hall" says:
Awarding Experience Points
Divide 100 XP equally among the characters if the party avoids or survives the pit trap.
Does that mean that in normal encounters/dungeons/whatever characters earn XP for avoiding or surviving traps? My DM never rewarded me with XP for that stuff!
In the case it's yes, how much XP is awarded? As far as I know, neither the DMG nor XGtE (which has guidelines about traps) explain how to calculate the XP of a trap.
Additionally, I found this answer to "How should I award XP for traps?" on RPG.SE - but if that answer says you shouldn't do this, why does the Lost Mine of Phandelver adventure (which, as far as I know, is an official campaign) do it?