Page MenuHomePhabricator

User edit (copy paste?) added a list whose HTML <li> came through into the wikitext somehow
Closed, ResolvedPublic

Description

Check

https://en.wikipedia.org/w/index.php?title=DJ_Dan&diff=678990353&oldid=676986450

where

<ul role="presentation"><li> ''DX2'' (Mix Tape) (Independent)</li> * ''DX2

was added.

Notice that ul was also an attribute....

Event Timeline

Magioladitis raised the priority of this task from to Needs Triage.
Magioladitis updated the task description. (Show Details)
Magioladitis added a project: VisualEditor.

Looks like the user copy-pasted it from somewhere…

Jdforrester-WMF renamed this task from VE adds ul/il tags to User edit (copy paste?) added a list whose HTML <li> came through into the wikitext somehow.Sep 2 2015, 9:29 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF set Security to None.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.

T109449 has at least partially solved T94703 and T53899.
But today I have pasted wikitext list item and <li> markups have been added instead of *

We could consider adding <li> to the wikitext detection heuristic. But I don't think that's necessarily a good idea. It's more likely to be HTML than wikitext.

Perhaps it would be better to add an explicit "paste special" sort of option for pasting wikitext. That seems like the aim of T53899: Allow the user to add an arbitrary blob of wikitext while using the visual editor, so I'd recommend closing this task a s dup of that one.

We could consider adding <li> to the wikitext detection heuristic. But I don't think that's necessarily a good idea. It's more likely to be HTML than wikitext.

I believe you have not understood. I have pasted :

*This is a [[link]].

And VisualEditor have created this wikitext :

<li>This is a [[link]].</li>

Same aspect but different code (and I think it should be better if VE use wikitext rather than HTML).

Perhaps it would be better to add an explicit "paste special" sort of option for pasting wikitext. That seems like the aim of T53899: Allow the user to add an arbitrary blob of wikitext while using the visual editor, so I'd recommend closing this task a s dup of that one.

OK for create "paste special". But you have asked to close T53899 too : I think we must keep one of the two ones.

This is also an accessibility issue.

* Item one
<li> Item two</li>
* Item three

This creates three separate lists with three <ul></ul> tags. Description why it is bad is at [[:en:WP:LISTGAP]].

We already have "paste special". We're not going the route of doom… err, I mean, of Excel and having a pop-up menu asking exactly which of the 24 special paste options you meant.

T109449 has been fixed to allow copy/paste wikitext in VE. It works well, but there is almost a bug : this bug. "paste special" is something else.

It seems to have change, but it is not better. When I paste *This is a [[link]]. this wikitext is inserted : <ul>*This is a [[link]].</ul> whereas in wikitext <ul> markups are implicit. (no ?)

I think this is not reproducible anymore.

ssastry claimed this task.