their own legislation. Anyone ineligible to succeed is treated as if they were dead. That person's descendants are not also disqualified, unless they are personally ineligible. Marriages The Act of Settlement 1701 provides that Protestant "heirs of the body" (that is, legitimate descendants) of Sophia, Electress of Hanover, are eligible to succeed to the throne, unless otherwise disqualified. The meaning of heir of the body is determined by the common law rules of male preference primogeniture (the "male-preference" criterion is no longer applicable, in respect of succession to the throne, to persons born after 28 October 2011), whereby older children and their descendants inherit before younger children, and a male child takes precedence over a female sibling. Children born out of wedlock and adopted children are not eligible to succeed. Illegitimate children whose parents subsequently marry are legitimated, but remain ineligible to inherit. The Royal Marriages Act 1772 (repealed by the Succession to the Crown Act 2013) further required descendants of George II to obtain the consent of the reigning monarch to marry. (The requirement did not apply to descendants of princesses who married into foreign families, as well as, from 1936, any descendants of Edward VIII, of whom there are none.) The Act provided, however, that if a dynast older than twenty-five years notified the Privy Council of his or her intention to marry without the consent of the Sovereign, then he or she may have lawfully done so after one year, unless both houses of Parliament expressly disapproved of the marriage. A marriage that contravened the Royal Marriages Act was void, and the resulting offspring illegitimate and thus ineligible to succeed, though the succession of the dynast who failed to obtain consent was not itself affected. This also had the consequence that marriage to a Roman Catholic without permission was void, so that the dynast was not disqualified from succeeding on account of being married to a Roman Catholic. Thus when the future George IV attempted to marry the Roman Catholic Maria Fitzherbert in 1785 without obtaining permission from George III he did not disqualify himself from inheriting the throne in due course. A marriage voided by the 1772 act prior to its repeal remains void "for all purposes relating to the succession to the Crown" under the 2013 act. The constitutional crisis arising from Edward VIII's decision to marry a divorcee in 1936 led to His Majesty's