I want to detect whether a doctype exists for the current document and add one if nothing exists.
I'm able to check whether a doctype exists using document.doctype. But how can i add one?
I want to detect whether a doctype exists for the current document and add one if nothing exists.
I'm able to check whether a doctype exists using document.doctype. But how can i add one?