From 3a65d0171cb742b06f6cb89ec431f846454c1bd6 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sat, 22 Mar 2008 02:01:15 +0000 Subject: [PATCH] IE doesn't have the importNode method. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7939 71c3de6d-444a-0410-be80-ed276b4c234a --- .../security/GlobalMatrixAuthorizationStrategy/config.jelly | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly b/core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly index 269af5b8a7..c4cb3cd15e 100644 --- a/core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly +++ b/core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly @@ -87,7 +87,10 @@ return; } - var copy = document.importNode(master,true); + if(document.importNode!=null) + copy = document.importNode(master,true); + else + copy = master.cloneNode(true); copy.removeAttribute("id"); copy.removeAttribute("style"); copy.firstChild.innerHTML = name; -- GitLab