jfweemaes / ubiquity-xforms

Automatically exported from code.google.com/p/ubiquity-xforms
0 stars 0 forks source link

When submission.navigateForReplaceAll is false, W3C test 11.9.b raises NS_ERROR_INVALID_POINTER exception in Firefox #455

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First, in the submission constructor in xforms-submission.js, you need to 
ensure that navigateForReplaceAll is initialised to false. Then, open test 
11.9.b in Firefox, wait for it to load and click the 'Get Data' button. 
Instead of the submission completing successfully, you will see Firefox 
report a NS_ERROR_INVALID_POINTER exception, thrown from xforms-
submission.js. The stack trace appears to finger the replaceDocumentContent() 
method in xforms-submission.js, where the assignment to innerHTML is made.

Original issue reported on code.google.com by phil.boo...@gtempaccount.com on 26 May 2009 at 6:09

GoogleCodeExporter commented 8 years ago
This issue appears to be caused by invalid markup being added to the DOM when 
setting a 
node's innerHTML property.  In the case of 11.9.b I was able to add a hack that 
replaces "&" with "&", however I think a more robust solution is required.  
Either 
that, or a caveat that simply states that @replace=all must return valid markup 
for the 
host document.

Original comment by bryan.kyle on 26 May 2009 at 7:37

GoogleCodeExporter commented 8 years ago
W3C test 11.9.h has the same problem.

Original comment by bryan.kyle on 26 May 2009 at 9:14