Daniel Jacobs
Daniel Jacobs
On that page, `window.movieemb` works just fine (as that's a way to get elements by id without `getElementById` even on modern browsers). What W3C specification guarantees `window.document["movieemb"]` or `document.movieemb` to...
Seems it's about the `name`, not the `id`.
It's this in W3C, the rules are quite complex: https://html.spec.whatwg.org/multipage/nav-history-apis.html#named-access-on-the-window-object > As a general rule, relying on this will lead to brittle code. Which IDs end up mapping to this...
Most notably, the browser automatically assigns this for any [embed](https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-embed-element), [form](https://html.spec.whatwg.org/multipage/forms.html#the-form-element), [img](https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element), or [object](https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element). A `ruffle-embed`, `ruffle-object`, and `ruffle-player` is none of those so we'd have to somehow handle this...
I'm a bit less hesitant to do this though: https://github.com/ruffle-rs/ruffle/blob/master/web/packages/core/src/internal/register-element.ts#L88 ```js window.customElements.define(externalName, elementClass); if (elementName === "ruffle-embed") { const orig = Object.getOwnPropertyDescriptor( Document.prototype, "embeds", ); if (orig && orig.get) {...
I wrote #22465 so we would know how complex full support of named accesses on `document` would be. The answer is fairly complex. I may close that PR unmerged depending...
#22449 was written for `document.embeds`. #22465 would support the IDL selectors per Toad's findings, but may not wind up merged due to its complexity.
This sounds possibly scale related, though without seeing the content it's impossible to know for sure. If the SWF's Stage.scaleMode or the embed's scale attribute is set to "noscale" or...
If you don't have a link to the content and can't upload a zip file of the content itself or a zip file of a [minimal reproducible example](https://en.wikipedia.org/wiki/Minimal_reproducible_example) SWF I...
With regard to the elements going outside the screen, I tested this and you can fix it by changing allowfullscreen to "true" for the embed. This was "regressed" by https://github.com/ruffle-rs/ruffle/pull/14841,...