On Thu, 20 Aug 2015 02:32:12 +0200, Tim Starling <tstarling(a)wikimedia.org>
wrote:
On 20/08/15 01:21, Erwin Dokter wrote:
I mentioned this once before:
http://www.htacg.org/tidy-html5/
While Tidy died in 2008, this fork lives on and is HTML5 aware. That
will at least solve a lot of problems *caused* by Tidy, such as not
allowing block elements inside inline elemensts (which is allowed in
HTML5).
HTML 5 has not significantly relaxed the rules about block elements
inside inline elements. The terminology has changed: now instead of
inline elements we have "phrasing content" and instead of block
elements we have "flow content". You're still not allowed to put a
<div> inside a <span>, because <span> is phrasing content and
<div>
isn't.
Erwin might be referring to T73962 (<a><div>Foo</div></a> is
changed to
<a></a><div>Foo</div> by Tidy), which is related to a change in
semantics
in HTML 5 (previously <a> was an inline element, now it is
"transparent").
[T73962]
https://phabricator.wikimedia.org/T73962
--
Bartosz Dziewoński