I'm not getting the DOM values InDesign Version 18.
We have created the customized epub export by using Indesign script and working fine in InDesign version 17.
However, I'm not getting the DOM values for HTML Body count (Example: fileBodys.length()) in indesign version 18. Also i have copy pasted the sample code for your reference.
----------------------------------------------
if (fileBodys.length() != 0)
{
for (var bcount = 0; bcount < fileBodys.length(); bcount++)
{
if (fileBodys[bcount].localName() == "body")
{
if (fileBodys[bcount]. @ id != "remove")
{
var NewHtml = new XML("<html><html>");
NewHtml.appendChild(ahtml.dom.head.copy());
NewHtml.appendChild(fileBodys[bcount].copy());
var NewFile = null;
if (ahtml.file.name.startsWith("p"))
---------------------------------------------
