Add doctype to sag element