Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the find domNode's innerHTML ? #26

Closed
amazing-gao opened this issue May 8, 2015 · 3 comments
Closed

How to get the find domNode's innerHTML ? #26

amazing-gao opened this issue May 8, 2015 · 3 comments

Comments

@amazing-gao
Copy link

osmosis = require 'osmosis'

osmosis
.get('http://www.cnbeta.com/')
.find('div.hd > div.title > a')
.follow('@href')
.set({
    'content': 'how to get domNode's innerHTML'
})
.data (listing)->
  console.log listing

default is get text

@milescui
Copy link

I want to know, too

@rchipka
Copy link
Owner

rchipka commented Jun 6, 2015

Osmosis 0.0.7 will support :html and :source in selector strings. For now you can use .then and context.toString(). Thank you for being patient.

@rchipka
Copy link
Owner

rchipka commented Jun 18, 2015

Fixed in Osmosis 0.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants