Ignorable whitespace, not just whitespace. I think the feature should be "include ignorable whitespace as text nodes" and off by default.
arkin Andy Clark wrote: > > I'm volunteering to put the feature for whitespace nodes > in the DOM tree. The only things that we need to decide are: > > 1) the feature ID > 2) the default value > > Should the feature reflect that we're "removing" whitespace > nodes from the DOM tree? or should it reflect that we're > "adding" whitespace nodes? Let's say, for argument, that > we select the latter. Then the feature ID could be something > like this: > > http://apache.org/xml/features/dom/whitespace-nodes > > Is this acceptable to everyone? > > And given the fact that we have a nice set of serializers > now, I would be in favor of supporting the stance that the > parser does NOT add whitespace nodes, by default. > > Assuming there's quick concensus, I'll make the changes. > > -- > Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]