[Webkit-unassigned] [Bug 17897] New: Not Rendering Images Imported from XHTML Document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 17 12:07:55 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=17897

           Summary: Not Rendering Images Imported from XHTML Document
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: PC
               URL: http://weston.ruter.net/projects/test-pages/images-
                    adopted-from-xhtml/
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: westonruter at gmail.com


If an XMLHttpRequest is made for an XHTML document (with MIME type
application/xml+xhtml) and an element containing images in the responseXML
document is inserted into the requesting page, the images are not able to load.
If, however, the same page is loaded in the browser (without the XHR request)
then the images are displayed successfully.

There is a workaround, however, to this issue. After appending the element,
simply re-set each image's src DOM or content attribute.

var imgs = div.getElementsByTagName('img');
for(var i = 0; i < imgs.length; i++){
    imgs[i].src = imgs[i].src;
}

See associated URL for example of issue.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list