Answer the question
In order to leave comments, you need to log in
Is it semantic to insert an svg tag into a button?
Actually, caniinclude shyly averted his eyes) who knows?
Answer the question
In order to leave comments, you need to log in
We climb into the spec, look at the Content model of the button parent tag - we see "Phrasing content, but there must be no interactive content descendant and no descendant with the tabindex attribute specified".
We look at the tags in Phrasing content and see our svg there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question