[Webkit-unassigned] [Bug 225226] New: Blob contentType with charset renders html as plain text
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 30 01:25:45 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225226
Bug ID: 225226
Summary: Blob contentType with charset renders html as plain
text
Product: WebKit
Version: Safari 14
Hardware: iPhone / iPad
OS: iOS 14
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: pasel at blueend.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
Running Safari on iOS 14.5 (iPhone, iPad) will render HTML content as plaintext when the Blob.type is 'text/html; charset=UTF-8'.
Reproduktion Example:
https://jsfiddle.net/9h71Lqb0/
The following code will not work in iOS 14.5 anymore:
var html = `<h1>This is Blob Content</h1>`;
var blob = new Blob([html], {type: 'text/html; charset=UTF-8'});
var iframe = document.querySelector("iframe");
iframe.src = URL.createObjectURL(blob);
The following code is working as expected and showcases the behaviour in earlier versions:
var html = `<h1>This is Blob Content</h1>`;
var blob = new Blob([html], {type: 'text/html'});
var iframe = document.querySelector("iframe");
iframe.src = URL.createObjectURL(blob);
There might be some connection/relation to https://bugs.webkit.org/show_bug.cgi?id=225057 which has been submitted earlier this week.
--
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/20210430/f14d3514/attachment-0001.htm>
More information about the webkit-unassigned
mailing list