Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

script16389: unspecified error. polyfill (1,10884)

I have a JSP page initially rendered correctly and when I click on a link, the page will refresh and the following error is coming in Windows 10, Edge 42. I am not sure on the error and I didn't used any polyfill. When I click on the error, it is not showing the exact error line to debug. Please find below the JS code and help.

script16389: unspecified error. polyfill (1,10884)

main.js

$(document).click(function (e) {
    var el = e.target;
    var className = el.className;
    if (className.indexOf("dropdown-section") < 0 && className.indexOf("dropdown-content") < 0 && className !== "dropdown-selected" && !(el.tagName === "INPUT" && $(el).parent().hasClass("dropdown-container"))) {
        $(".dropdown-section").removeClass("open");
    }
});

function buildShortAnswer(rq) {
    return "<input type=\"text\" class=\"input_box\" id=\"question" + rq.questionId + "\" tabindex=\"" + (rq.questionSettings.index + 3) + "\" name=\"question" + rq.questionId + "\" onkeyup=\"handleShortAnswerChange(event, " + rq.questionId + ")\" maxlength=\"" + rq.questionProperties[SHORT_ANSWER].maxLength + "\" />";
}

function replaceTag(tag) {
    var tagsToReplace = {
        '&': '&amp;',
        '<': '&lt;',
        '>': '&gt;'
//      '"': '&quot;'
    };
    return tagsToReplace[tag] || tag;
}

function safeTagsReplace(str) {
    return str.replace(/[&<>]/g, replaceTag);
}

function isValidUserName(username) {
    var regex = /^(?!.*[&<>]).*$/;
    if (regex.test(username)) {
        return true;
    }
    return false;  
}

function isValidemail(email) {
    var regex = /^([^\s@<>]{1,200})@([^\s@<>]{1,300})$/;
    if (regex.test(email.trim())) {  
        return true;
    }
    return false;
}

function getParameterByName(name, url) {
    if (!url){
        url = window.location.href;
    }
    name = name.replace(/[\[\]]/g, "\\$&");
    var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
        results = regex.exec(url);
    if (!results){
        return null;
    }
    if (!results[2]){
        return '';
    }
    return decodeURIComponent(results[2].replace(/\+/g, " "));
}
like image 648
Abraham Gnanasingh Avatar asked Apr 16 '26 21:04

Abraham Gnanasingh


1 Answers

I had the same problem, that is an issue conflicting with the AutoFormFill incorporated extension of edge. You can disable the feature selecting Settings, scrolling down and clicking "View advanced settings" and under Autofill section disabling the switch "Save form entries". Apart from the error, it shouldn´t affect your program´s execution.

like image 82
Armando Andres Flores Avatar answered Apr 19 '26 09:04

Armando Andres Flores