HTML5: Fix attachLWF rendering problem