Latest comment: 5 years ago by Mehdiwiti in topic Ty

The AbuseLog suggests some others:

Empty style tags[edit]

// serializes to
Examples: here or here.
Nico, Amir, looks like empty style tags (with only whitespace) ''' ''' is not that uncommon on wikis. We found so many that we had to add a special tweak to our rt-testing script to suppress those normalizations (when doing roundtrip testing) to reduce noise in our diffs. is the fix. But, this normalization is enabled for edited content in VE. So, we will strip style tags in edits that only wrap whitespace. FYI. Please flag if this not desirable. cc: Arlo, Elitre, James SSastry (WMF) (talk) 22:55, 11 August 2015 (UTC)Reply[reply]

Whitespace at the start of a paragraph[edit]

These nowikis are to prevent roundtripping as preformatted text.

<p> hi</p>
// serializes to
<nowiki> </nowiki>hi
This seems to be fixed in production in Wikimedia sites as of June 26 2015. I cannot reproduce it any more. --Amir E. Aharoni (talk) 07:30, 29 June 2015 (UTC)Reply[reply]
Not true. See this diff from frwiki from 30th June for example. So, VE's fixes aren't foolproof yet. We'll start handling these on our end, and it won't hurt in any case. SSastry (WMF) (talk) 04:47, 1 July 2015 (UTC)Reply[reply]
SSastry, any update about this? I still see this happening up to five times a day in he.wikipedia (I follow nowikis maniacally in my home wiki ;) ). --Amir E. Aharoni (talk) 08:32, 26 July 2015 (UTC)Reply[reply] was deployed on the 14th, but there may be a few things to fix yet. I had discussed about this with User:Arlolra because of this diff. He told me that he'd work on that. (I managed to reproduce that even worse here). --Elitre (WMF) (talk) 11:53, 27 July 2015 (UTC) PS. I now notice he had filed for the issue. --Elitre (WMF) (talk) 15:45, 27 July 2015 (UTC)Reply[reply]
Amir, please see discussion on SSastry (WMF) (talk) 23:11, 27 July 2015 (UTC)Reply[reply]
SSastry, to make sure that I understand it correctly, does this mean that it's on the way and will be live in the coming couple of weeks? --Amir E. Aharoni (talk) 12:28, 28 July 2015 (UTC)Reply[reply]
It should have gone out on the 14th, as mentioned above, but the scrubWikitxt parameter wasn't being forwarded by RESTBase. They deployed a fix for that just now (see T106909) and I've confirmed that the issue we were seeing on nlwiki is resolved. So, moving forward, this should no longer be an issue. Further, we've merged to be deployed tomorrow, which should address Arlolra (talk) 22:14, 28 July 2015 (UTC)Reply[reply]
Thanks, Arlolra! --Amir E. Aharoni (talk) 16:11, 29 July 2015 (UTC)Reply[reply]
Amir, so, are things looking better now? SSastry (WMF) (talk) 21:54, 30 July 2015 (UTC)Reply[reply]
SSastry - Looks like it does! I cannot reproduce it myself, and I haven't seen this happening in other edits yet. --Amir E. Aharoni (talk) 14:22, 31 July 2015 (UTC)Reply[reply]

Empty links[edit]

<a rel="mw:WikiLink" href="./Italie" title="Italie"></a>
// serializes to
It's not clear what to do automatically in such a case, but I noticed that often the output is [[Italie|<nowiki/>]][[Italie]], and then it's pretty obvious that the output should be [[Italie]]. --Amir E. Aharoni (talk) 16:00, 10 July 2015 (UTC)Reply[reply]
I suspect the particular case you describe here has probably been fixed by VE enabling the scrubWikitext flag. This should fall into the bucket with Parsoid/Normalizations#Tag_minimization_.28.3Ca.3E_tags.29. But the general case might still be worth looking into if it's more prevalent. Arlolra (talk) 18:28, 3 August 2015 (UTC)Reply[reply]
Patch for this in Arlolra (talk) 23:06, 5 August 2015 (UTC)Reply[reply]

An empty nowiki tag without anything at the end of the line[edit]

For example in the Hebrew Wikipedia here.

Maybe the nowiki is being leftover from the removed line ie. deleting in VE doesn't remove the nowiki meta. How common is this scenario? Arlolra (talk) 18:43, 3 August 2015 (UTC)Reply[reply]
Arlolra, this just happened to me at the Hebrew version of "Chrysippus".
In a previous version, there was a nowiki that separated a link from its trail (like in [[donkey]]<nowiki/>s). I completely removed that link, but the empty nowiki somehow traveled to the end of the line. It should have been just removed. (I'd argue that it shouldn't have been added in the first place, but it's a separate discussion.) --Amir E. Aharoni (talk) 17:37, 16 August 2015 (UTC)Reply[reply]
Arlolra, it happened again in this edit. --Amir E. Aharoni (talk) 20:32, 18 August 2015 (UTC)Reply[reply]
The patch seems to be stuck and I couldn't find a phab ticket about this, so I created . --Amir E. Aharoni (talk) 07:48, 28 November 2015 (UTC)Reply[reply]

A link that ends in space[edit]

Such as: [[Berlin ]]<nowiki/>is the capital of Germany.

This should be [[Berlin]] is the capital of Germany.

(It's barely imaginable that somebody actually prefers the former over the latter.)

This one was addressed in Arlolra (talk) 22:51, 3 August 2015 (UTC)Reply[reply]
Nico, Amir, looks like trailing white space for links is fairly common on wikis. We found so many that we are now adding another special tweak to our rt-testing script to suppress those normalizations (when doing roundtrip testing) to reduce noise in our diffs. But, this normalization is enabled for edited content in VE. So, we will migrate trailing whitespace out of the links (independent of whether it might introduce a nowiki or not). FYI. Please flag if this not desirable in which case we'll restrict this normalization to only nowiki-introducing links. I think we should update our normalization docs to more clearly document these behaviors. cc: Arlo, Elitre, James SSastry (WMF) (talk) 22:55, 11 August 2015 (UTC)Reply[reply]
As far as I can see, there's no difference in rendering between these two:
  1. CX is
  2. CX is
Number 1 has trailing space and nowiki, and number 2 has neither, but the HTML appears to be the same (am I missing anything?)
I don't know whether VE should do such a cleanup to the whole page on every saving or just to the edited paragraphs or words; I wouldn't mind if it happened and I wouldn't consider such diffs "dirty", but other editors' opinion may be different. I would go further and run a bot in the main space on all the wikis to clean this up once and for all (and then maybe every month). Am I exaggerating? :)
Eran, NicoV, Magioladitis, this may interest you. --Amir E. Aharoni (talk) 06:48, 10 September 2015 (UTC)Reply[reply]
VE will never cleanup a whole page. It'll only normalize edited content. Arlolra (talk) 16:10, 10 September 2015 (UTC)Reply[reply]

Cases from frwiki[edit]

I would suggest also to look at frwiki and not just enwiki, where VE is deactivated by default for everyone, to get a lot more examples of nowiki tags added by VE/Parsoid in places where a better solution could be provided. You can use frwiki abuse log for nowiki. --NicoV (talk) 17:05, 3 August 2015 (UTC)Reply[reply]

I check the corresponding data for Hebrew every day, and look for repeating patterns, manually - w:he:WP:VE/nowiki.
I cannot expect Parsoid developers to search for such info in all languages, so I suggest that people who care about wikis in their languages do this manually. Together we'll eradicate this :) --Amir E. Aharoni (talk) 17:22, 3 August 2015 (UTC)Reply[reply]
I started this list today, but it takes a long time to analyze the edits made by VE: fr:Wikipédia:ÉditeurVisuel/Avis/Nowiki. Is it interesting for the developers ? --NicoV (talk) 21:30, 3 August 2015 (UTC)Reply[reply]

Non-nowiki related normalization[edit]

See this. These scenarios can be handled by simply swapping the sole I/B child of an A-tag around .. i.e. <a ..><i>..</i></a> ==> <i><a ..>..</a></i> — Preceding unsigned comment added by SSastry (WMF) (talkcontribs)

User:SSastry (WMF), isn't this --Elitre (WMF) (talk) 11:03, 24 September 2015 (UTC)Reply[reply]



Mehdiwiti (talk) 19:51, 5 December 2017 (UTC)Reply[reply]