Use *XHTMLDiv
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
type InlineXHTMLContent struct {
|
||||
*CommonAttributes
|
||||
XHTMLDiv *XHTMLDiv
|
||||
Type string `xml:"type,attr"`
|
||||
XHTMLDiv XHTMLDiv
|
||||
}
|
||||
|
||||
// newInlineXHTMLContent creates a new InlineXHTMLContent. It returns a
|
||||
@@ -18,7 +18,7 @@ func newInlineXHTMLContent(mediaType string, content any) (*InlineXHTMLContent,
|
||||
return nil, fmt.Errorf("media type %v incompatible with inline xhtml content", mediaType)
|
||||
}
|
||||
|
||||
xhtmlDiv, ok := content.(XHTMLDiv)
|
||||
xhtmlDiv, ok := content.(*XHTMLDiv)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("content type %T incompatible with inline xhtml content", content)
|
||||
}
|
||||
|
Reference in New Issue
Block a user