Home > dom exception > error dom exception invalid character error 5 ie9

Error Dom Exception Invalid Character Error 5 Ie9

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies uncaught error invalid_character_err dom exception 5 of this site About Us Learn more about Stack Overflow the company

Domexception Invalid Character Error

Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users dom exception 1 Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up IE9 throws DOM Exception: INVALID_CHARACTER_ERR (5) up vote 5 down vote favorite 1 On the script below, IE9 is throwing an error: SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5) mootools-1.2.1-core-yc.js, line 118 character 1 Document.implement({ newElement: function (A, B) { if (Browser.Engine.trident && B) { ["name", "type", "checked"].each(function (C) { if (!B[C]) { return; } A += " " + C + '="' + B[C] + '"'; if (C != "checked") { delete B[C]; } }); A = "<" + A + ">"; } return $.element(this.createElement(A)).set(B); //THIS IS LINE 118 }, newTextNode: function (A) { return this.createTextNode(A); }, getDocument: function () { return this; }, getWindow: function () { return this.window; } }); This snippet is part of the Mootools js library that the developer used on the site. Is there a workaround to fix the error for IE? javascript internet-explorer-9 mootools domexception share|improve this question edited Mar 4 '13 at 4:02 Josh Unger 1,8561231 asked Oct 17 '12 at 19:33 Scott Blanchard 9037 1 check my update to my answer, i think you just need to update the mootools script to 1.2.5 or higher (you're using 1.2.1) –ckozl Oct 17 '12 at 20:29 add a comment| 1 Answer 1 active oldest votes up vote 9 down vote accepted yeah that code is garbage, you should never do browser checks like that, its taught in JavaScript 101... lol can't believe that's in mootools? blech, anyways IE9 doesn't allow for crazy document.createElement('

yay!'); s

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x http://stackoverflow.com/questions/12941963/ie9-throws-dom-exception-invalid-character-err-5 Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Javascript error in IE9 :- SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5) up vote 0 down vote favorite m getting error http://stackoverflow.com/questions/11674191/javascript-error-in-ie9-script5022-dom-exception-invalid-character-err-5 in the below line of code: var input2 = document.createElement(''); It works fine in IE8 but giving problem in IE9. Please tell me what's wrong with this piece of code? javascript internet-explorer-9 share|improve this question edited Jul 26 '12 at 16:55 Tomalak 207k40345463 asked Jul 26 '12 at 16:53 Varun 111 I am getting error in this piece of code :- var input2 = document.createElement(''); Please tell me what is wrong with this piece of code. –Varun Jul 26 '12 at 16:54 Same question here: stackoverflow.com/questions/5344029/… –lamplet Oct 11 '13 at 2:31 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote The main thing that's wrong with your code is that you

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://stackoverflow.com/questions/5990917/dom-exception-invalid-character-err-5 policies of this site About Us Learn more about Stack Overflow the http://stackoverflow.com/questions/6169901/javascript-dom-exception-invalid-character-err-5 company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes dom exception a minute: Sign up DOM Exception: INVALID_CHARACTER_ERR (5) [closed] up vote 17 down vote favorite 2 In one aspx page which is running in IE9 got following script Error message. That page also having telerik controls. Does anybody have experince with this ? Message: DOM Exception: INVALID_CHARACTER_ERR (5) Line: 3422 Char: 8 Code: 0 URI: http://localhost/AbcWeb/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen%3a183fb741-216d-4765-9b46-4a1f5d38fdd7%3a16e4e7cd%3af7645509%3aed16cbdc%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3a76254418%3bTelerik.Web.UI%2c+Version%3d2010.2.929.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3a183fb741-216d-4765-9b46-4a1f5d38fdd7%3a874f8ea2%3a24ee1bba%3a19620875%3a490a9d4e%3abd8f85e4%3a9cdfc6e7 asp.net dom telerik internet-explorer-9 domexception exception invalid character share|improve this question edited Mar 3 '13 at 17:04 Ionică Bizău 35.8k27119214 asked May 13 '11 at 11:00 DineshNS 92531022 closed as too localized by Jeff Atwood♦ May 20 '11 at 6:54 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. the URI is localhost (so nobody except you is able to have a look at it) –Thariama May 13 '11 at 11:06 1 Well what's on line 3422 in that file? –Šime Vidas May 13 '11 at 11:08 1 this is not too localized, I have seen this on many sites and the accepted answer below is the solution I typically use. –Ali Gangji Nov 14 '11 at 18:38 8 I vote to re-open. T

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Javascript: DOM Exception: INVALID_CHARACTER_ERR (5) up vote 5 down vote favorite 1 I tested my site with the new IE 9 and I get the error telling me INVALID_CHARACTER_ERR (5). In IE 9, the developer tools highlights this line. Can anyone help me with this error? Error Line this.iframe = document.createElement('