Bugs item #1442874, was opened at 2006-03-04 03:15
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1442874&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 3
Submitted By: Daniel (danielx_)
Assigned to: Nobody/Anonymous (nobody)
Summary: handling comments with markupbase and HTMLParser

Initial Comment:
If the following webpage is correct about the
definition of a comment, HTMLParser.HTMLParser reports
valid (albiet strange) comments as being erroenous:

http://www.htmlhelp.com/reference/wilbur/misc/comment.html

This site gives '<!>' as an example of a valid html
comment. See attachment for what happens at the
console. A similar thing happens with other
(pathalogical) form of comments.

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-03-09 13:28

Message:
Logged In: YES 
user_id=849994

Updated markupbase to cope with "<!>" in rev. 42938.

----------------------------------------------------------------------

Comment By: Jim Jewett (jimjjewett)
Date: 2006-03-06 20:41

Message:
Logged In: YES 
user_id=764593

I recommend this as a wontfix.  

As the page itself notes, browsers generally got this 
wrong, and existing webpages rely on this buggy behavior.  
Even today, Opera is going back and forth on how right they 
can afford to be without breaking too many pages.

The suggestion at the bottom of the page notes that if you 
keep your comments sane, you won't have problems on your 
own pages.  Realistically, anything not following that rule 
(no embedded -- or >) is effectively buggy, and HTMLParser 
can only guess at the real intention.


----------------------------------------------------------------------

Comment By: Daniel (danielx_)
Date: 2006-03-04 03:17

Message:
Logged In: YES 
user_id=1383230

Sorry, I'm unfamiliar with the bug reporting system and my
attachment doesn't seem to have attached.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1442874&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to