Spent the day thinking hard about about DOM issues/improvements today; group consensus is that MSFT was _TOTALLY RIGHT_ about `element.uniqueID`https://msdn.microsoft.com/en-us/library/ff628794(v=vs.85).aspx …
-
-
let uid = 0; Object.defineProperty( Node.prototype, 'uniqueID', {get() { return this.nodeType == 9 ? (++uid + Math.random() + '') : Object.defineProperty( this, 'uniqueID', {value: ++uid + Math.random() + ''} ).uniqueID; }} );
-
seems easy enough to polyfill; also a no brainer to ship ?!?
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.