Add comment to alternateRelExists check
This commit is contained in:
parent
f6bbc2fa6f
commit
4f3135dcc6
3
entry.go
3
entry.go
@ -81,6 +81,9 @@ func (e *Entry) Check() error {
|
|||||||
return fmt.Errorf("content element of entry %v: %v", e.ID.URI, err)
|
return fmt.Errorf("content element of entry %v: %v", e.ID.URI, err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// atom:entry elements that contain no child atom:content element MUST
|
||||||
|
// contain at least one atom:link element with a rel attribute value of
|
||||||
|
// "alternate".
|
||||||
if !alternateRelExists(e.Links) {
|
if !alternateRelExists(e.Links) {
|
||||||
return errors.New("no content element of entry %v and no link element with rel \"alternate\"")
|
return errors.New("no content element of entry %v and no link element with rel \"alternate\"")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user