Bug 167662

Summary: <style> generated via DOMParser & hosted in a <template> won't fire load/error events after RAF time
Product: WebKit Reporter: valdrinkoshi
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, koivisto, rniwa
Priority: P2    
Version: Safari 10   
Hardware: Mac   
OS: macOS 10.12   

valdrinkoshi
Reported 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
Attachments
Ryosuke Niwa
Comment 1 2017-02-04 19:31:22 PST
The test case works on STP20 so this must have been fixed already.
Ryosuke Niwa
Comment 2 2017-02-12 20:55:48 PST
I can't even reproduce in r207475.
Ryosuke Niwa
Comment 3 2017-02-13 15:14:06 PST
Lucas Forschler
Comment 4 2019-02-06 09:18:35 PST
Mass move bugs into the DOM component.
Note You need to log in before you can comment on or make changes to this bug.