Fixing to work on pages without DOCTYPE html.