Re: [xml] ignorable whitespace in HTML

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Aug 29 2000 - 05:23:15 EDT


On Tue, Aug 29, 2000 at 02:10:56AM -0700, Wayne Davison wrote:
> The recent ignoreable-whitespace changes have been very helpful in getting
> rid of most of the superfluous <P> tags. However, there was still a
> problem with newlines occurring outside the HEAD and BODY sections (but
> inside the HTML section). For instance:
>
> <HTML>
> <HEAD>
> <TITLE>test</TITLE>
> </HEAD>
> <BODY>
> Test!
>
> This would insert <BODY><P> after the <HTML> tag and </P> prior to the
> <HEAD> tag.
>
> It appears that a simple addition to areBlanks() fixes this:
>
> if (!xmlStrcmp(ctxt->name, BAD_CAST"html"))
> return(1);

  Yep, I actually intended to add this one but forgot too, thanks
for catching it, applied,

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 29 2000 - 02:44:16 EDT