Open Bug 598468 Opened 10 years ago Updated 16 days ago
Remove ugly code preventing assert in Do
Compare Tree Position when called from ns HTMLForm Element .cpp
Somewhat like: nsLayoutUtils::CompareTreePosition. This should be used in nsHTMLFormElement.cpp, CompareFormControlPosition. Most form controls have the form element has a common ancestor so it would be nice to take this in consideration.
Jonas wants to use a global var to prevent the assert so we are going to keep calling the same method with a fix to prevent the asserts...
Summary: Add a PositionIsBefore-like method in nsContentUtils which takes a third parameter which is a possible common ancestor → Remove ugly code preventing assert in DoCompareTreePosition when called from nsHTMLFormElement.cpp
Type: defect → enhancement
Component: DOM: Core & HTML → DOM: Forms
You need to log in before you can comment on or make changes to this bug.