Note that there are some explanatory texts on larger screens.

plurals
  1. POCKEDITOR losing custom nodes while getElementsByTag on IE
    primarykey
    data
    text
    <p>ckeditor losing custom tags while getElementsByTag on IE</p> <p>in Document Content as below :</p> <pre><code> &lt;initTag id="ss"&gt; &lt;myTag id="aa1"&gt;text&lt;/myTag&gt; &lt;myTag id="ab2"&gt;Text&lt;/myTag&gt; &lt;otherTag id="aac"&gt; &lt;myTag id="ab3"&gt;text&lt;/myTag&gt; &lt;/otherTag&gt; &lt;/initTag&gt; </code></pre> <p><code>&lt;initTag&gt;</code> is in (variable) itag</p> <pre><code>var nNode = itag.getElementsByTag("myTag"); for(var x; x&lt;nNode.count();x++){ alert(nNode.getItem(x).getOuterHtml()); } </code></pre> <p>alert message as follow :</p> <p>(other than newly added )which one is Already in document :</p> <pre><code>&lt;MYTAG id="AB3"&gt; </code></pre> <p>just before added tags Only like as :</p> <pre><code>&lt;myTag id="ab2"&gt;Text&lt;/myTag&gt; </code></pre> <p><strong>how can i get all nodes properly?</strong></p> <p>PLEASE Also check following code :</p> <pre><code>&lt;head runat="server"&gt; &lt;script language="javascript" type="text/javascript"&gt; function btnclick() { var testctrl = document.createElement("myTag"); testctrl.innerHTML = "test Val"; var tt= document.getElementById("temp"); tt.appendChild(testctrl); var testnd = document.getElementsByTagName("myTag"); for (var i = 0; i &lt; testnd.length; i++) { alert(testnd.item(i).outerHTML); } } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="temp" &gt; &lt;/div&gt; &lt;input type="button" id="tbtn" onclick="javascript:btnclick();return false;" value="ClickMe"/&gt; &lt;myTag&gt;1&lt;/myTag&gt; &lt;myTag&gt;2&lt;/myTag&gt; &lt;myTag&gt;3&lt;/myTag&gt; &lt;myTag&gt;4&lt;/myTag&gt; &lt;myTag&gt;5&lt;/myTag&gt; &lt;myTag&gt;6&lt;/myTag&gt; &lt;myTag&gt;7&lt;/myTag&gt; &lt;myTag&gt;8&lt;/myTag&gt; &lt;myTag&gt;9&lt;/myTag&gt; &lt;myTag&gt;0&lt;/myTag&gt; &lt;/body&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload