Quote:
Originally Posted by Jellby
Exactly. As I said above, <svg> (or <img>) is not allowed to be the direct child of a <blockquote>, because <blockquote> can only have block-level children. That's not a surprise.
But I think you misunderstand the message. The list is not giving all the elements where <svg> is forbidden, but all the elements that are allowed there: and "svg" (or "img") is not in the list, hence the error.
|
Ok, now I understand better what that list is saying to me
Quote:
The case with <p> or <hX> is entirely different. Those can have character-level children, and therefore <svg> or <img>. Do you get validation errors with <svg> inside <p> or <hX>?
|
No, no error message with <svg> inside <p> or <hX>. But I wasn't quite sure about using that sintaxis, I preferred no to employ those kind of tags and to enclose the svg in a DIV.