Virginia constitution
Article V: executive
Section 16

The General Assembly may provide by law for the waiver of the eligibility requirements for the Attorney General, Speaker of the House, or acting Speaker to serve as Governor or Acting Governor in the event of an emergency or enemy attack upon the soil of Virginia as evidenced by a proclamation of the Governor or alternative authority prescribed by law.