Last modified: 2012-10-15 22:57:26 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 T35151, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33151 - '''a''b'''c'' creates invalid html
'''a''b'''c'' creates invalid html
Status: RESOLVED INVALID
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-15 04:57 UTC by Liangent
Modified: 2012-10-15 22:57 UTC (History)
7 users (show)

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


Attachments

Description Liangent 2011-12-15 04:57:35 UTC
Testcase: input abc, select ab and make it bold, select bc and make it italic.
wikitext (ok, can be handled by the parser): '''a''b'''c''
dom (ok, makes sense):

{ "type": "document", "children": [ { "type": "paragraph", "content": { "text": "abc", "annotations": [ { "type": "textStyle/bold", "range": { "start": 0, "end": 2 } }, { "type": "textStyle/italic", "range": { "start": 1, "end": 3 } } ] } } ] }

html (invalid): <p><b>a<i>b</b>c</i></p>
Comment 1 MZMcBride 2012-06-22 20:02:55 UTC
(In reply to comment #0)
> html (invalid): <p><b>a<i>b</b>c</i></p>

Right. The proper HTML (as the MediaWiki parser generates it) would be: <p><b>a<i>b</i></b><i>c</i></p>
Comment 2 James Forrester 2012-06-22 20:46:36 UTC
With new version of VE, also broken, but differently - see bug 37846.
Comment 3 James Forrester 2012-10-15 22:57:26 UTC
Mass-moving old VisualEditor tickets to the VE product. Search for this message to mass-delete bugmail.

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


Navigation
Links