> I believe I have found a bug that happens when a <div> is nested in an
> <a>. Here is a Groovy script that demonstrates:
It's because div is block-level, so it implicitly closes the a, which is
inline. Since a will not automatically be reopened later (as b, i, etc.
will be), that's that.
--
John Cowan co...@ccil.org http://ccil.org/~cowan
The whole of Gaul is quartered into three halves.
--Julius Caesar
Daemmon scripsit:> I believe I have found a bug that happens when a <div> is nested in an
> <a>. Here is a Groovy script that demonstrates:It's because div is block-level, so it implicitly closes the a, which is
inline. Since a will not automatically be reopened later (as b, i, etc.
will be), that's that.
Juan Carlos Garcia Segovia scripsit:
> TagSoup has a bug as it is not following the HTML Parsing standard:
> http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html
TagSoup does not follow any standard. Someday it may, but right now if
you want WhatWG parsing, you need to use a different parser.
Juan Carlos Garcia Segovia scripsit:
> Do you mean the parsing rules are just made up and not following the
> standard is not a bug?
A standard cannot claim to control the behavior of an application that
doesn't claim to support that standard. If something more readable than
the WhatWG document ever emerges, I'll consider switching TagSoup to it.
Possibly in version 3.0.