.hasAttribute() does not work on IE8 as expected, MKWS-309
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 24 Oct 2014 09:43:48 +0000 (09:43 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 24 Oct 2014 09:43:48 +0000 (09:43 +0000)
introduced in ed9584cc29f7be0e35b94faf2e9800d9400598e6

src/mkws-core.js

index 0ae5a99..ff7e475 100644 (file)
@@ -349,7 +349,7 @@ mkws.log("Using window.name '" + window.name + "'");
       teamName = "AUTO";
       // Autosearch widgets don't join team AUTO if there is already an
       // autosearch on the team or the team has otherwise gotten a query
       teamName = "AUTO";
       // Autosearch widgets don't join team AUTO if there is already an
       // autosearch on the team or the team has otherwise gotten a query
-      if (node.hasAttribute("autosearch")) {
+      if (node.getAttribute("autosearch")) {
         if (mkws.autoHasAuto ||
             mkws.teams["AUTO"] && mkws.teams["AUTO"].config["query"]) {
           log("AUTO team already has a query, using unique team");
         if (mkws.autoHasAuto ||
             mkws.teams["AUTO"] && mkws.teams["AUTO"].config["query"]) {
           log("AUTO team already has a query, using unique team");