[tex4ht] tex4ht remove image id from HCode passed. Makes animation no longer work

Michal Hoftich michal.h21 at gmail.com
Wed Jan 31 12:49:39 CET 2024


Hi Nasser,

>
> I found the fix.
>
> I just needed to do this
>
> \HCode{
> <img id="#4" src=#3 rel:animated_src=#1 rel:auto_play="0" width=#2 />\Hnewline
>
> instead of
>
> \HCode{
> <img id=#4 src=#3 rel:animated_src=#1 rel:auto_play="0" width=#2 />\Hnewline
>
> as I had it. I must have changed this myself without knowing.

it is possible that the id attribute was removed by DOM filters. They
should support unquoted attributes, but in general, it is better to
always use quotes for attributes, to prevent issues such as this.

Best regards,
Michal


More information about the tex4ht mailing list.