-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Fix #798: Add 'aframe-injected' attribute to elements injected by aframe #1736
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
Conversation
src/systems/material.js
Outdated
| warn('`$s` is not a valid video', src); | ||
| }, true); | ||
| videoEl.src = src; | ||
| videoEl.setAttribute('aframe-injected', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These videos are never injected to the DOM so don't need it here.
|
@fernandojsg The inspector is involved with this. Thoughts? |
45516d2 to
c74b1fd
Compare
|
It's ok for me, as I could look for those |
c74b1fd to
b3e9e40
Compare
|
Updated! |
|
@fernandojsg Do you want the aframe-injected also on the VR mode UI, canvas, meta tags? |
|
Yep that would be great! As right now I'm removing them by hand: |
|
@darkwing would you mind remove those as well? I think the issue was primarily for @fernandojsg's inspector to generate HTML |
b3e9e40 to
19cbee4
Compare
|
Added to VR elements and metas, updated test. |
19cbee4 to
a09f9a9
Compare
|
thanks! |
|
@ngokevin @darkwing ops, sorry I was a little bit late to the conversation, maybe it could be another PR, but what about including And probably for the stats too? |
re: #798
Added as an attribute to not muddle the CSS classes, while still able to select with QSA. This also adds to only
a-elements as well as the<video>created bymaterial.js.Purposely did not add to meta tag, the original canvas, or the
vr-mode-uielements as they're simply for VR mode in/out.Let me know what you think of this.