"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tpl/internal/go_templates/htmltemplate/html.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

html.go  (hugo-0.80.0):html.go  (hugo-0.81.0)
skipping to change at line 243 skipping to change at line 243
if len(s) == 0 { if len(s) == 0 {
// Avoid violation of structure preservation. // Avoid violation of structure preservation.
// <input checked {{.K}}={{.V}}>. // <input checked {{.K}}={{.V}}>.
// Without this, if .K is empty then .V is the value of // Without this, if .K is empty then .V is the value of
// checked, but otherwise .V is the value of the attribute // checked, but otherwise .V is the value of the attribute
// named .K. // named .K.
return filterFailsafe return filterFailsafe
} }
s = strings.ToLower(s) s = strings.ToLower(s)
if t := attrType(s); t != contentTypePlain { if t := attrType(s); t != contentTypePlain {
// TODO: Split attr and element name part filters so we can white // TODO: Split attr and element name part filters so we can recog
list nize known attributes.
// attributes.
return filterFailsafe return filterFailsafe
} }
for _, r := range s { for _, r := range s {
switch { switch {
case '0' <= r && r <= '9': case '0' <= r && r <= '9':
case 'a' <= r && r <= 'z': case 'a' <= r && r <= 'z':
default: default:
return filterFailsafe return filterFailsafe
} }
} }
 End of changes. 1 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)