#326 √ resolved
Andy Orahood

using part and id attr on <collection> creates a <div> and <ul> with duplicate ids

Reported by Andy Orahood | November 12th, 2008 @ 03:06 PM

When following the recipe for using parts on repeated elements, using part with an id on a collection, like this:

...

gives the id above to both the part div and the ul inside:

    Comments and changes to this ticket

    • Andy Orahood

      Andy Orahood November 12th, 2008 @ 03:09 PM

      err, the html I forgot to escape above:

      @@@ HTML ...

      gives the id above to both the part div and the ul inside:

        
        
      • Andy Orahood

        Andy Orahood November 12th, 2008 @ 03:18 PM

        Ok that didn't work, let's try backticks <collection part="notes" id="#{this_parent.typed_id}-notes"> ... </collection>

        gives the id above to both the part div and the ul inside:

        <div class='part-wrapper' id='list_item_11-notes'> <ul class="collection notes" id="list_item_11-notes">

      • Tom Locke

        Tom Locke December 1st, 2008 @ 04:41 PM

        • → State changed from “new” to “resolved”

        Thanks for reporting. Fixed in 5b81a70

      Please Login or create a free account to add a new comment.

      You can update this ticket by sending an email to from your email client. (help)

      Create your profile

      Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

      Shared Ticket Bins

      People watching this ticket