Jesse Glick commented on Bug JENKINS-14749

Also we see this annoying warning for every page load:

… com.gargoylesoftware.htmlunit._javascript_.host.Document jsxFunction_createElement
SEVERE: Unexpected exception occurred while parsing HTML snippet
… com.gargoylesoftware.htmlunit._javascript_.StrictErrorReporter runtimeError
SEVERE: runtimeError: message=[Unexpected exception occurred while parsing HTML snippet: input name="x"] sourceName=[http://localhost:…/jenkins/static/…/scripts/prototype.js] line=[1927] lineSource=[null] lineOffset=[0]

caused by:

var HAS_EXTENDED_CREATE_ELEMENT_SYNTAX = (function(){
    try {
      var el = document.createElement('<input name="x">');
      return el.tagName.toLowerCase() === 'input' && el.name === 'x';
    }
    catch(err) {
      return false;
    }
  })();

I think http://sourceforge.net/p/htmlunit/bugs/1338/ is discussing this, though I cannot find any BrowserVersionFeatures.GENERATED_153 either in the version of HtmlUnit we run or in the current version; the current code treats this construction as an error if HtmlUnit is simulating Firefox, which we are (see JenkinsRule.WebClient.<init>). http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.html#JS_DOCUMENT_CREATE_ELEMENT_EXTENDED_SYNTAX looks like the current replacement, but from http://sourceforge.net/p/htmlunit/code/HEAD/tree/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/_javascript_/host/Document.java it seems that when using newer versions and simulating FF we would get the same error.

The real issue is that even though Prototype catches and ignores the error, HtmlUnit logs it as a warning. I will see if I can just suppress this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to