O
O
Oleg Andrianov2021-10-21 14:19:05
HTML
Oleg Andrianov, 2021-10-21 14:19:05

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

1 answer(s)
E
Everybody_Lies, 2021-10-21
@anov

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 question

Ask a Question

731 491 924 answers to any question