Page MenuHomePhabricator

Presence of <section /> tag confuses Linter analyis when using 'continued' tables....
Open, Needs TriagePublic


The following page,_vol_1.djvu/337&action=edit&lintid=1080094 was being detected as having a "fostered content" concern.

The only fostered content that could be located was a <section /> tag, which is used by LST to mark the start of a 'section'. Removing the <section /> tag from the markup caused the fostered content concern to vanish. The presence of the section tag is not however an error, as Wikisource uses <section /> tags extensively. Having Linter erroneously report a 'fostered' content concern. Linter mis-reporting these where no fostered content actually exists is tiresome.

What should have happened is that the <Section /> tag should once noted for the purposes of building a transcluded section have been stripped from the output, and from the markup supplied to the Linter analyser.

Of course if Mediawiki had a more sensible way of splitting table sections (the current markup and handling having been designed for single page use....) then concerns like this would be less important...

(Aside: The use of section tags for LST possibly conflicts with HTML5)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 17 2019, 11:03 AM
-jkb- added a subscriber: -jkb-.Feb 17 2019, 11:17 AM
-jkb- removed a subscriber: -jkb-.
ShakespeareFan00 added a comment.EditedFeb 17 2019, 4:58 PM

The relevant page was eventually repaired by someone else

The oldid where the problem arose being -,_vol_1.djvu/337&oldid=9110209

Another example:-

here the 'fostered content' arose due to very very specfic whitespace handling around the <section /> tag ( which I've still not seen any documentation on, despite having raised that issue on Phabricator in the past.)

Izno removed a subscriber: Izno.Feb 17 2019, 5:02 PM
Dinoguy1000 renamed this task from Presence of<section /> tag confuses Linter analyis when using 'continued' tables.... to Presence of <section /> tag confuses Linter analyis when using 'continued' tables.....Feb 17 2019, 5:38 PM
Dinoguy1000 updated the task description. (Show Details)

This problem appears to be still happening, for example at:

Expanding one of the tables in that page on Special:ExpandTemplates shows that no additional HTML code appears to be displayed above the table. With an actual Fostered content error, there should be something rendered above the table.

According to the Page information Linter error counts, this is the article with the most Linter errors on all of English Wikipedia as of today. (Although it is not actually the article with the most errors, because the Page information counts are often inaccurate; see T246403 for details on that bug.)

It would be great if Linter could ignore these section tags.