added support for class-attribute of encoder tag