W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Foster parenting characters (detailed review of parsing algorithm)

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 10 Jul 2007 21:35:58 +0300
Message-Id: <A5D74B3E-A649-4257-A4EC-7E5D98F5C8A5@iki.fi>
To: "public-html@w3.org WG" <public-html@w3.org>

(This is part of my detailed review of the parsing algorithm.)

Since space characters are unconditionally not foster parented, the  
results of the tree builder are inconsistent with Gecko and WebKit  
DOM and rendering and with Presto rendering. If you have the  
character tokens "foo bar" and the current node is "table", "foobar"  
get foster parented and " " doesn't according to the current draft.  
WebKit and Gecko foster parent "foo bar". Presto seems to achieve  
results that render similarly except the space renders as a line  
break (by foster parenting in the CSS box tree?).

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE% 
20html%3E%0A%3Ctable%3E%3Ctr%3E%3Ctd%3ECell%3C/td%3E%3C/tr%3E%20%20% 
20%3Ctr%3E%3Ctd%3ECell%3C/td%3E%3C/tr%3E%3C/table%3E%0A%3Ctable%3E% 
3Ctr%3E%3Ctd%3ECell%3C/td%3E%3C/tr%3Efoo%20bar%3Ctr%3E%3Ctd%3ECell%3C/ 
td%3E%3C/tr%3E%3C/table%3E%0A%3Ctable%3E%3Ctr%3E%3Ctd%3ECell%3C/td%3E% 
3C/tr%3E%3Cspan%3Efoo%20bar%3C/span%3E%3Ctr%3E%3Ctd%3ECell%3C/td%3E% 
3C/tr%3E%3C/table%3E

Tested Firefox 2.0.0.4, Minefield 2007070904, Opera 9.20, Safari  
2.0.4 and WebKit rev 21967.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Tuesday, 10 July 2007 18:36:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT