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

Event attributes trigger event twice in HTML encoding #92

Closed
ksons opened this issue Jan 16, 2015 · 1 comment
Closed

Event attributes trigger event twice in HTML encoding #92

ksons opened this issue Jan 16, 2015 · 1 comment
Assignees
Milestone

Comments

@ksons
Copy link

ksons commented Jan 16, 2015

Using eventattributes such as

  <mesh src="teapot.json" onclick="console.log('Teapot');"></mesh>

trigger twice. This affects only HTML encoding and event attributes. Using addEventListener or the same scene in XHTML are not concerned.

@ksons ksons added this to the Release 4.9 milestone Feb 3, 2015
@csvurt csvurt self-assigned this Feb 9, 2015
csvurt added a commit that referenced this issue Feb 9, 2015
@csvurt
Copy link
Contributor

csvurt commented Feb 9, 2015

I've added checks to the mouse event attributes polyfill that will prevent it from adding a second event listener to the element in HTML documents.

@csvurt csvurt closed this as completed Feb 9, 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