Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f838982

Browse files
authored
Remove </input> tag in animation.HTMLWriter
HTML `<input>` tags are not closed by `</input>`, including it causes some HTML parsers to fail.
1 parent c6bad8c commit f838982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/_animation_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
<div class="anim-controls">
197197
<input id="_anim_slider{id}" type="range" class="anim-slider"
198198
name="points" min="0" max="1" step="1" value="0"
199-
oninput="anim{id}.set_frame(parseInt(this.value));"></input>
199+
oninput="anim{id}.set_frame(parseInt(this.value));">
200200
<div class="anim-buttons">
201201
<button title="Decrease speed" aria-label="Decrease speed" onclick="anim{id}.slower()">
202202
<i class="fa fa-minus"></i></button>

0 commit comments

Comments
 (0)