Nokogiri: Is there a way to append DOM to another DOM?

J

Joshua Muheim

Hi all

Is there a way to append a DOM to another DOM?

Nokogiri::HTML("<p>Test</p>").join(Nokogiri::HTML("<p>Test2</p>"))

Thanks
Josh
 
S

Sergio Arbeo

2009/10/13 Joshua Muheim said:
Hi all

Is there a way to append a DOM to another DOM?

Nokogiri::HTML("<p>Test</p>").join(Nokogiri::HTML("<p>Test2</p>"))

Take a look at HTML document fragments. Sorry, I have not the doc at
hand right now.

Serabe
 
A

Aaron Patterson

Hi all

Is there a way to append a DOM to another DOM?

Nokogiri::HTML("<p>Test</p>").join(Nokogiri::HTML("<p>Test2</p>"))

Yes, but it depends on the semantics you're looking for. Can you send
an email to the nokogiri list and include a brief description of the
problem you're trying to solve along with the issues you're
encountering?

I would appreciate it! :)

The list can be found here:

http://groups.google.com/group/nokogiri-talk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,250
Members
46,848
Latest member
Graciela Mitchell

Latest Threads

Top