refactor(platform-browser): rename _singleTagWhitelist (#29592)

PR Close #29592
This commit is contained in:
Ben Lesh 2019-03-29 10:56:21 -07:00 committed by Jason Aden
parent 3487055d10
commit e5201f92fc
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ export function normalizeCSS(css: string): string {
.replace(/\[(.+)=([^"\]]+)\]/g, (...match: string[]) => `[${match[1]}="${match[2]}"]`);
}
const _singleTagWhitelist = ['br', 'hr', 'input'];
const _selfClosingTags = ['br', 'hr', 'input'];
export function stringifyElement(el: any /** TODO #9100 */): string {
let result = '';
if (getDOM().isElementNode(el)) {
@ -144,7 +144,7 @@ export function stringifyElement(el: any /** TODO #9100 */): string {
}
// Closing tag
if (_singleTagWhitelist.indexOf(tagName) == -1) {
if (_selfClosingTags.indexOf(tagName) == -1) {
result += `</${tagName}>`;
}
} else if (getDOM().isCommentNode(el)) {