Page MenuHomePhabricator

TextExtracts exintro=true Action API cannot properly handle h2 h3 headings generated inside aside from PortableInfobox
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue:

  • Create a infobox template using PortableInfobox <infobox> with data labels <data source="data"><label>Label text</label></data> and headers <header>Header</header>
  • Put the infobox above the first paragraph of the page

What happens?:

The textextracts exintro=true Action API ignore any text below the portable infobox due to the h2 and h3 generated inside the aside HTML tag.

What should have happened instead?:

The textextracts Action API should strip off the entire HTML aside tag before processing exintro=true.

Software version:

https://tku.miraheze.org/wiki/Special:Version

  • MediaWiki 1.43.1 ( cde4276 ) 2025-04-10 Thu. 17:18 (UTC)
  • PHP 8.2.28 (fpm-fcgi)
  • Portable Infobox 0.8 ( 0602d45 ) 2025-04-13 Sun. 20:19 (UTC)
  • TextExtracts – ( 3e98cd6 ) 2024-12-31 Tue. 05:59 (UTC)

Other information:

Event Timeline

Jdlrobson-WMF subscribed.

Not related to page previews itself but an issue with the API.