diff --git a/xmodules/htmlx/element.go b/xmodules/htmlx/element.go
index 1544de3..8041c52 100644
--- a/xmodules/htmlx/element.go
+++ b/xmodules/htmlx/element.go
@@ -62,14 +62,13 @@ func MakeElements(args ...tengo.Object) ([]*Element, error) {
el, ok := arg.(*Element)
if !ok {
str, ok := tengo.ToString(arg)
- if !ok {
- return nil, tengo.ErrInvalidArgumentType{
- }
+ if ok {
+ s = append(s, &Element{
+ Tag: RawTag,
+ Content: str,
+ })
}
- s = append(s, &Element{
- Tag: RawTag,
- Content: str,
- })
+ continue
}
s = append(s, el)
}