adding handling for classname inline element