Skip to content

Weird <!--[--> sytax causing rendering issues on html_render_diff #193

Open
@Mr0grog

Description

@Mr0grog

Version of https://science.nasa.gov/climate-change/adaptation-mitigation/ from December 2024 (and probably much earlier) are causing some weird rendering issues on html_render_diff where we are seeing text like <>>. Screenshot:

Screenshot of funky characters in diff

(See this live in Scanner)

In the source (archived copy), there are some IE conditional-comment-like syntax that I think is causing the problem:

<!--[--><div class="absolute z-top"><!--[--><!--[-->

That’s not actual conditional comments syntax, though. Maybe an error was causing this output? Or it’s something I haven’t seen before.

Then we get this mess out the other end of the diff:

&lt;<cyfunction 0x76bbfbe6a4d0="" at="" comment="">&gt;<!--<cyfunction Comment at 0x76bbfbe6a4d0-->&gt;&lt;<cyfunction 0x76bbfbe6a4d0="" at="" comment="">&gt;<!--<cyfunction Comment at 0x76bbfbe6a4d0-->&gt;<div><div class="absolute z-top">

Which seems like maybe lxml or html-parser are choking on this in a pretty painful way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions