In XHTML, can onclick be used on elements outside the HTML namespace? On the code below, myFunction() fires when <p> is clicked but not when <t:div> is clicked. Can it be made to?
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://www.tei-c.org/ns/1.0">
<head><title>Sandbox</title></head>
<body>
<p onclick="myFunction()">HTML p</p>
<t:div onclick="myFunction()">TEI div</t:div>
<script>
function myFunction() {
(alert("Hello World"));
}
</script>
</body>
</html>
.xhtml, the behavior in question does actually come to the fore.idto the custom tags?