[webcomponents]: Changing API from constructable ShadowRoot to factory-like

2012-11-07 Thread Dimitri Glazkov
Folks, Throughout the year-long (whoa!) history of the Shadow DOM spec, various people commented on how odd the constructable ShadowRoot pattern was: var root = new ShadowRoot(host); // both creates an instance *and* makes an association between this instance and host. People (I cc'd most of

Re: [webcomponents]: Changing API from constructable ShadowRoot to factory-like

2012-11-07 Thread Elliott Sprehn
I'm for 1) , having a constructor with side effects is confusing and inconsistent with the platform (and other languages). On Wed, Nov 7, 2012 at 10:36 AM, Dimitri Glazkov dglaz...@google.comwrote: Folks, Throughout the year-long (whoa!) history of the Shadow DOM spec, various people

[IndexedDB] Attributes with undefined vs. null

2012-11-07 Thread Joshua Bell
Various atttributes in IndexedDB signal no value with |undefined|: IDBKeyRange.lowerBound (if not set) IDBKeyRange.upperBound (if not set) IDBRequest.result (on error, or on successful deleteDatabase/get with no value/delete/clear) IDBCursor.key (if no found record) IDBCursor.primaryKey (if no

Re: [IndexedDB] Attributes with undefined vs. null

2012-11-07 Thread Tab Atkins Jr.
On Wed, Nov 7, 2012 at 10:53 AM, Joshua Bell jsb...@chromium.org wrote: Various atttributes in IndexedDB signal no value with |undefined|: IDBKeyRange.lowerBound (if not set) IDBKeyRange.upperBound (if not set) IDBRequest.result (on error, or on successful deleteDatabase/get with no