Last modified: 2013-11-19 19:03:33 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 T59258, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57258 - Parsoid is unable to handle !important in table inline styles
Parsoid is unable to handle !important in table inline styles
Status: NEW
Product: Parsoid
Classification: Unclassified
tokenizer (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-19 16:52 UTC by Derk-Jan Hartman
Modified: 2013-11-19 19:03 UTC (History)
3 users (show)

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


Attachments

Description Derk-Jan Hartman 2013-11-19 16:52:18 UTC
http://parsoid.wmflabs.org/enwiki/Ontario_Northland_Railway?oldid=578412261

There is:
<td class="bs-overlap" style="background-color:inherit; border:0px !important; width:20px; min-width:20px;"></td>

which parsoid outputs as just style="background-color:inherit;", with the following additional data-parsoid:

{"style":" background-color:inherit;","border:0px":null,"!important;":null,"\"":null}

This causes the min-width to get lost which causes the train track template to misalign.
Comment 1 Gabriel Wicke 2013-11-19 17:19:37 UTC
Looks like a tokenizer issue.
Comment 2 Gabriel Wicke 2013-11-19 18:15:59 UTC
Test case:
{|
| style="color: red !important" | foo
|}

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


Navigation
Links