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: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | cdumez, koivisto, rniwa |
Priority: | P2 | ||
Version: | Safari 10 | ||
Hardware: | Mac | ||
OS: | macOS 10.12 |
valdrinkoshi
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
The test case works on STP20 so this must have been fixed already.
Ryosuke Niwa
I can't even reproduce in r207475.
Ryosuke Niwa
Fixed by https://trac.webkit.org/changeset/206541.
Lucas Forschler
Mass move bugs into the DOM component.