W3C home > Mailing lists > Public > public-webapi@w3.org > May 2007

Re: Comments on element traversal specification...

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 23 May 2007 13:32:19 +1000
To: public-webapi@w3.org
Message-ID: <20070523033219.GA20905@arc.mcc.id.au>

Jonas Sicking:
> In any case, using element traversal you can decently easy check if 
> content is skipped so that you can indicate an error, simply check if 
> myElem.nextElementSibling != myElem.nextSibling

  || myElement.nextSibling.isElementContentWhitespace

which is I think what Ray was after.  But I agree, having
ElementTraversal always ignore Text nodes will be more useful than
defining .{next,previous}ElementOrUsefulTextSibling methods.

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Wednesday, 23 May 2007 03:32:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:57 GMT