https://bugzilla.wikimedia.org/show_bug.cgi?id=57432
Web browser: ---
Bug ID: 57432
Summary: Invalid nesting of link elements results in
unclickable links
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: Echo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Is it allowed to have links inside a link in HTML5? The spec says no, it
isn't.[1] But they are in the Echo overlay in the German Wikipedia:
<a class="mw-echo-notification-wrapper" href="/wiki/User:...">
<div class="mw-echo-state">
<img class="mw-echo-icon" src=".../ThankYou.png"/>
<div class="mw-echo-content">
<div class="mw-echo-title">
<a href="/wiki/User:..." class="mw-echo-grey-link">...</a>
...
</div>
<div class="mw-echo-notification-footer">
...
<a href="...&diff=..." class="mw-echo-notification-secondary-link
mw-echo-grey-link">...</a>
</div>
<a href="/wiki/User:..."
class="mw-echo-notification-primary-link">...</a>
</div>
</div>
</a>
This results in a real problem: I can't use the inner diff link. No matter what
I do (shift click, ctrl click, middle mouse button, right button) it always
opens the user page, never the diff.
Tested with Opera 12. It seems it kind of "works" in Firefox and IE8. The
problem is, you can't be sure because it's not defined in the spec. What Opera
12 does is not "wrong". Other user agent may have the same problem. That's why
we have specs and validators. Invalid nesting should be avoided at all costs.
[1]http://www.w3.org/TR/html5/text-level-semantics.html#the-a-element
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l