White wire connecting to the door switch has burned through and detached from the connector head. There are also burn marks on the dryer drum.
I know at least temporarily fixing this is merely stripping the wire, crimping it to a new connector, and plugging it in... But why did this happen and how can I prevent it?