mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-17 16:34:49 -05:00
Adds Trusted Types support for reflected boolean properties.
This commit is contained in:
@@ -550,7 +550,9 @@ export const PropertiesChanged = dedupingMixin(
|
||||
_serializeValue(value) {
|
||||
switch (typeof value) {
|
||||
case 'boolean':
|
||||
return value ? '' : undefined;
|
||||
return value ?
|
||||
(window.trustedTypes ? window.trustedTypes.emptyScript : '') :
|
||||
undefined;
|
||||
default:
|
||||
return value != null ? value.toString() : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user