Chat Functionality
Daniel Friesen @danielfriesen
commented on
Chat Functionality
Daniel Friesen @danielfriesen
@Sephiroth, what standards are you suggesting Firefox doesn't support?
TimidGiantArt @digitalwolf001
commented on
Chat Functionality
TimidGiantArt @digitalwolf001
IM/Chat feature won't send messages when I hit enter, it just tabs to the next line. Chrome.
Sephiroth @sephiroth
commented on
Chat Functionality
Sephiroth @sephiroth
The Firefox implementation of IndexedDB uses "1" as "readwrite" where the specification specifically specifies that "readwrite" is to be used.
Daniel Friesen @danielfriesen
commented on
Chat Functionality
Daniel Friesen @danielfriesen
@Sephiroth, you're off about that.
During standardization IndexedDB used constants with numeric values for transaction modes and all browsers initially implemented it that way. Part way through they changed to string values.
Firefox switched to the string values in Firefox 13 (while they were still using mozIndexedDB) and dropped the constants in Firefox 25.
Chrome also made the change at some point, though they still had numeric constants after the quoted Chrome 21 so I'm not sure when.
So current FF and Chrome both use strings.
And if you wanted to support these really old versions of Firefox and Chrome, all you would need to do is `window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction;` and then when you want the transaction mode `'READ_WRITE' in IDBTransaction ? IDBTransaction.READ_WRITE : 'readwrite'`.
Please login to post.