[wp-trac] [WordPress Trac] #16206: Comment text not marked as required
WordPress Trac
noreply at wordpress.org
Wed Jan 20 19:40:11 UTC 2016
#16206: Comment text not marked as required
-----------------------------------+--------------------------------
Reporter: infected | Owner: rianrietveld
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.5
Component: Comments | Version: 3.0.4
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: ui, accessibility
-----------------------------------+--------------------------------
Comment (by strider72):
Replying to [comment:23 strider72]:
> Replying to [comment:22 afercia]:
> > Replying to [comment:21 strider72]:
> > > I know it's all HTML5 technically, but aren't we generally using the
XHTML standard for attributes?
> > Hm, not sure but interesting. Do you have any reference or
argumentation to stick with the old syntax?
>
> Yes. The WordPress Core Handbook section on HTML Coding Standards
specifically references XHTML standards:
> https://make.wordpress.org/core/handbook/best-practices/coding-
standards/html/
Or if you mean ''other than'' "That's just the way we do it"... well, I
do think code consistency is a good thing, but I also think XHTML syntax
is much cleaner and easier to read. The same with the closing slash on IMG
tags — not technically necessary on HTML5, but consistently used it makes
the code just a bit easier to read (and easier for more parsers to parse).
There are a number of long-established coding standards within WordPress
that are not technically necessary, such as spaces in parentheses in PHP,
e.g.: ( $this ) not ($this)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16206#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list