News for hackers. Stuff that matters.
Re:Just Use a Button by phatskat on Monday November 03, 2025 @09:51AM (#45799610)
MDN includes a “Permitted Content” section for elements, eg for button it says

> Phrasing content but there must be no Interactive content. If the <button> is the first child of a customizable select element, then it may also contain zero or one <selectedcontent> element.

“Ok, but what constitutes ‘phrasing content’ or ‘interactive content’?” you might ask. Those terms are links that give a very good overview of their constituent elements.

There are no comments on this comment yet.