I have a pretty complex page set up which may be difficult to illustrate here, part of the page is creating dynamic components.
If I run my page standalone everything works properly; the components get created without any issues. However if I run my page in a page include it errors at a specific line of my javascript to create the XML for the component:
$('#'+curEleArr.join('-'),xml).append(''); ``` The error here is: Failed to set the 'innerHTML' property on 'Element': The provided markup is invalid XML, and therefore cannot be inserted into an XML document.
Note: This works fine on the standalone page, but if the page is inside a page include it fails. Also note: I have similar code above this that does not throw an error, why does the error get thrown here specifically?
I've already checked the ID (curEleArr.join) and that looks fine as well as the value of 'field' that also looks fine. I'm really perplexed as to why this is throwing this error and more specifically why it only occurs when the page is a page include, not when I run the page standalone.
Any ideas here?
Thanks!