You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SelectorEngineJSIE.java 534B

12345678910111213141516171819202122
  1. package com.google.gwt.query.client.impl.research;
  2. import com.google.gwt.dom.client.Element;
  3. /**
  4. * Runtime implementaton of non-XPath/native for IE that fixes some DOM
  5. * operation incompatibilities.
  6. */
  7. public class SelectorEngineJSIE extends SelectorEngineJS {
  8. public native String getAttr(Element elm, String attr) /*-{
  9. switch (attr) {
  10. case "id":
  11. return elm.id;
  12. case "for":
  13. return elm.htmlFor;
  14. case "class":
  15. return elm.className;
  16. }
  17. return elm.getAttribute(attr, 2);
  18. }-*/;
  19. }