bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug xml parser emacs 21.1


From: Alex Schroeder
Subject: Re: bug xml parser emacs 21.1
Date: Sun, 04 Nov 2001 22:37:39 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu)

"Stefan Monnier" <monnier+gnu.emacs.bug/news/@RUM.cs.yale.edu> writes:

>>>>>> "Patrick" == Patrick Gundlach <address@hidden> writes:
>> <one>
>>   <two>
>>   </two>
>>  <!-- comment -->
>> </one>
> [...]
>> if I evaluate  the (progn...) stuff, the result is
>> (one nil (two nil) nil)
>> without the comment in the fourth line, the result is
>> (one nil (two nil))
>> The two results should be exactly the same, not caring about comments.
> 
> Agreed.

I do not agree.  If you look at the "Document Object Model (DOM) Level
3 Core Specification", it specifically lists comments:

    Object Comment
         Comment has the all the properties and methods of the CharacterData
         object as well as the properties and methods defined below.

Comments are part of the parsed data.  Perhaps they are not used by
the application, but stripping them from the model would be the wrong
thing to do.

Alex.
-- 
http://www.emacswiki.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]