I'm trying to put some links in a <summary>
element, and if the <a>
tag doesn't contain anything but an icon <i>
, it's not working (a click on it just opens the <details>
element…).
My code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<details>
<summary>
<span>Foo</span>
<span><a href="http://www.google.com">text link</a></span>
<span><a href="http://www.google.com"><i class="material-icons">send</i></a></span>
</summary>
<span>Bar</span>
</details>
</body>
</html>
Anybody would know what am I missing?
I tried with other icons than the Material ones without results…
Edit: It's a Chrome bug (it's working with Firefox): anybody knows a workaround?
` supposed to be? I've never seen those as a part of HTML 5.