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

methods - python can't use function in submodule -

Java 3D LWJGL collision -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -