eliom
eliom copied to clipboard
Client nodes not working with table elements
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