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

Simplify <image> element content model #150

Closed
jarek-foksa opened this issue Jun 10, 2016 · 6 comments
Closed

Simplify <image> element content model #150

jarek-foksa opened this issue Jun 10, 2016 · 6 comments

Comments

@jarek-foksa
Copy link

jarek-foksa commented Jun 10, 2016

I'm not sure what is the purpose of allowing the following elements as children of <image>: <image>, <use>, <iframe>, <video>, <audio>, <foreignObject>.

Are they supposed to be shown as a fallback content when the image fails to load? If yes, then this behavior should be documented, otherwise I would remove them from the content model.

@AmeliaBR
Copy link
Contributor

This refers to "structurally external elements" being listed in the allowed content model of image.

I suspect that's an error. I can see no reason for it.

Anyone else have any knowledge of this?

@jarek-foksa
Copy link
Author

<marker> also doesn't make much sense as a child of <image>. Unlike e.g. <clipPath> or <mask>, you can't set a marker on an image.

@prlbr
Copy link
Contributor

prlbr commented Jun 12, 2016

I can imagine an <audio> description of an image being useful in some contexts as fallback for visually impaired users. But I don’t know whether this is done in practice by anyone and whether user agents support this in a sensible way.

@jarek-foksa
Copy link
Author

jarek-foksa commented Jun 19, 2016

I would also remove "paint server elements" from the content model because images are not paintable.

To sum this up, I would redefine the content model of <image> to allow only "animation elements", "descriptive elements", <clipPath>, <mask>, <script> and maybe <style> (depending on whether issue #162 gets resolved).

@jarek-foksa
Copy link
Author

@nikosandronikos what is the reason for leaving the <marker> element in the content model? As far as I know markers can't be applied on <image> elements.

@nikosandronikos
Copy link
Member

@jarek-foksa Sorry, that was just a mistake on my part. Fixed now. Thanks for reviewing

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

No branches or pull requests

4 participants