Page MenuHomePhabricator

Table headers !! and cells || should behave the same way
Closed, ResolvedPublic

Description

Author: ui2t5v002

Description:
{|

Header 1Header 2Header 3
}

works as expected:

<td>Header 1</td><td>Header 2</td><td>Header 3</td>


{|
! Header 1 Header 2 Header 3

}

works as expected:

<th>Header 1</th><th>Header 2</th><th>Header 3</th>


{|
! Header 1 || Header 2 || Header 3

}

does not work as expected:

<th>Header 1</th><th>Header 2</th><th>Header 3</th>

All three cells are headers. It should only make the first cell a header.
Instead, you have to put:

{|
! Header 1

Header 2Header 3
}

Version: unspecified
Severity: normal
Platform: PC
URL: http://meta.wikimedia.org/wiki/Help_talk:Table#Header_markup_not_consistent_with_cell_markup

Details

Reference
bz4759

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:04 PM
bzimport set Reference to bz4759.
bzimport added a subscriber: Unknown Object (MLST).

a patch

I made a patch that will "fix" the problem. sadly it will break an earlier fix,
when delimiters are inside tag attributes. It might be fixable. don't know if
it will break anything else.

Attached:

ayg wrote:

*** This bug has been marked as a duplicate of 549 ***