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

Use HTMLElement interface for picture #87

zcorpan opened this Issue Jan 7, 2014 · 3 comments


None yet
3 participants

zcorpan commented Jan 7, 2014

With the current design, the picture element is dumb and doesn't need a dedicated interface, as far as I can tell. It could be useful for feature-checking, but then it seems more reliable to check for srcset/sizes on source. So I suggest we drop HTMLPictureElement and let picture use HTMLElement instead.


This comment has been minimized.


marcoscaceres commented Jan 8, 2014

I'm 50/50 on this one... on the one hand, I see the value in simplifying the spec... on the other hand, I have a feeling we will end up enhancing this interface in the future so having HTMLPictureElement extending HTMLElement from the start might save us some pain later (and make this element easier to polyfill). IIUC, it's very cheap to have this interface declared on the element from the start (from an implementation perspective) even if it does nothing.


This comment has been minimized.

zcorpan commented Jan 8, 2014

Hmm, I guess that's reasonable. OK with WONTFIX.


This comment has been minimized.


yoavweiss commented Jan 8, 2014


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment