thiemowmde added a comment.

  I was working on T249167 <https://phabricator.wikimedia.org/T249167> and 
T258337 <https://phabricator.wikimedia.org/T258337> and found what causes this: 
Never call `setLabel()` with anything but plain text. When you want a more 
complex HTML label, do it like this:
  
    new OO.ui.…Widget( {
        label: 'Plain text',
        $label: $( '<a>' ).attr( { 'href': '…' } ),
    } );
  
  Or like this:
  
    // This is exactly what the LabelElement constructor does
    widget.setLabel( 'Plain text' );
    widget.setLabelElement( $( '<a>' ).attr( { 'href': '…' } ) );
  
  In both cases the plain text label and the HTML element that wraps the text 
are passed in separately.
  
  This is a workaround that avoids any of the broken code in `setLabel()`.

TASK DETAIL
  https://phabricator.wikimedia.org/T239208

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: thiemowmde
Cc: thiemowmde, Nikki, DannyS712, Akuckartz, darthmon_wmde, Nandana, 
Mringgaard, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to