Page MenuHomePhabricator

parser produces invalid html for "old-style" bold-line starting with semicolon
Closed, DuplicatePublic

Description

this wikicode is not too often used, but there's no reason to produce invalid html

REPRODUCTION (1)

  1. Create a new page, or empty some draft/sandbox page
  2. begin a line with semicolon, some content, another new line begins with semicolon, some more content, (like snippet below):
  3. save
  4. verify page looks correctly
  5. check the page in validator: https://validator.w3.org/
  6. note the errors: Element dl is missing a required instance of child element dd.

(snippet):

;title 1
content 1
;title 2
content 2

bolus points: fix the warning

Potentially bad value copyright for attribute rel on element link: The keyword copyright for the rel attribute should not be used. Consider using license instead.

peace.

Event Timeline

Kipod created this task.Jun 12 2017, 10:16 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 12 2017, 10:16 PM
Kipod renamed this task from parser produces invalid html for "old-style" bold-line stating with semicolon to parser produces invalid html for "old-style" bold-line starting with semicolon.Jun 12 2017, 10:17 PM
Arlolra added a subscriber: Arlolra.

I don't think the validator should be complaining about that. The place in the spec it rightfully points to says,

https://w3c.github.io/html/single-page.html#the-dl-element

If a dl element has one or more dt element children, but no dd element children, then it consists of one group with terms but no descriptions.

If a dl element has one or more dd element children, but no dt element children, it consists of one group with descriptions but no terms.

so it seems alright. But, moreover, this is a duplicate of T6521

cscott added a subscriber: cscott.Jun 13 2017, 1:47 AM

What's more, the spec has been recently broadened to allow even <div> children of <dl> (gasp!). The clear direction is towards greater permissiveness of dl/dd/dt.