Comment 8 for bug 255524

Revision history for this message
In , Jruderman (jruderman) wrote :

View Selection Source serializes the DOM; it is not required to show a precise substring of the original source.

The DOM contains a '&' character, and the correct way to serialize that inside an href attribute is to convert it to "&". It would be wasteful and difficult to "remember" that the original HTML was invalid and emit invalid HTML during serialization.