@@ -229,7 +229,7 @@ export default class XMLSerializer {
229229 attribute [ PropertySymbol . localName ] === elementPrefix &&
230230 element [ PropertySymbol . namespaceURI ]
231231 ) {
232- namespaceString += ` xmlns:${ elementPrefix } ="${ XMLEncodeUtility . encodeAttributeValue (
232+ namespaceString += ` xmlns:${ elementPrefix } ="${ XMLEncodeUtility . encodeXMLAttributeValue (
233233 element [ PropertySymbol . namespaceURI ]
234234 ) } "`;
235235 handledNamespaces . add ( element [ PropertySymbol . namespaceURI ] ) ;
@@ -238,20 +238,20 @@ export default class XMLSerializer {
238238 attribute [ PropertySymbol . name ] === 'xmlns' &&
239239 element [ PropertySymbol . namespaceURI ]
240240 ) {
241- namespaceString += ` xmlns="${ XMLEncodeUtility . encodeAttributeValue (
241+ namespaceString += ` xmlns="${ XMLEncodeUtility . encodeXMLAttributeValue (
242242 element [ PropertySymbol . namespaceURI ]
243243 ) } "`;
244244 handledNamespaces . add ( element [ PropertySymbol . namespaceURI ] ) ;
245245 } else {
246246 namespaceString += ` ${
247247 attribute [ PropertySymbol . name ]
248- } ="${ XMLEncodeUtility . encodeAttributeValue ( attribute [ PropertySymbol . value ] ) } "`;
248+ } ="${ XMLEncodeUtility . encodeXMLAttributeValue ( attribute [ PropertySymbol . value ] ) } "`;
249249 handledNamespaces . add ( attribute [ PropertySymbol . value ] ) ;
250250 }
251251 } else {
252252 attributeString += ` ${
253253 attribute [ PropertySymbol . name ]
254- } ="${ XMLEncodeUtility . encodeAttributeValue ( attribute [ PropertySymbol . value ] ) } "`;
254+ } ="${ XMLEncodeUtility . encodeXMLAttributeValue ( attribute [ PropertySymbol . value ] ) } "`;
255255 }
256256 }
257257
@@ -262,14 +262,14 @@ export default class XMLSerializer {
262262 ! handledNamespaces . has ( element [ PropertySymbol . namespaceURI ] )
263263 ) {
264264 if ( elementPrefix && ! inheritedNamespacePrefixes . has ( element [ PropertySymbol . namespaceURI ] ) ) {
265- namespaceString += ` xmlns:${ elementPrefix } ="${ XMLEncodeUtility . encodeAttributeValue (
265+ namespaceString += ` xmlns:${ elementPrefix } ="${ XMLEncodeUtility . encodeXMLAttributeValue (
266266 element [ PropertySymbol . namespaceURI ]
267267 ) } "`;
268268 } else if (
269269 ! elementPrefix &&
270270 inheritedDefaultNamespace !== element [ PropertySymbol . namespaceURI ]
271271 ) {
272- namespaceString += ` xmlns="${ XMLEncodeUtility . encodeAttributeValue (
272+ namespaceString += ` xmlns="${ XMLEncodeUtility . encodeXMLAttributeValue (
273273 element [ PropertySymbol . namespaceURI ]
274274 ) } "`;
275275 }
0 commit comments