Last modified: 2014-06-13 17:48:02 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 T28516, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26516 -   causes HTML tags to close unexpectedly (when using tidy)
  causes HTML tags to close unexpectedly (when using tidy)
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://Template talk:·#Bolding embedd...
:
Depends on:
Blocks: tidy
  Show dependency treegraph
 
Reported: 2010-12-31 00:48 UTC by Erwin Dokter
Modified: 2014-06-13 17:48 UTC (History)
3 users (show)

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


Attachments

Description Erwin Dokter 2010-12-31 00:48:53 UTC
Consider this:

:'''Bold in wikimarkup with <b>(embedded bold)</b> in HTML'''
:'''Bold in wikimarkup with &nbsp;<b>(embedded bold preceded by &amp;nbsp;)</b> in HTML'''

The first line will display correctly in all bold, the second will *close* the embedded bold whenever there is a &nbsp anywhere before it. This happens with all HTML tags.
Comment 1 Bawolff (Brian Wolff) 2011-01-02 08:29:34 UTC
Works fine when tidy is disabled, so tidy issue.
Comment 2 Erwin Dokter 2011-01-03 23:11:16 UTC
In that case, Tidy should be set to ignore &nbsp;.
Comment 3 Peter Bena 2011-11-25 18:46:52 UTC
Is this still an issue? however since there is at least a workaround I am changing priority. It works for me ok
Comment 4 Bawolff (Brian Wolff) 2011-11-25 22:40:15 UTC
(In reply to comment #3)
> Is this still an issue? however since there is at least a workaround I am
> changing priority. It works for me ok

Disabling tidy isn't really a viable work around. (Not double embedding bold otoh is a good work around ;)

Someone should probably get around to filing all these tidy bugs upstream, since no one at this bugtracker works on tidy, so it's unlikely that these bugs will ever get fixed here.
Comment 5 Bawolff (Brian Wolff) 2013-05-04 16:02:36 UTC
Why was this closed invalid? Please include a reason when closing bugs.
Comment 6 Erwin Dokter 2013-05-04 16:19:23 UTC
Because, as you said, this needs to be fixed in Tidy, not in MediaWiki.
Comment 7 Bawolff (Brian Wolff) 2013-05-04 16:21:21 UTC
Generally in such cases we keep the bug report open and link to the bug in the upstream tracker (and add the upstream keyword)
Comment 8 Technical 13 2014-06-13 17:48:02 UTC
Note that while first line will display correctly in all bold, the second will *close* the embedded bold whenever there is a &nbsp anywhere before it. This happens with all HTML tags:

:'''Bold in wikimarkup with <b>(embedded bold)</b> in HTML'''
:'''Bold in wikimarkup with &nbsp;<b>(embedded bold preceded by &amp;nbsp;)</b> in HTML'''

:'''Bold in wikimarkup with <b>&nbsp;(embedded bold preceded by &amp;nbsp;)</b> in HTML'''

This third line displays correctly in all bold.

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


Navigation
Links