Created attachment 655180 [details] [diff] [review]
This patch prevents deletion of the doctype tag, and moves protection of other tags from the delete key handler to the deleteNode method.
Created attachment 655234 [details] [diff] [review]
patch to land
Brought in the fix to this patch from bug 785380.
Created attachment 655260 [details] [diff] [review]
I didn't move the fix over from 785380 correctly. I landed this fix with r=jwalker, since it's what he reviewed over on bug 785380.