Add an html/parsoid section for "Error conditions on non-visible content"

Also, FIXMEs for a follow up to 4438a72 that's exposed by this test.
Nested refs in references aren't getting marked up for the
"cite_error_ref_no_text" errors, where applicable.

Change-Id: Ie6e461571402a96e47d3df26585d9a40f1038891
This commit is contained in:
sbailey 2020-06-25 14:25:59 -07:00 committed by Arlo Breault
parent d69aea2feb
commit 8cb34b6a4c

View file

@ -322,6 +322,9 @@ class References extends ExtensionTagHandler {
// Iterate through the named ref list for refs without content and
// back-patch typeof and data-mw error information into named ref
// instances without content
// FIXME: Note this doesn't add errors to the content in
// $nestedRefsHTML since it's already serialized at this point.
// Captured in the test, "Error conditions on non-visible content"
if ( $refGroup ) {
foreach ( $refGroup->indexByName as $ref ) {
if ( $ref->contentId === null ) {