[FIX]getElementsByName should not find non-HTML nodes

RESOLVED FIXED

Status

()

Core
DOM
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: bz, Assigned: bz)

Tracking

Trunk
x86
Mac OS X
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

8 years ago
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.
(Assignee)

Comment 1

8 years ago
Created attachment 382415 [details] [diff] [review]
Fix
Attachment #382415 - Flags: superreview?(jonas)
Attachment #382415 - Flags: review?(jonas)
Comment on attachment 382415 [details] [diff] [review]
Fix

>+  return
>+    aContent->IsNodeOfType(nsINode::eHTML) &&

aContent->GetNameSpaceID() == kNameSpaceID_XHTML

r/sr=me with that
Attachment #382415 - Flags: superreview?(jonas)
Attachment #382415 - Flags: superreview+
Attachment #382415 - Flags: review?(jonas)
Attachment #382415 - Flags: review+
(Assignee)

Comment 3

8 years ago
Pushed http://hg.mozilla.org/mozilla-central/rev/3d418e08a8e0 with that change.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.