Fix HTML parsing when body is included in the select tag

Fixes #3079
This commit is contained in:
Nick O'Leary
2021-07-23 10:09:00 +01:00
parent 6e69cfbca4
commit c5892fc17e
2 changed files with 4 additions and 2 deletions

View File

@@ -68,7 +68,9 @@ describe('HTML node', function() {
done(err)
}
});
n1.receive({payload:data,topic:"bar",select:"h1"});
// include 'body' in the select to verify we're in document mode
// for the parser. See https://github.com/node-red/node-red/issues/3079
n1.receive({payload:data,topic:"bar",select:"body h1"});
});
});
});