javaquery/api/src/main/resources/org/apidesign/bck2brwsr/htmlpage/knockout-2.2.1.js
branchmodel
changeset 948 35f4f8af296c
parent 494 7f39fe919c07
     1.1 --- a/javaquery/api/src/main/resources/org/apidesign/bck2brwsr/htmlpage/knockout-2.2.1.js	Sun Jan 20 21:00:46 2013 +0100
     1.2 +++ b/javaquery/api/src/main/resources/org/apidesign/bck2brwsr/htmlpage/knockout-2.2.1.js	Mon Apr 08 09:24:59 2013 +0200
     1.3 @@ -2193,7 +2193,14 @@
     1.4                      else
     1.5                          element[attrName] = attrValue;
     1.6                  } else if (!toRemove) {
     1.7 -                    element.setAttribute(attrName, attrValue.toString());
     1.8 +                    try {
     1.9 +                        element.setAttribute(attrName, attrValue.toString());
    1.10 +                    } catch (err) {
    1.11 +                        // ignore for now
    1.12 +                        if (console) {
    1.13 +                            console.log("Can't set attribute " + attrName + " to " + attrValue + " error: " + err);
    1.14 +                        }
    1.15 +                    }
    1.16                  }
    1.17  
    1.18                  // Treat "name" specially - although you can think of it as an attribute, it also needs