Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the Canvas object is [object DispHTMLUnknownElement] type #8

Closed
linkFly6 opened this issue Oct 25, 2015 · 2 comments
Closed

Get the Canvas object is [object DispHTMLUnknownElement] type #8

linkFly6 opened this issue Oct 25, 2015 · 2 comments

Comments

@linkFly6
Copy link

Why get the Canvas object is [object DispHTMLUnknownElement] type, the following code:

var els = doc.getElementsByTagName('canvas');
      for (var i = 0; i < els.length; i++) {
        this.initElement(els[i]); //[object DispHTMLUnknownElement]
      }
}

initElement: function(el) {
     //...
     el.innerHTML = '';//throws an exception under IE8
     //...
}

In the right circumstances, it should be [ object DispHTMLGenericElement ].

Why is this so?TKS

@arv
Copy link
Owner

arv commented Oct 25, 2015

What browser is this?

@linkFly6
Copy link
Author

Internet explorer 8,I have solved this problem.TKS

@arv arv closed this as completed Oct 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants