Re: H1's inside A's
"Sebastian Geerken" <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
On Di, Apr 29, 2014, Johannes Hofmann wrote: > On Sun, Apr 27, 2014 at 10:57:09PM -0400, Dennis New wrote: > > I know technically the H1 heading tags aren't allowed between A../A, > > and Dillo rightfully complains about this: > > > > "a" is not allowed to contain "h1". -- closing "a" > > > > But it seems like an innocent tiny mistake. Can't dillo linkify anyways, > > in addition to throwing this error? Currently the link-information is > > lost and only accessibly if I manually view the source and copy-paste > > it. Other browsers (i.e. webkitgtk based ones) do this, which is quite > > useful. > > I agree, that it would be nice to have those links working - while > still reporting it as an error. > I didn't check yet how complicated it would be to get things working > that way. Would this not collide with rules to implicitely close <a> in HTML (not XHTML!)? Anyway: The attached page behaves the same way in dillo as in Firefox. OTOH, w3m closes the first, but not the second <a> implicitely. Do you have other test cases? (I haven't looked in detail at the specs, and it may be different in HTML 5.) Sebastian _______________________________________________ Dillo-dev mailing list [email protected] http://lists.dillo.org/cgi-bin/mailman/listinfo/dillo-dev
h1-inside-a.html
(text/html, 381 B)
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>H1 inside A?</title>
</head>
<body>
<p>For more information, <a href="nowhere">click here.</p>
<h1>First heading</h1>
<p>For other information, <a href="nowhereelse">click somewhere else.
<h1>Second heading</h1>
</body>
</html>
signature.asc
(application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJTYCkSAAoJEAw7+YHB+ZL67KAH/0ECvS9dqJddDJnt6wabemmq cxz7iZKx+TEFvLuvAEfBnXfOYvG3zR4a2KdoysiKi4qVqAfGPFGTVsDtEfJELobc R32a+UJ25JvN3k1/Vg6EXFlbmIKGpWiOpZjrCxbI3gPwzefsC9t8xZCzjqcv325a WZUiqUPyCasoeFboMBiCqumuHzeavDz5i2BTzsD08PAVX5JcdrlMfsXIxQK+7+Mx 0GjwMEtdCo7/dGD/z9A3IgGKDgUKCy50RUH37AqNY+WOKq3yvvq24SKeY8+FxtOS aNjlOFcPp4PUpzTarwjc0ZBUoYRkilGYTs0bR7UyzqeyawmI1Jj9FbahI7HVKnE= =qp8n -----END PGP SIGNATURE-----