Hi Josselin,

Thank you for pointing at this issue.

Please find a patch for adding comment update support, in 
XsltForms_browser.setValue method:

  if (node.nodeType === Fleur.Node.ATTRIBUTE_NODE || node.nodeType === 
Fleur.Node.TEXT_NODE) {
    node.nodeValue = value;
  } else if (XsltForms_browser.isIE && node.innerHTML && !(value instanceof 
Array)) {
    node.innerHTML = XsltForms_browser.escape(value);
  } else {

becomes

  if (node.nodeType === Fleur.Node.ATTRIBUTE_NODE || node.nodeType === 
Fleur.Node.TEXT_NODE) {
    node.nodeValue = value;
  } else if (node.nodeType === Fleur.Node.COMMENT_NODE) {
    node.data = value;
  } else if (XsltForms_browser.isIE && node.innerHTML && !(value instanceof 
Array)) {
    node.innerHTML = XsltForms_browser.escape(value);
  } else {

Kind regards,

--Alain

> Le 13/01/2026 13:43 CET, Josselin Morvan via Xsltforms-support 
> <[email protected]> a écrit :
> 
>  
> Hi Alain, Hi everyone,
> 
> First and foremost, I wish you a very happy new year.
> 
> I’m trying to add a control to a comment() node, however, even if the field 
> is present, the comment node remains hopelessly empty, when I complete the 
> form. I thought I had already done this in a previous project, but I can't 
> seem to find it.
> 
> Does anyone know a  workaround ?
> 
> Here is a small sample tested with XSLTForms 1.7 and 1.6.
> 
> Best
> Josselin
> 
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support


_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to