diff --git a/src/Parsoid/References.php b/src/Parsoid/References.php index ae87d23be..109b0eb9c 100644 --- a/src/Parsoid/References.php +++ b/src/Parsoid/References.php @@ -413,6 +413,18 @@ class References extends ExtensionTagHandler { if ( !$isTplWrapper ) { $dataMw = DOMDataUtils::getDataMw( $refsNode ); + + // Detect invalid parameters on the references tag + $knownAttributes = [ 'group', 'responsive' ]; + foreach ( $dataMw->attrs as $key => $value ) { + if ( !in_array( strtolower( $key ), $knownAttributes, true ) ) { + self::addErrorsToNode( + $refsNode, [ [ 'key' => 'cite_error_references_invalid_parameters' ] ] + ); + break; + } + } + // Mark this auto-generated so that we can skip this during // html -> wt and so that clients can strip it if necessary. if ( $autoGenerated ) {