mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 02:48:18 +00:00
Don't detect comments within 'cite' elements too
Follow-up to 024a978ffd
.
Bug: T275881
Change-Id: I53448ad22cd0531e7fd4aa0ea5d15782879cce14
This commit is contained in:
parent
6650eb56cd
commit
f5059e6ea6
|
@ -672,6 +672,7 @@ class CommentParser {
|
|||
// Don't detect comments within quotes (T275881)
|
||||
if ( $node instanceof DOMElement && (
|
||||
strtolower( $node->tagName ) === 'blockquote' ||
|
||||
strtolower( $node->tagName ) === 'cite' ||
|
||||
strtolower( $node->tagName ) === 'q'
|
||||
) ) {
|
||||
return NodeFilter::FILTER_REJECT;
|
||||
|
|
|
@ -423,6 +423,7 @@ function acceptOnlyNodesAllowingComments( node ) {
|
|||
// Don't detect comments within quotes (T275881)
|
||||
if ( node instanceof HTMLElement && (
|
||||
node.tagName.toLowerCase() === 'blockquote' ||
|
||||
node.tagName.toLowerCase() === 'cite' ||
|
||||
node.tagName.toLowerCase() === 'q'
|
||||
) ) {
|
||||
return NodeFilter.FILTER_REJECT;
|
||||
|
|
Loading…
Reference in a new issue