cobrateam / cobrateam/django-htmlmin

HTML5 self-closing tags incorrectly become XHTML tags

Open
#37 2 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Python
Stars
542
Forks
72
PR merge metrics
No merged PRs in 30d

Description

I'm finding that, after going through the django-htmlmin middleware implicity self-closing tags (HTML5-style) are becoming explicity self-closed tags (XHTML-style).

For example the `` tag here…

```

```

…incorrectly becomes self-closing after going through the middleware:

```

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the django-htmlmin middleware path that transforms the shown HTML and reproduce the change from an HTML5-style tag to an XHTML-style self-closing tag. Done means HTML5 implicit self-closing tags remain unclosed after minification; compare the middleware output with the issue's examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.