Make sure that the contents of the element is still in place when html(Function) is called. Fixes #6733.
Attach a file by drag & drop or click to upload