the top rule can recognize doctype