Skip to content Skip to sidebar Skip to footer

Browser Detect Contenteditable Features

I realise browser detection is not generally a good idea, however as each browser has a different implementation of contenteditable, I need a way to separate out my fixes for each.

Solution 1:

Actually, I decided to go with quite an interesting solution to this: Use css browser prefixes to detect the browser.

for instance if(elem.style["MozBorderRadius"] != undefined) targets firefox1+ and the same can be done with WebkitBorderRadius.

Post a Comment for "Browser Detect Contenteditable Features"