Closed
Bug 685139
Opened 13 years ago
Closed 13 years ago
node.contains(node) returns false per spec and in Gecko, true in other browsers
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox9 | - | --- |
People
(Reporter: bugzilla33, Assigned: smaug)
References
Details
(Keywords: dev-doc-complete)
Attachments
(2 files)
658 bytes,
text/html
|
Details | |
3.40 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0a1) Gecko/20110907 Firefox/9.0a1 Build ID: 20110907030853 Steps to reproduce: 1. open testcase 2. click TEST button Actual results: theSameElem.contains(theSameElem) returns FALSE Expected results: theSameElem.contains(theSameElem) should returns TRUE like: IE9, Chrome 13, Safari 5.1, Opera 11.5, Konqueror 4.5
Reporter | ||
Updated•13 years ago
|
Attachment #558787 -
Attachment mime type: text/plain → text/html
Updated•13 years ago
|
OS: Windows 7 → All
Hardware: x86 → All
Version: 9 Branch → Trunk
Comment 1•13 years ago
|
||
This is not what the specs require but maybe they should change if all other browsers does it this way?
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: broken Node.contains → node.contains(node) returns false per spec and in Gecko, true in other browsers
Comment 2•13 years ago
|
||
Requesting tracking to make sure we don't ship something incompatible here if the spec changes in the next few weeks...
Blocks: 685086
tracking-firefox9:
--- → ?
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #558794 -
Flags: review?(bzbarsky)
Comment 4•13 years ago
|
||
Comment on attachment 558794 [details] [diff] [review] patch + tests r=me
Attachment #558794 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 5•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/2cbb9f7ffe32
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Keywords: dev-doc-needed
Comment 6•13 years ago
|
||
This is documented as implemented, but I've added a note that this is contrary to the specification.
Keywords: dev-doc-needed → dev-doc-complete
Comment 7•13 years ago
|
||
Spec was changed to match implementations a while back. I've removed the note from the devmo docs.
Comment 8•13 years ago
|
||
Thanks bz. :)
Updated•12 years ago
|
Assignee: nobody → bugs
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•