Last modified: 2014-11-17 11:10:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51452, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49452 - VisualEditor: Whitespace-only headings should be collapsed to (blank) paragraphs
VisualEditor: Whitespace-only headings should be collapsed to (blank) paragraphs
Status: PATCH_TO_REVIEW
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Normal enhancement
: VE-deploy-nextup
Assigned To: James Forrester
:
: 70368 (view as bug list)
Depends on:
Blocks: 50100 55769
  Show dependency treegraph
 
Reported: 2013-06-11 20:15 UTC by ssastry
Modified: 2014-11-17 11:10 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description ssastry 2013-06-11 20:15:43 UTC
When an editor tried to remove a heading, the following empty h3 tag seems to have been left behind:  <h3 data-parsoid='{"dsr":[4514,4534,3,3]}'></h3>

Serializes to ===<nowiki/>=== and the user complained about it.

From the bug report: /mng/bugs/en.2013-06-10T16:41:02.032Z-Lightning_(software) on parsoid.wmflabs.org
Comment 1 ssastry 2013-06-11 20:32:12 UTC
/mnt/bugs/2013-06-09T22%3A08%3A31.223Z-Sapo-comum (ptwiki) reports an empty heading left behind "== ==" when the user actually meant to delete it (and I presume thought it gone after the non-whitespace text was deleted).
Comment 2 ssastry 2013-06-11 20:49:12 UTC
/mnt/bugs/2013-06-10T13:57:10.670Z-%25E8%25A5%25BF%25E7%2593%259C%25E6%25B3%25A2 (chinese wikipedia) has an empty heading tag left behind as well (probably inserted when the user added a heading and then deleted it).
Comment 3 Gerrit Notification Bot 2014-10-05 19:54:23 UTC
Change 162310 had a related patch set uploaded by Jforrester:
MWHeading: Don't put self in output if contents are blank or whitespace

https://gerrit.wikimedia.org/r/162310
Comment 4 James Forrester 2014-11-13 13:50:08 UTC
*** Bug 70368 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links