Re: [xml] Auto-close in HTML parser.

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Oct 24 2000 - 04:31:59 EDT


On Mon, Oct 23, 2000 at 06:29:25PM +0200, TOM wrote:
> No, since <option> isn't an empty element but an element whose closing
> tag is ignorable.
> Doing this (considere <option> an empty element) you break up parsing
> when you have the closing tag : <option>My option</option>

  Hum, I disagree, take the example of p
it's in the same class and the way it's fixed is the same:
  add p in the list of the tags autoclosing itself

"p", "p", "head", "h1", "h2", "h3", "h4", "h5", "h6", NULL,

  and same is applied to option

"option", "option", NULL,

  Marc suggestion seems the adequate way to handle this. There may be
more element which can close option, in that case they should be added.

Daniel

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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Oct 24 2000 - 04:44:51 EDT