Handling bad comments

Christian Neuss neuss at igd.fhg.de
Thu Aug 3 02:09:53 PDT 1995


> I think this one has come up before, but among the many modifications
> to  handle bad HTML, it would be great if you could handle comments
> that  aren't closed properly.  E.g:
>
> <!-- This is bad html>
>

[munch]
> Again, no criticism of OW implied.  This is bad html.  But it would be
> great if OW could handle it gracefully.

I must disagree.. handling comments correctly (like OmniWeb does) allows
for "commenting out" not only text, but complete HTML code. An example:
<!-- this is the <I> text </I> as it was before -->
won't be displayed at all.

By accepting every ">" as the end of comment, the text will be displayed
like this:
as it was before -->

Thius leads to having to delete every ">" when commenting out long passages
of HTML. I find OW's behaviour to be not only correct, but exactly what I
need. Does anybody know how browsers other then NutScape behave?

Kind regards,
Chris
---
"I ride tandem with a random.."
Christian Neuss   # Fraunhofer Institute for Computer Graphics
Wilhelminenstr.7  # 64283 Darmstadt # Germany # P+++>+++++ (sic)
e-mail: neuss at igd.fhg.de  http://www.igd.fhg.de/~neuss/me.html


More information about the OmniWeb-l mailing list