Updating content attribute if specified.