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

Capture Window Client cannot use attributes/methods directly #633

Closed
annevk opened this issue Feb 24, 2015 · 5 comments
Closed

Capture Window Client cannot use attributes/methods directly #633

annevk opened this issue Feb 24, 2015 · 5 comments
Milestone

Comments

@annevk
Copy link
Member

annevk commented Feb 24, 2015

You need to use the internal algorithms these attributes/methods are proxies for. Otherwise JavaScript manipulating them would influence your specification.

@jungkees
Copy link
Collaborator

You mean it can be influenced by Function.prototype.call(this, ...) or something like that?

Could you let me know what would be a good practice for example? Like for the hadFocus() method referred to in this algorithm, is it a right way to specify the same steps defined in HTML as-is? Or any better way?

@annevk
Copy link
Member Author

annevk commented Feb 24, 2015

You should probably ask @Hixie if he can make that algorithm abstract so you can refer to it. There's also some way to capture the algorithm the moment the global is created before any scripts are executed, but that's rather cumbersome.

@jungkees
Copy link
Collaborator

@jakearchibald jakearchibald added this to the Version 1 milestone Oct 28, 2015
@jungkees
Copy link
Collaborator

I'll make a PR for this in HTML.

@jungkees
Copy link
Collaborator

jungkees commented Nov 4, 2015

Made a PR: whatwg/html#308.

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

3 participants