W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > October 2010

Re: ISSUE-58: PlainLiteral and TypedLiteral value for strings [RDFa 1.1 API]

From: Toby Inkster <tai@g5n.co.uk>
Date: Thu, 28 Oct 2010 18:43:13 +0100
To: nathan@webr3.org
Cc: RDFa Working Group WG <public-rdfa-wg@w3.org>, sysbot+tracker@w3.org
Message-ID: <20101028184313.0db888ce@miranda.g5n.co.uk>
On Thu, 28 Oct 2010 11:54:29 +0100
Nathan <nathan@webr3.org> wrote:

> Primarily, if we have the following triple:
> 
>    <#nbsp> <http://example.com/lit> "Hello \n\tWorld." .
> 
> Do we expect the related call to object.toString() and/or
> object.value to return
> 
> "Hello \n\tWorld."
> 
> or
> 
> "Hello
> 	World."

I would expect the following to succeed (assuming an assert function is
defined which takes an expression and throws an exception if the
expression is false):

	assert(object.toString() == object.value);
	assert(object.toString() == "Hello \n\tWorld.");
	assert(object.toString() != "Hello \\n\\tWorld.");

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Thursday, 28 October 2010 17:43:45 UTC

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