Test that a programmatically created empty iframe inherits charset from the parent.