W3C home > Mailing lists > Public > www-svg@w3.org > October 2010

RE: why does <text/> have no firstChild with value ""

From: Paul Williams <pwilliams@infotrustgroup.com>
Date: Mon, 4 Oct 2010 08:25:23 -0700
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-svg <www-svg@w3.org>
Message-ID: <8FD3C07789EF874BB97A16748B1B37039A3A07AC1D@irvmail.infotrustgroup.com>
I am merely stating a fact of my expertise in implementation.  There is a difference in programming between the concepts, and that fact should be able to be modeled in data files.  It's why SQL databases have some columns that allow NULL, for instance.  A NULL column in a database could mean something different than a zero length string, depending on the business rules at hand.

-----Original Message-----
From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU] 
Sent: Monday, October 04, 2010 9:23 AM
To: Paul Williams
Cc: www-svg
Subject: Re: why does <text/> have no firstChild with value ""

On 10/4/10 11:13 AM, Paul Williams wrote:
> There is a very real, and potentially important semantic difference between the following concepts:
> Empty:<text></text>
> Null:<text/>

Uh... there is?  Last I checked, the latter is just a syntactic 
shorthand for the former in XML, with no semantic difference (e.g. the 
DOM, Infoset, etc that are produced are identical).

Received on Monday, 4 October 2010 15:25:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:28 UTC