[fix] [minor] additional match condition specific to doctype