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.


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.

zcorpan commented Jan 8, 2014

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



@yoavweiss yoavweiss closed this Jan 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment