ocsigen / tyxml

Build valid HTML and SVG documents
https://ocsigen.org/tyxml/
Other
163 stars 57 forks source link

[source-tag] we should allow srcset attribute in source tags #299

Closed YassineHaouzane closed 2 years ago

YassineHaouzane commented 2 years ago

"The value of this attribute is ignored when the element is placed inside a \<picture> element." According to : MDN documentation

Drup commented 2 years ago

So the attribute is allowed but ignored? If so, that change sounds good. Can you keep one of the tests with a normal source?

YassineHaouzane commented 2 years ago

Yes I was trying to use the picture element but all my sources were ignored I fixed it by using the srcset attribute instead of the src one with the Unsafe module. The HTML Specs also says the same.

Drup commented 2 years ago

Thanks!