Open sewe opened 5 years ago
On Fri, Nov 1, 2019 at 11:35 AM Andreas Sewe notifications@github.com wrote:
When checking (X)HTML documents for correct indentation, I run into some strange false-positives.
The following minimal (X)HTML document is the result of some systematic exploration on my part. It should explain where I see the false-positives, namely in certain cases of mixed content (as is used when HTML inline elements like are involved):
Example This validates.
This does, too.
Paragraphs with multiple lines also validate: Like this.
They even validate when inline elements are involved. Like here. Nice, isn't it?
But we hit a bug if the inline elements covers the whole line. Like here.
Or if more text follows the inline element: Like in the next line. See?
But placing the closing paragraph tag on a different line is (whitespace-wise) different: This "workaround" will bite you when using p::after in CSS.
What schema are you using?
Jochen
No schema. In fact, XHTML5 doesn't have one.
But AFAIK, xml:check-format
just requires well-formedness, not validity, so the schema should be immaterial.
On Mon, Dec 2, 2019 at 10:53 AM Andreas Sewe notifications@github.com wrote:
No schema. In fact, XHTML5 doesn't have one.
But AFAIK, xml:check-format just requires well-formedness, not validity, so the schema should be immaterial.
Okay, understood. But then, what false positives are being reported? (A reproducible fake project would be appreciated.)
Jochen
When checking (X)HTML documents for correct indentation, I run into some strange false-positives.
The following minimal (X)HTML document is the result of some systematic exploration on my part. It should explain where I see the false-positives, namely in certain cases of mixed content (as is used when HTML inline elements like
<em>
are involved):