Added and corrected comments
This commit is contained in:
@@ -17,8 +17,11 @@ type XHTMLText struct {
|
||||
XHTMLDiv XHTMLDiv
|
||||
}
|
||||
|
||||
// isText checks whether the XHTMLText is a Text. It returns a bool.
|
||||
func (x *XHTMLText) isText() bool { return true }
|
||||
|
||||
// Check checks the XHTMLText for incompatibilities with RFC4287. It returns an
|
||||
// error.
|
||||
func (x *XHTMLText) Check() error {
|
||||
if x.Type != "xhtml" {
|
||||
return errors.New("type attribute of xhtml text must be xhtml")
|
||||
|
Reference in New Issue
Block a user