To define format rules and validate rules move from class attribute to
data-* attribute
update v0.8.1.0