You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 1) All line breaks MUST have been normalized on input to #xA as described in 2.11 End-of-Line Handling, so the rest of this algorithm operates on text normalized in this way.
335
+
// 2) Begin with a normalized value consisting of the empty string.
336
+
// 3) For each character, entity reference, or character reference in the unnormalized attribute value, beginning with the first and continuing to the last, do the following:
337
+
// * For a character reference, append the referenced character to the normalized value.
338
+
// * For an entity reference, recursively apply step 3 of this algorithm to the replacement text of the entity.
339
+
// * For a white space character (#x20, #xD, #xA, #x9), append a space character (#x20) to the normalized value.
340
+
// * For another character, append the character to the normalized value.
341
+
//
342
+
// If the attribute type is not CDATA, then the XML processor MUST further process the normalized attribute value by discarding any leading and trailing space (#x20) characters,
343
+
// and by replacing sequences of space (#x20) characters by a single space (#x20) character.
344
+
//
345
+
// Note that if the unnormalized attribute value contains a character reference to a white space character other than space (#x20), the normalized value contains the referenced
346
+
// character itself (#xD, #xA or #x9). This contrasts with the case where the unnormalized value contains a white space character (not a reference), which is replaced with a
347
+
// space character (#x20) in the normalized value and also contrasts with the case where the unnormalized value contains an entity reference whose replacement text contains a
348
+
// white space character; being recursively processed, the white space character is replaced with a space character (#x20) in the normalized value.
0 commit comments