#4064 - Behaviour of XHTML cleanup code is inconsistent with HTML5 cleanup algorithm

Identifier #4064
Issue type Trivial issue (does not break functionality)
Title Behaviour of XHTML cleanup code is inconsistent with HTML5 cleanup algorithm
Status Completed
Handling member Chris Graham
Version 10.0.29
Addon core
Description HTML5 cleans up self-closing tags that are not meant to be self-closing by stripping the self-closing, and then injects the closing of still-open tags while it finds that the next closer is not a match to the last thing opened.

The Composr XHTML cleanup tool leaves the self-closer alone.

This inconsistency may lead to confusion with AJAX-loaded HTML - which gets pre-cleaned by Composr because the AJAX JavaScript needs it to be XML-compliant. "Why are tags self-closing in one situation but not the other" a user may ask.

Give the Composr cleanup tool the same behaviour, which requires knowledge of which HTML tags are not meant to self-close.
Steps to reproduce

Funded? No
Commits

Fixed MANTIS-4064 (Behaviour of XHTML cleanup code is inconsistent with HTML5 cleanup algorithm) (b004243a) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated