Commit b174bde5 authored by Romain Courteaud's avatar Romain Courteaud

erp5_run_my_doc: fixup wrong pseudo selector

details is not always the last child
parent d743396c
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
// No idea what it is for now // No idea what it is for now
// Get the comment // Get the comment
details = slide.querySelector(':scope > details:last-child'); details = slide.querySelector(':scope > details:last-of-type');
if (details !== null) { if (details !== null) {
result.comment_html = details.innerHTML; result.comment_html = details.innerHTML;
slide.removeChild(details); slide.removeChild(details);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment