if you try to do this: val = 50 dom.find('body.foo').html val It will not display 50. It doesn't throw an error, it just doesn't display anything