General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › DOMElement.nodeValue behavior in XMetaL Author 8 SP1
-
mjkhan August 2, 2013 at 4:02 pm
DOMElement.nodeValue behavior in XMetaL Author 8 SP1
August 2, 2013 at 4:02 pmParticipants 0Replies 1Last Activity 9 years, 6 months agoWe have recently upgrade the XMetaL Author Enterprise from 6 SP1 to 8 SP1. Some of our custom functionality starting behaving incorrectly. Looking into the issue we found that DOMElement.nodeValue is now returning whole xml string. In XMetaL Author 6 SP1 API the DOMElement.nodeValue returns the value as null.
The Programmer's guide states that according to DOM specification it should be null for DOMElement but is not clear how XMetaL API handles it. What is the correct behavior? We are using
XMetaL Enterprise Author 8 SP1
XMetaL Developer 7
Windows 7 Enterprise SP1 64-bit
Visual Studio 2010 Ultimate SP1Thanks
MahmoodDerek Read August 2, 2013 at 7:08 pm
Reply to: DOMElement.nodeValue behavior in XMetaL Author 8 SP1
August 2, 2013 at 7:08 pmIt looks like this behaviour has changed. Up to version 7 this API returns an empty string (slightly different from null). I can reproduce the behavior in 8.0 but at this point I'm not sure if this was done on purpose or in error. Given my understanding of the DOM I suspect it is a bug.
The developer that can best confirm this is currently unavailable so it might take a while to get you a good answer.
If you can work around this by altering your code that would be my recommendation for now.
-
AuthorPosts
- You must be logged in to reply to this topic.