Hey guys,
I am facing a strange problem related to CSS query selector in IE8. I am using standard HTML Doctype.
Sample HTML:
<div id="container">
<input id="field" type="text" />
</div>
The container div is a HTMLPanel.
GWT Native Code:
private static native NodeList<Element> nativeQuery(Element root, String query)/*-{
var root = obj || $doc;
return root.querySelectorAll(query);
}-*/
If I use this code like nativeQuery(getElement(), "#field") where getElement() is the root element of HTMLPanel, it complains in IE8 saying object doesn't support this property.
Plain Javascript Code:
var list = document.getElementById('container').querySelectorAll('#field');
alert(list);
This code runs fine in IE8 and returns me a nodelist containing 1 element.
Can anybody suggest what is the problem with my GWT native method?
Thanks,
Mohit
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/GhY-a_P2pnAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment