[BUG #7273] Fixed DOMException in IE
[BUG #7273] apply source and class to nested element if we've got a wrapper