isValueByte checks if a byte is valid in an unquoted attribute value. See: https://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2
(c byte)
| 362 | // isValueByte checks if a byte is valid in an unquoted attribute value. |
| 363 | // See: https://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2 |
| 364 | func isValueByte(c byte) bool { |
| 365 | return 'A' <= c && c <= 'Z' || |
| 366 | 'a' <= c && c <= 'z' || |
| 367 | '0' <= c && c <= '9' || |
| 368 | c == '_' || c == ':' || c == '-' |
| 369 | } |
| 370 | |
| 371 | // readEndTag reads an end tag. |
| 372 | func (d *Decoder) readEndTag() (Name, bool) { |
nothing calls this directly
no outgoing calls
no test coverage detected