Page MenuHomePhabricator

Unclosed table tags cause user input to be lost on page preview with HHVM
Closed, ResolvedPublic

Description

Using two unclosed <table> tags on a page sometimes causes MediaWiki to lose user input on page preview.

Steps to reproduce:

  1. Edit a page on enwiki and replace all the text in the edit window with the following (without saving):
<table><table>Some text 2. Click on "Show preview". You might need to click a few times; this is an intermittent behaviour. It usually took two or three times for me. 3. The text that we added disappears from the edit window, and the following error is displayed: "Some parts of the edit form did not reach the server; double-check that your edits are intact and try again." This looks like it might be related to HTML Tidy and bug 65747, but I'm not sure of the real cause. -------------------------- **Version**: unspecified **Severity**: normal

Details

Reference
bz72343

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:55 AM
bzimport set Reference to bz72343.
bzimport added a subscriber: Unknown Object (MLST).

Also, I was using HHVM when I saw this happen, which might be relevant. And it might be related to bug 72345.

After further testing, I've found that this only occurs when I have HHVM enabled, so I'm adding the HHVM keyword.

Yes, I also tried this without HHVM on and I didn't see the problem. After turning it on (by setting the hhvm=true cookie), I do see it, though only for some servers but not others. It's actually only necessary to have a single unclosed table tag.

The problem is indeed that the unclosed table tag is getting through to the output, probably because as stated in an HTML comment, "Tidy was unable to run". That causes wpTextbox1 (the main text box) to end up outside the form in the browser's DOM, and that's why it takes at least two clicks on "Show preview" to reproduce.

  • This bug has been marked as a duplicate of bug 72345 ***