Bug 167662 - <style> generated via DOMParser & hosted in a <template> won't fire load/error events after RAF time
Summary: <style> generated via DOMParser & hosted in a <template> won't fire load/erro...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 10
Hardware: Mac macOS 10.12
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 13:49 PST by valdrinkoshi
Modified: 2019-02-06 09:18 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valdrinkoshi 2017-01-31 13:49:23 PST
I'm using DOMParser to generate nodes (e.g. <style>) from a string, and I host these in a <template>.content document fragment.

Some time later, I append the <template>.content to the main document.

In Safari 10 load/error events don't get fired by the generated <style> if we append the fragment after RAF time (or later)
http://jsbin.com/hesinuh/2/edit?html,output
Comment 1 Ryosuke Niwa 2017-02-04 19:31:22 PST
The test case works on STP20 so this must have been fixed already.
Comment 2 Ryosuke Niwa 2017-02-12 20:55:48 PST
I can't even reproduce in r207475.
Comment 3 Ryosuke Niwa 2017-02-13 15:14:06 PST
Fixed by https://trac.webkit.org/changeset/206541.
Comment 4 Lucas Forschler 2019-02-06 09:18:35 PST
Mass move bugs into the DOM component.