Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3787 closed defect (bug) (fixed)

comments.php template validation broken

Reported by: tandilboy Owned by: rob1n
Priority: normal Milestone: 2.2
Component: Template Version: 2.1
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

w3c validator shows this error

Error Line 122 column 13: syntax of attribute value does not conform to declared value.
		<li class="" id="comment-1869">

The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; the variant “selected=""” is not allowed.

Attachments (3)

3787.diff​ (1.1 KB ) - added by rob1n 20 years ago.
3787.2.diff​ (1.1 KB ) - added by rob1n 20 years ago.
3787.3.diff​ (1.1 KB ) - added by rob1n 20 years ago.

Download all attachments as: .zip

Change History (8)

#1 @rob1n
20 years ago

  • Keywords has-patch commit added
  • Owner changed from anonymous to rob1n
  • Status new → assigned

Patch 3787.diff does a simple hack, works as advertised.

Validation was screwed up because on the non-highlighted comments (every other), class="" was the class attribute, and apparently empty attributes aren't valid.

#2 @rob1n
20 years ago

  • Milestone 2.1.1 → 2.2

#3 @rob1n
20 years ago

Added a new patch which uses ryan's idea of cleaner coding.

Ryan++.

#4 @rob1n
20 years ago

Latest patch incorporates MarkJaquith's recommendation of making the code even more compact.

#5 @ryan
20 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [4922]) Don't emit empty class. Props rob1n. fixes #3787

Note: See TracTickets for help on using tickets.