eliom icon indicating copy to clipboard operation
eliom copied to clipboard

Client nodes not working with table elements

Open paurkedal opened this issue 9 years ago • 10 comments

With Eliom 5.0.0 the following program attaches the client-side <td/> and <tr/> elements to the top level instead of inside the table. In particular the "one" and "three" is correctly placed, while "two" and "second line" are detached.

[%%shared
  open Eliom_content.Html5
]

let handler () () = Lwt.return @@
  Eliom_tools.D.html ~title:"Test <td/> Nodes"
    (D.body [
      D.table ~a:[F.a_style "border: solid thin green"] [
        D.tr [
          D.td [D.pcdata "one"];
          C.node [%client D.td [D.pcdata "two"]];
          D.td [C.node [%client D.pcdata "three"]];
        ];
        C.node [%client D.tr [D.td [D.pcdata "second line"]]];
      ]
    ])

module App = Eliom_registration.App
  (struct let application_name = "test_td_nodes" end)
let service =
  App.register_service ~path:[] ~get_params:Eliom_parameter.unit handler

paurkedal avatar May 28 '16 07:05 paurkedal