Skip to content

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

Open
@Atry

Description

@Atry

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> -> )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions