This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=681626 In a case like "foo[] ", if you insert a space, it becomes "foo [] ". Thus the extra space is no longer collapsed. It should be "foo []", same as if you started with "foo[]". Alternatively, it could be "foo [] ", with the trailing space still present but ignored. But it seems nicer to take the opportunity to clean up.
https://dvcs.w3.org/hg/editing/rev/89fed05c54e0 https://dvcs.w3.org/hg/editing/rev/e60077322f8a
More tests: https://dvcs.w3.org/hg/editing/rev/b94bc4cceb61
Comment via Rich Schwerdtfeger: This text exists in the canvas element specification: "When authors use the canvas element, they must also provide content that, when presented to the user, conveys essentially the same function or purpose as the bitmap canvas. This content may be placed as content of the canvas element. The contents of the canvas element, if any, are the element's fallback content."