michaelrsweet/mxml

Maybe a bug mxml-4.0.2/mxml-set.c lines 266 and 269

lbinic opened this issue · 2 comments

266   if (node && node->type == MXML_TYPE_ELEMENT && node->child && node->child->type == MXML_TYPE_COMMENT)
267   node = node->child;
268
269  if (!node || node->type != MXML_TYPE_COMMENT)

We are in mxmlSetDeclarationf(), so probably it is MXML_TYPE_DECLARATION instead of MXML_TYPE_COMMENT.

Whoops, yes that needs to be fixed.

[master 0c97db4] Fixed mxmlSetDeclarationf implementation (Issue #322)