[wp-trac] [WordPress Trac] #59432: Compliant with W3C coding standards
WordPress Trac
noreply at wordpress.org
Sun Sep 24 00:32:05 UTC 2023
#59432: Compliant with W3C coding standards
-------------------------+-------------------------------
Reporter: agypten | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.3.1
Severity: minor | Resolution:
Keywords: | Focuses: coding-standards
-------------------------+-------------------------------
Comment (by dmsnell):
good point @sabernhardt - we should update the handbook. it isn't even
consistent with itself, because it talks about self-closing tags and then
uses `BR` as an example, but the `BR` element is not self-closing, it's an
HTML Void Element, which is a different class (there are no self-closing
tags in HTML5, only self-closing MathML, SVG, and foreign elements) and
which should not contain the self-closing flag, the `/`.
though it's definitely a good idea to leave the space in on actual self-
closing elements when they are used.
I guess our coding standards also recommend technically-invalid-but-benign
HTML syntax.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59432#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list