> As long as the check is in a function, the element will be garbaged > when the function completes, no?!
As you have styled the createdElement, I think you run the risk of a DOM<->JS reference. I don't know for sure in this case. But destroying it would be safest. If you run the feature detection only once at page load, it would take a really long time for a leak to be user-affecting. Better yet, save your feature detection results in a session cookie and you effectively have nothing to worry about. -- S.
