Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

target.getAttribute is not defined #40

Closed
calebmer opened this issue Oct 17, 2015 · 2 comments
Closed

target.getAttribute is not defined #40

calebmer opened this issue Oct 17, 2015 · 2 comments
Labels

Comments

@calebmer
Copy link

Even with some of the simplest components, I keep getting the following error (paraphrase from Firefox console although it seems to happen in all browsers):

TypeError: target.getAttribute is not a function
getTypeIndex()                document-register-element.max.js:422
verifyAndSetupAndAction()     document-register-element.max.js:520
loopAndVerify()               document-register-element.max.js:397
onReadyStateChange()          document-register-element.max.js:469

The following is a sample of my component:

let Star = document.registerElement('x-star', {
  prototype: {
    createdCallback() {
      console.log('created')
    },
    attachedCallback() {
      console.log('attached')
    }
  }
})
@WebReflection
Copy link
Owner

Other frameworks/library involved? Cause AFAIK your basic example is tested
and works pretty much everywhere, not sure I can do much in here
On Oct 17, 2015 10:38 PM, "Caleb Meredith" notifications@github.com wrote:

Even with some of the simplest components, I keep getting the following
error (paraphrase from Firefox console although it seems to happen in all
browsers):

TypeError: target.getAttribute is not a function
getTypeIndex() document-register-element.max.js:422
verifyAndSetupAndAction() document-register-element.max.js:520
loopAndVerify() document-register-element.max.js:397
onReadyStateChange() document-register-element.max.js:469

The following is a sample of my component:

let Star = document.registerElement('x-star', {
prototype: {
createdCallback() {
console.log('created')
},
attachedCallback() {
console.log('attached')
}
}
})


Reply to this email directly or view it on GitHub
#40.

@WebReflection
Copy link
Owner

this page works as expected: http://webreflection.github.io/document-register-element/test/examples/x-star.html

Bear in mind it's full of obtrusive frameworks out there, these might not play that well with polyfilled standards .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants