Last modified: 2012-12-31 11:18:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45361, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43361 - Support block element inside link in HTML5
Support block element inside link in HTML5
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.21.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: html5
  Show dependency treegraph
 
Reported: 2012-12-23 14:51 UTC by Liangent
Modified: 2012-12-31 11:18 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2012-12-23 14:51:53 UTC
Wikitext:

[[A|<div style="background:cyan;">aaa</div>]]

Without $wgUseTidy:

<p><a href="/index.php?title=A&amp;action=edit&amp;redlink=1" class=new title=A(页面不存在)>&lt;div style="background:cyan;"&gt;aaa&lt;/div&gt;</a>
</p>

With $wgUseTidy:

<p><a href="/index.php?title=A&amp;action=edit&amp;redlink=1" class="new" title="A(页面不存在)"></a></p>
<div style="background:cyan;">aaa</div>

However in HTML5, this is valid HTML:

<a href="A"><div style="background:cyan;">aaa</div></a>

(which is invalid in HTML4 however)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links