[Bug 2729] Whitespace text nodes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2729





------- Additional Comments From davidc@nag.co.uk  2006-01-19 15:59 -------
(In reply to comment #1)
> Are there real parsers that do this, however? 

I don't know, and that's my concern. Even just using saxon I have no idea what
happens using the parsers that can be easily used, without testing each case by
trial and error.


> 
> Looking at your option B, is there any way one can look at an InfoSet and
> determine whether it was constructed by a validating parser? 

No, apparently not as far as I can see. The nearest thing is [all declarations
processed] on the document item which I suppose could be used allthough that
doesn't really do the right thing here.

> If not, [B] looks
> like a lost cause (unless we abandon the pretence that we only look at the
> infoset and have no idea how it was created).

I would word (B) such that if you don't know how it was created, you don't
strip. Only strip if you know it was generated by a validating parser.

Received on Thursday, 19 January 2006 15:59:45 UTC