aboutsummaryrefslogtreecommitdiff
path: root/parser/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/parser.go')
-rw-r--r--parser/parser.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/parser.go b/parser/parser.go
index 7d69e30..01ca6c3 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -363,9 +363,9 @@ func (reader *reader) parseString() (string, error) {
}
// validNameStartChar returns whether or not the rune ‘r’ is a legal rune in the
-// first position an XML tag name.
+// first position an XML tag name, or a slash.
func validNameStartChar(r rune) bool {
- return r == ':' || r == '_' ||
+ return r == '/' || r == ':' || r == '_' ||
(r >= 'A' && r <= 'Z') ||
(r >= 'a' && r <= 'z') ||
(r >= 0x000C0 && r <= 0x000D6) ||