Use HTMLElement interface for picture #87

Closed
zcorpan opened this Issue Jan 7, 2014 · 3 comments

Projects

None yet

3 participants

@zcorpan
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.

@marcoscaceres
Member

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
zcorpan commented Jan 8, 2014

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

@yoavweiss
Member

Closing

@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