As is usual, excellent article, Mala. Thank you for taking the time to do the research and then put pen to paper in a meaningful and readable manner.
To quote from the article:
"ScriptDOM is very sparsely documented, and many of these capabilities have to be discovered by experimenting with the library and understanding it."
Heh, to summarize (IMHO), Microsoft <> Proper Documentation. Why should this be an exception?
And then there's this...
"The formatting option of ScriptDOM strips code of comments."
What in the hell is Microsoft thinking?
Are they using the same posteriorly-located brain they used when they created SPLIT_STRING() (among a litany of other features and "improvements") without returning the ordinal position of the split elements? Even if the poor handling of the CASE, the inability to suppress brackets, and the insane number of spaces used for indenting were somehow even close to be acceptable, this non-suppressible "feature" of killing all comments is a total non-starter for me.
Like I said, really incredible and very well done article, Mala. No one can take that away despite the horrors that MS continues to heap upon us in code and documentation, if the documentation actually exists.
This would be an interesting subject to talk about on Shop-Talk.