Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Same IDs are causing conflicts #45

Open
r007 opened this issue Jun 23, 2015 · 0 comments
Open

Same IDs are causing conflicts #45

r007 opened this issue Jun 23, 2015 · 0 comments

Comments

@r007
Copy link

r007 commented Jun 23, 2015

When I have elements with unique ID in flowedContent, let's say I have gallery-1:

<div class="post-text" id="target"></div>
<div class="post-text" id="flowedContent">
  <div id="gallery-1" class="gallery">
    ...
  </div>
</div>

FTColumnFlow copies my gallery without changing its ID, so that I have 2 elements with the same ID on my page. And it causes lots of troubles for me: for example, gallery can't work properly because browser thinks that these 2 galleries it's one big gallery.

I propose to check FIRST if element have ID or not. If element have some ID, then we can add, for example, the word "-flowed" to end of the ID. And the final ID will be gallery-1-flowed. Problem resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant