https://bugzilla.wikimedia.org/show_bug.cgi?id=53287
Web browser: ---
Bug ID: 53287
Summary: More robust in-table state tracking needed to disable
paragraph wrapping in tables
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: token-stream transforms
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Unbalanced table tokens in pages like http://fi.wikipedia.org/wiki/Kypros throw
off the in-table tracking in the paragraph wrapper. This causes newlines in
fosterable position to be paragraph-wrapped, which is then fostered out.
Broken behavior:
echo -ne '{|\n<td><td>fo</td>\n\n\n\n|}' | node parse
WARNING: DSR inconsistency: cs/s mismatch for node: BODY s: 0; cs: -1
<body><p data-parsoid='{"autoInsertedEnd":true,"dsr":[-1,-1,0,0]}'><br
data-parsoid='{"dsr":[-1,-1,0,0]}'></p>
<table data-parsoid='{"dsr":[0,24,2,2]}'>
<tbody data-parsoid='{"dsr":[3,22,0,0]}'><tr
data-parsoid='{"dsr":[3,19,0,0]}'><td
data-parsoid='{"stx":"html","autoInsertedEnd":true,"dsr":[3,7,4,0]}'></td><td
data-parsoid='{"stx":"html","dsr":[7,18,4,5]}'>fo</td></tr>
</tbody></table></body>
Correct behavior:
echo -ne '{|\n<td><td>fo</td>\n\n\n\n|}' | node parse
<body data-parsoid='{"dsr":[0,24,0,0]}'><table
data-parsoid='{"dsr":[0,24,2,2]}'>
<tbody data-parsoid='{"dsr":[3,22,0,0]}'><tr
data-parsoid='{"autoInsertedEnd":true,"dsr":[3,18,0,0]}'><td
data-parsoid='{"stx":"html","autoInsertedEnd":true,"dsr":[3,7,4,0]}'></td><td
data-parsoid='{"stx":"html","dsr":[7,18,4,5]}'>fo</td></tr>
</tbody></table></body>
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l