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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -