After the end of the Ottonian dynasty ( with the death of Henry II in 1024 ) the crown passed to the Salian dynasty . After the extinction of the Ottonian dynasty with the death of Henry II , Holy Roman Emperor in 1024 the crown passed to the Salian dynasty .