Made some DOM fields private.

Relevant to #2242.
Merge pull request #3489 from ProgramFOX/issue2242-2

Made some DOM fields private.

Reviewed-by: jdm