This was brought up on public-html, and I think it makes a lot of sense to do, no matter what else is decided about getElementsByName.
Created attachment 382415 [details] [diff] [review]
Comment on attachment 382415 [details] [diff] [review]
>+ aContent->IsNodeOfType(nsINode::eHTML) &&
aContent->GetNameSpaceID() == kNameSpaceID_XHTML
r/sr=me with that
Pushed http://hg.mozilla.org/mozilla-central/rev/3d418e08a8e0 with that change.