diff options
| author | Samuel Tan <samueltan@google.com> | 2017-04-13 10:57:04 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-04-20 18:53:09 +0000 |
| commit | f3f3f0d6d509bfaf30b55c0679cff366b50b7eae (patch) | |
| tree | 0643b323126543173b8ac3e3db93bbf970399a08 /src/runtime | |
| parent | 263ba3ac7b9062e22f9dbbc6f11bfb760907de45 (diff) | |
| download | go-f3f3f0d6d509bfaf30b55c0679cff366b50b7eae.tar.xz | |
html/template: ignore case when handling type attribute in script element
Convert the parsed attribute name to lowercase before checking its value in
the HTML parser state machine. This ensures that the type attribute in
the script element is handled in a case-sensitive manner, just like all
other attribute names.
Fixes #19965
Change-Id: I806d8c62aada2c3b5b4328aff75f217ea60cb339
Reviewed-on: https://go-review.googlesource.com/40650
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
