[Django] #33255: Closing </Body> tag inside textarea is being lowercased

7 views
Skip to first unread message

Django

unread,
Nov 2, 2021, 1:48:25 PM11/2/21
to django-...@googlegroups.com
#33255: Closing </Body> tag inside textarea is being lowercased
-------------------------------------------+------------------------
Reporter: Dmitry Silaev | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
If there is an textarea with </Body> text inside it, it will be rendered
as </body> instead.

Simple example of template
{{{
<html>
<body>
<textarea>
<Html>
<Head></Head>
<Body></Body>
</Html>
</textarea>
</body>
</html>
}}}
Result is on the screenshot
[[Image (body.png)]]

--
Ticket URL: <https://code.djangoproject.com/ticket/33255>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 2, 2021, 1:48:47 PM11/2/21
to django-...@googlegroups.com
#33255: Closing </Body> tag inside textarea is being lowercased
---------------------------------+--------------------------------------

Reporter: Dmitry Silaev | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 3.2
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Dmitry Silaev):

* Attachment "body.png" added.

Django

unread,
Nov 2, 2021, 1:50:58 PM11/2/21
to django-...@googlegroups.com
#33255: Closing </Body> tag inside textarea is being lowercased
---------------------------------+--------------------------------------

Reporter: Dmitry Silaev | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 3.2
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Description changed by Dmitry Silaev:

Old description:

> If there is an textarea with </Body> text inside it, it will be rendered
> as </body> instead.
>
> Simple example of template
> {{{
> <html>
> <body>
> <textarea>
> <Html>
> <Head></Head>
> <Body></Body>
> </Html>
> </textarea>
> </body>
> </html>
> }}}
> Result is on the screenshot
> [[Image (body.png)]]

New description:

If there is an textarea with </Body> text inside it, it will be rendered
as </body> instead.

Simple example of template
{{{
<html>
<body>
<textarea>
<Html>
<Head></Head>
<Body></Body>
</Html>
</textarea>
</body>
</html>
}}}
Result is on the screenshot
[[Image(body.png)]]

--

--
Ticket URL: <https://code.djangoproject.com/ticket/33255#comment:1>

Django

unread,
Nov 2, 2021, 2:20:50 PM11/2/21
to django-...@googlegroups.com
#33255: Closing </Body> tag inside textarea is being lowercased.
---------------------------------+--------------------------------------

Reporter: Dmitry Silaev | Owner: nobody
Type: Bug | Status: closed

Component: Template system | Version: 3.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

Thanks for this report, however I cannot reproduce this issue. Django
doesn't do anything specific with HTML inside the `<textarea>` so I don't
believe Django is at fault.

--
Ticket URL: <https://code.djangoproject.com/ticket/33255#comment:2>

Reply all
Reply to author
Forward
0 new messages