edmellum / browserijade

A Browserify middleware that pre-compiles Jade templates on the server and uses the light-weight Jade runtime made for the browser to render them on the client.
21 stars 6 forks source link

bug: duplicated content for two elements because of the same class #12

Closed samholmes closed 11 years ago

samholmes commented 11 years ago
if pin.blog
    .blog
        section
            a(href='/blog/#{pin.blog.blogId}')
                h1= pin.blog.title
                .body!= pin.blog.excerpt

if (pin.bodyHTML)
    .body!= pin.bodyHTML

both of the .body elements get the same content which is pin.bodyHTML + pin.blog.excerpt. This is an error. If I change one of the element's class name, to say, .blog-body, then each element has different content as it should.

What's going on here? Is this browserijade's fault/error?

samholmes commented 11 years ago

This is a false report. Turns out that jQuery was the culprit. Non-issue; closing.