google / google/elemental2

elemental2.dom.Window is missing document variable

Open
#60 5 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
Java
Stars
170
Forks
41
PR merge metrics
No merged PRs in 30d

Description

I'm trying to access the document from a elemental2.dom.HTMLIFrameElement but noticed that elemental2.dom.Window (via HTMLIFrameElement.contentWindow) has no document variable.
There is no chance to access an iframe document via elemental2.

This should be possible. Please see more details in the example at https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow

I need to solve that via native gwt code:

```
public final native elemental2.dom.Document document(elemental2.dom.Window contentWindow) /*-{
return contentWindow.document;
}-*/;
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.