| Summary: | Nested template contents are not cloned by document.importNode | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jake <jake.wolpert> | ||||||
| Component: | DOM | Assignee: | Ryosuke Niwa <rniwa> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | cdumez, commit-queue, darin, dbates, eoconnor, kling, rniwa, yyx990803 | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Mac (Intel) | ||||||||
| OS: | Unspecified | ||||||||
| URL: | http://jsfiddle.net/jakecigar/sxe7dzc4/3/ | ||||||||
| Bug Depends on: | 137755 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
Any ideas? Workarounds? Commiseration? See also: bug 137755. *** Bug 137755 has been marked as a duplicate of this bug. *** Created attachment 243346 [details]
Fixes the bug by sharing code with cloneNode
Created attachment 243347 [details]
Fixes the bug by sharing code with cloneNode 2
Comment on attachment 243347 [details]
Fixes the bug by sharing code with cloneNode 2
r=me
Comment on attachment 243347 [details] Fixes the bug by sharing code with cloneNode 2 Clearing flags on attachment: 243347 Committed r177372: <http://trac.webkit.org/changeset/177372> All reviewed patches have been landed. Closing bug. Thanks so much for the fix! It works nicely in my real page. Will this be in the next Safari for OS X and IOS? (In reply to comment #9) > Thanks so much for the fix! It works nicely in my real page. > > Will this be in the next Safari for OS X and IOS? Apple does not comment on future product plans. |
Given a nested template… <template id="select"> <fieldset> <legend>{{name}}</legend> <select> <option>pick something!</option> <template id="option"> <option value="{{value}}">{{text}}</option> </template> </select> </fieldset> </template> I can’t access the .content after the nested template has been duplicated with document.importNode. http://jsfiddle.net/jakecigar/sxe7dzc4/3/ PS It works in Chrome and firefox.