Timtech4u / gwtquery

Automatically exported from code.google.com/p/gwtquery
MIT License
0 stars 0 forks source link

Selectors like ".parent .child" doesn't work in IE8 #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the code looks like below:
    <div id="container" class="container">
        <div id="area" class="area">data</div>
    </div>

and the selector code:
    GQuery q = $(".container .area");

Does gwtquery not support IE8? Or it's a bug?

Thanks in advance!

The following is the stacktrace.

java.lang.RuntimeException: This Browser does not support Xpath selectors.
    at com.google.gwt.query.client.impl.SelectorEngineCssToXPath.select(SelectorEngineCssToXPath.java:265)
    at com.google.gwt.query.client.impl.SelectorEngineNative.select(SelectorEngineNative.java:62)
    at com.google.gwt.query.client.impl.SelectorEngine.select(SelectorEngine.java:138)
    at com.google.gwt.query.client.GQuery.select(GQuery.java:3790)
    at com.google.gwt.query.client.GQuery.$(GQuery.java:289)
    at com.google.gwt.query.client.GQuery.$(GQuery.java:259)
    at com.topcmm.gwttest.client.GwtTest.onModuleLoad(GwtTest.java:78)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Object 
doesn't support property or method 'evaluate'
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.query.client.impl.SelectorEngine.xpathEvaluate(SelectorEngine.java)
    at com.google.gwt.query.client.impl.SelectorEngineCssToXPath.select(SelectorEngineCssToXPath.java:260)
    at com.google.gwt.query.client.impl.SelectorEngineNative.select(SelectorEngineNative.java:62)
    at com.google.gwt.query.client.impl.SelectorEngine.select(SelectorEngine.java:138)
    at com.google.gwt.query.client.GQuery.select(GQuery.java:3790)
    at com.google.gwt.query.client.GQuery.$(GQuery.java:289)
    at com.google.gwt.query.client.GQuery.$(GQuery.java:259)
    at com.topcmm.gwttest.client.GwtTest.onModuleLoad(GwtTest.java:78)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by ke...@topcmm.com on 20 Sep 2012 at 10:17

GoogleCodeExporter commented 9 years ago
Sorry, I got this work in IE8 now. I'm trying to figure out why it didn't.

Would you please close it?

Thanks,
Kevin

Original comment by ke...@topcmm.com on 24 Sep 2012 at 5:35

GoogleCodeExporter commented 9 years ago

Original comment by manuel.carrasco.m on 27 Sep 2012 at 5:43