gwt mvp - Change doctype in GWT -


i have gwt mvp application , use formfactor determine version of app serve mobile, tablet or desktop.

my issue comes since mobile version ie needs different doctype work properly. how can change doctype before serve app?

this might change,using script.

detect user agent , apply below codes... var newdoctype = document.implementation.createdocumenttype('html','-//w3c//dtd xhtml 1.0 transitional//en','http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtdd');

document.doctype.parentnode.replacechild(newdoctype,document.doctype);


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -