[Webkit-unassigned] [Bug 216900] New: Inline <img> not rendered if there is whitespace between "data:image/png; " and base64 content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 23 14:45:04 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=216900

            Bug ID: 216900
           Summary: Inline <img> not rendered if there is whitespace
                    between "data:image/png;" and base64 content
           Product: WebKit
           Version: Safari 14
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jeffreyca16 at gmail.com

The following does not render on Safari (macOS, iOS), but does on Chrome and Firefox:

<img src="data:image/png; base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="/>

The following renders on Safari:

<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="/>

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="/>

Codepen: https://codepen.io/JeffreyCA/pen/BaKMNPR

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200923/5960b699/attachment-0001.htm>


More information about the webkit-unassigned mailing list