Posted by tobiassjosten on December 21, 2009 at 10:28am
3 followers
Jump to:
| Project: | Iframe |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | neffets |
| Status: | closed (fixed) |
Issue Summary
When rendering iframes with this module, the field's delta value is used as ID in the form of iframe-<delta>. This is fine for showing one node's many iframe fields but it breaks horribly when showing many node's iframe fields, because element IDs must be unique in (X)HTML. I have rolled a patch that makes certain each rendered iframe on a page have unique IDs by simply incrementing their ID by 1 for each field.
| Attachment | Size |
|---|---|
| iframe-unique-id.patch | 692 bytes |
Comments
#1
#2
Patch seems ok, added it to cvs.
Old "iframe-" delta id-code will now be a class-name if you need it further for css styles as iframe-delta-ID (e.g. iframe-delta-0)
#3
Automatically closed -- issue fixed for 2 weeks with no activity.