You are here: Re: Writing HTML parser wasn't as hard as I thought it'd be « HTML « IT news, forums, messages
Re: Writing HTML parser wasn't as hard as I thought it'd be

Posted by Tim Bradshaw on 04/20/07 09:57

On Apr 20, 8:48 am, rem6...@yahoo.com (Robert Maas, see http://tinyurl.com/uh3t)
wrote:
> but I saw
> an awful lot of bad HTML in the Google-Groups Advanced-Search page,
> such as many <b> and <font> that were opened but never closed, and
> also lots of <p> <p> <p> that weren't closed either. Even some
> unclosed elements of tables.

Depending on the version of HTML (on the DTD in use) omitted closing
tags may be perfectly legal. SGML has many options to allow omission
of tags, both closing and opening. This is one of the things that XML
did away with as it makes it impossible to build a parse tree for the
document unless you know the DTD. So obviously they are not omissable
for any document claiming to be XHTML I think.

P for instance has omissable close tags in HTML 4.01

--tim

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация