Actions
Bug #10482
closedWt creates invalid HTML/CSS
Start date:
06/12/2022
Due date:
% Done:
100%
Estimated time:
Description
I recently ran an HTML validity check and found some HTML/CSS errors which turned out to be caused by Wt:
I ran the test with one of my applications, but it can easily be reproduced with any application, like the Wt homepage: see https://validator.w3.org/nu/?doc=https%3A%2F%2Fwebtoolkit.eu. (The Wt homepage itself has some more issues, but those don't seem to be automatically generated HTML/CSS.)
- The first two errors are caused because Wt does not recognize
<link>
and<meta>
as self closing tags inDomElement::isSelfClosingTag
. - The
cursor: hand
CSS error occurs on multiple occasions and is always preceded bycursor: pointer
, and thus looks like the result of a failed find and replace operation to me.
I already fixed those errors and created a pull request for it: https://github.com/emweb/wt/pull/192. Although most browsers handle these errors pretty well, I think it is preferable to not have them in the first place.
Files
Updated by Roel Standaert over 2 years ago
- Status changed from New to Resolved
- Assignee set to Steven Köhler
Updated by Roel Standaert over 2 years ago
- Target version changed from 4.8.0 to 4.7.3
Updated by Roel Standaert over 2 years ago
- Status changed from Resolved to Closed
Actions