Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The last element in HTML interpolation are inserted twice (Binding.scala 13.x) #439

Open
Atry opened this issue Feb 16, 2022 · 0 comments
Open

Comments

@Atry
Copy link
Collaborator

Atry commented Feb 16, 2022

The following test added from Atry@fc86e72 fails

  "bug in todoapp" in {
    val children = html"<section>${"text"}</section><footer></footer>"
    *[Future] {
      (
        for snapshot <- !Await(children.snapshots.toLazyList)
        yield {
          for node <- snapshot.toList
          yield node.asInstanceOf[Element].outerHTML
        }.mkString
      ) should be(
        LazyList(
          "", "<footer></footer>", "<section>text</section><footer></footer>"
        )
      )
    }
  }
[info] - bug in todoapp *** FAILED ***
[info]   LazyList("", "<footer></footer>", "<section>text</section><footer></footer>", "<section>text</section><footer></footer><footer></footer>") was not equal to LazyList("", "<footer></footer>", "<section>text</section><footer></footer>") (htmlSpec.scala:48)
[info]   Analysis:
[info]   LazyList(3: <section>text</section><footer></footer><footer></footer> -> )
Atry added a commit to Atry/Binding.scala that referenced this issue Feb 17, 2022
Atry added a commit to Atry/Binding.scala that referenced this issue Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant