Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8746835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:15:26+00:00 2026-06-13T12:15:26+00:00

ckeditor losing custom tags while getElementsByTag on IE in Document Content as below :

  • 0

ckeditor losing custom tags while getElementsByTag on IE

in Document Content as below :

 <initTag id="ss">
  <myTag id="aa1">text</myTag>
  <myTag id="ab2">Text</myTag>
  <otherTag id="aac">
    <myTag id="ab3">text</myTag>
  </otherTag>
</initTag>

<initTag> is in (variable) itag

var nNode = itag.getElementsByTag("myTag"); 
for(var x; x<nNode.count();x++){
alert(nNode.getItem(x).getOuterHtml());
}

alert message as follow :

(other than newly added )which one is Already in document :

<MYTAG id="AB3">

just before added tags Only like as :

<myTag id="ab2">Text</myTag>

how can i get all nodes properly?

PLEASE Also check following code :

<head runat="server">
       <script language="javascript" type="text/javascript">
        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 < testnd.length; i++) {

              alert(testnd.item(i).outerHTML);
          }

        }
    </script>
</head>
<body>
<div id="temp" >
    </div>
    <input type="button" id="tbtn" onclick="javascript:btnclick();return false;" value="ClickMe"/>
  <myTag>1</myTag>
    <myTag>2</myTag>
    <myTag>3</myTag>
    <myTag>4</myTag>
    <myTag>5</myTag>
    <myTag>6</myTag>
    <myTag>7</myTag>
    <myTag>8</myTag>
    <myTag>9</myTag>
    <myTag>0</myTag>

</body>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:15:27+00:00Added an answer on June 13, 2026 at 12:15 pm

    see folowing Link:

    http://code.google.com/p/html5shiv/

    This link can be solve html5 tag problems and also you can add your own tags into this js file.
    may be this is your requirement.

    You should add your customTags on Html5shiv.js as below :

    if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
          data.hasCSS = !!addStyleSheet(ownerDocument,
            // corrects block display not defined in IE6/7/8/9
            'myTag,article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' +
            // adds styling not present in IE6/7/8/9
            'mark{background:#FF0;color:#000}'
          );
    

    And here :

    var html5 = {

           'elements': options.elements || 'myTag abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video',
    

    This Answer May be Solve your Some other Questions

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I display CKEditor text the html tags are also displayed. How can I
I use CKEditor to enter rich text descriptions in different views. My ckeditor tags
I want to use Ckeditor for Entering text and I want to save that
With CKEDITOR, when I use JS to get the contents of the Text Editor,
in CKEDITOR Document I have a node named User_Image <User_Image><sometags><sometags>sometext<sometags>sometext</sometags></sometags></sometags></User_Image> User_Image node i stored
hi i have ckeditor and one button for save ckeditor text whith ajax .
I have a ckeditor plugin that depends on some custom parameters. These parameters may
I use ckeditor in my website, which supports page breaker. The sample content contains
I'm using CKEditor in Markdown format to submit user created content. I would like
I had ckeditor's values, when those content contained special characters, in my case it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.