Don't assume BR at the end of document as bogus in Gecko while in ENTER_BR.
Changelog entry.
Merge branch 't/10146'