W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Re: Improving the DOM

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 08 Nov 2011 17:50:49 -0500
Message-ID: <4EB9B249.3020506@mit.edu>
To: www-dom@w3.org
On 11/8/11 5:41 PM, Olli Pettay wrote:
> On 11/08/2011 11:30 PM, Anne van Kesteren wrote:
>> Here is a revised proposal based on Ojan's earlier proposal to this
>> list. These new methods are subject to compatibility testing.
>>
>> We introduce a DocumentContent union type (DOMString maps to a Text
>> node):
>
> DOMString as Text node feels quite awkward. All the JS strings in a web
> page would have .previous/nextSibling properties?

I believe the proposal is that passing a string to a WebIDL method 
taking a DocumentContent would make a textnode with that string and then 
work with it.  Just like passing the number 5.0 to a method that takes a 
string makes the string "5" and then works with it.

-Boris
Received on Tuesday, 8 November 2011 22:51:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT