Closed Bug 1484123 Opened 7 years ago Closed 7 years ago

Split HTMLEditor::NormalizeTable() for internal use

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox63 --- wontfix
firefox64 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

No description provided.
Priority: -- → P3
I tried to create automated tests for nsITableEditor::NormalizeTable(). However, this method cannot normalize any broken table element. The method always returns error after calling HTMLEditor::FixBadRowSpan(). The reason is that HTMLEditor::FixBadRowSpan() scans all cells in each row with a for loop, and then, when it fails to find a cell element, it returns error even though this method needs to fix the odd situation. According to the history of editor changes, each important point hasn't been changed since first implementation. So, perhaps, table layout API behavior was changed but no automated tests couldn't detect the regression since we really don't have enough tests for editor. Anyway, this patch makes most part of nsITableEditor::NormalizeTable() with non-virtual method, HTMLEditor::NormalizeTable().
Comment on attachment 9008278 [details] Bug 1484123 - Create non-virtual HTMLEditor::NormalizeTable() for internal use of nsITableEditor::NormalizeTable() Makoto Kato [:m_kato] has approved the revision.
Attachment #9008278 - Flags: review+
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/bff55a91da7c Create non-virtual HTMLEditor::NormalizeTable() for internal use of nsITableEditor::NormalizeTable() r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: