https://bugzilla.wikimedia.org/show_bug.cgi?id=21844
Summary: DOM preprocessor barfs on headings inserted by parser
functions
Product: MediaWiki
Version: 1.16-svn
Platform: All
OS/Version: All
Status: NEW
Keywords: parser
Severity: minor
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=6877)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6877)
Ensure that the title attribute is set before trying to add in the heading
index marker
If a parser function extension inserts a heading into an article,
PPFrame_DOM::expand() chokes on it because its title attribute is not set:
1041 $titleText = $this->title->getPrefixedDBkey();
Since title attributes are only required for inserting heading index markers,
and these markers should most probably not be inserted for headings not within
the article content, the simple fix is to check that the title attribute is set
before trying to add in the heading index marker. A trivial patch is attached.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l