Fixing WindowImplIE.getQueryString to look for the first occurence of a ? instead of the last.  Similarly fixing WindowImplIE.getHash to look for the first occurence of # instead of the last.  This makes IE consistent with the standards and other browsers.

Review at http://gwt-code-reviews.appspot.com/709801

Review by: conroy@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8406 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/impl/WindowImplIE.java b/user/src/com/google/gwt/user/client/impl/WindowImplIE.java
index 447028e..8bd1098 100644
--- a/user/src/com/google/gwt/user/client/impl/WindowImplIE.java
+++ b/user/src/com/google/gwt/user/client/impl/WindowImplIE.java
@@ -59,7 +59,7 @@
   @Override
   public native String getHash() /*-{
     var href = $wnd.location.href;
-    var hashLoc = href.lastIndexOf("#");
+    var hashLoc = href.indexOf("#");
     return (hashLoc > 0) ? href.substring(hashLoc) : "";
   }-*/;
 
@@ -70,12 +70,12 @@
   @Override
   public native String getQueryString() /*-{
     var href = $wnd.location.href;
-    var hashLoc = href.lastIndexOf("#");
+    var hashLoc = href.indexOf("#");
     if (hashLoc >= 0) {
       // strip off any hash first
       href = href.substring(0, hashLoc);
     }
-    var questionLoc = href.lastIndexOf("?");
+    var questionLoc = href.indexOf("?");
     return (questionLoc > 0) ? href.substring(questionLoc) : "";
   }-*/;