Fix 'TypeError: undefined is not a function' for attributes on comments.