javascript - How to get innerHTML from one specify child ELEMENT -


all:

what want is:

<div id="container">     <div class="unwanted"></div>     <div class="unwanted"></div>     <svg><rect></rect></svg>     <div class="unwanted"></div> <div> 

how can innerhtml of #container svg, is:

"<svg><rect></rect></svg>" 

what want outerhtml of svg element not accessible in way. here

outerhtml of svg element

is idea of how svg content.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -