Mohamed Rawoof
Mohamed Rawoof

Reputation: 1

Browser Compatibility in GWT

My GWT project works well in Firefox 9.0.1, but in other browsers it doesn't, even I set this

<set-property name="user.agent" value="gecko1_8,ie8,safari,opera" /> 

in filename.gwt.xml

Can anyone help me with this?

Upvotes: 0

Views: 657

Answers (1)

stanleyxu2005
stanleyxu2005

Reputation: 8241

You can force Document mode to "Quirks", by writing the host page as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd"> 
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> 
</head>
<body>
..

Two of my Gwt webapps work perfectly with the solution above. And here are notes from the official for your reference.

Upvotes: 1

Related Questions