Download & Extend

Conflicting iframe IDs

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.

AttachmentSize
iframe-unique-id.patch692 bytes

Comments

#1

Assigned to:Anonymous» neffets
Status:needs review» active

#2

Status:active» fixed

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

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.