Skip to content

Commit

Permalink
HTML: keep value on translate attribute, fixes #352
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Nov 17, 2020
1 parent 6ca3e68 commit db38345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions html/html_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func TestHTML(t *testing.T) {
{`<script><!--<`, `<script><!--<`},

// bugs
{`<span translate="no">`, `<span translate=no>`}, // #352
{`<input title=""><input lang="">`, `<input title><input lang>`}, // #331
{`<amp-analytics type=adobeanalytics_nativeConfig>`, `<amp-analytics type=adobeanalytics_nativeConfig>`}, // #270
{`<p>text</p><br>text`, `<p>text</p><br>text`}, // #122
Expand Down
2 changes: 1 addition & 1 deletion html/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ var attrMap = map[Hash]traits{
Tabindex: trimAttr,
Target: caselessAttr,
Text: caselessAttr,
Translate: booleanAttr,
Translate: caselessAttr,
Truespeed: booleanAttr,
Type: caselessAttr,
Typemustmatch: booleanAttr,
Expand Down

0 comments on commit db38345

Please sign in to comment.