Inheritance with doctypes