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

Same IDs are causing conflicts #45

@r007

Description

@r007

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions