diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim
index dab0a15..187ba8d 100644
--- a/autoload/emmet/lang/html.vim
+++ b/autoload/emmet/lang/html.vim
@@ -501,7 +501,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite
if has_key(an, attr)
let attr = an[attr]
endif
- if type == 'jsx' && Val =~ '^{.*}$'
+ if emmet#isExtends(type, 'jsx') && Val =~ '^{.*}$'
let str .= ' ' . attr . '=' . Val
else
let str .= ' ' . attr . '=' . q . Val . q