Menu

#849 Invalid 'Mismatched HTML tags' yellow warning

v1.0 (example)
closed-fixed
None
5
2026-03-28
2026-01-25
Ahasuerus
No

When a user creates a submission with "table" and/or "td" tags with attributes in the Note (and/or Synopsis) field, the submission review software displays an invalid 'Mismatched HTML tags' yellow warning. This is due to the fact that class isfdbUI in common/library.py includes "table" and "td" in the self.required_paired_tags list. The list is checked in mismatchedHtmlTagsPresent , which is called from invalidHtmlInNotes. mismatchedHtmlTagsPresent should allow "table" and "td" both with and without attributes.

Discussion

  • Ahasuerus

    Ahasuerus - 2026-03-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -When a user creates a submission with "table" and/or "td" tags with attributes in the Note (and/or Synopsis) field, the submission review software displays an invalid 'Mismatched HTML tags' yellow warning. This is due to the fact that class isfdbUI in common/library.py includes "table" and "td" in the self.required_paired_tags list. The list is checked in mismatchedHtmlTagsPresent , which is called from invalidHtmlInNotes. "table" and "td" should be moved from self.required_paired_tags list to self.optional_paired_tags. They are already included in self.tags_with_attributes.
    +When a user creates a submission with "table" and/or "td" tags with attributes in the Note (and/or Synopsis) field, the submission review software displays an invalid 'Mismatched HTML tags' yellow warning. This is due to the fact that class isfdbUI in common/library.py includes "table" and "td" in the self.required_paired_tags list. The list is checked in mismatchedHtmlTagsPresent , which is called from invalidHtmlInNotes. mismatchedHtmlTagsPresent should allow "table" and "td" both with and without attributes.
    
     
  • Ahasuerus

    Ahasuerus - 2026-03-28
    • status: open --> closed-fixed
    • assigned_to: Ahasuerus
     
  • Ahasuerus

    Ahasuerus - 2026-03-28

    Fixed in common/library.py, installed in SVN 1290 on 2026-03-28. Closing the Bug report.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB