I just found out that it is NOT safe. I need some HTML5 elements on an old website that has been running for several years. I needed to change doctype to html, because some browsers will not work with new elements otherwise.
It turned out that in javascript domobject.name does not work with the new doctype . You must use domobject.attributes["name"].value . In short, this simple thing has created serious problems with the functionality of the website.
Thus, it is best to check everything after changing the doctype , because it can break down various things that you would not think about ...
Radosław gers
source share