https://bugzilla.wikimedia.org/show_bug.cgi?id=53568
Web browser: --- Bug ID: 53568 Summary: Parsoid: Attributes are dropped when added to a list item that was originally wikitext-style Product: Parsoid Version: unspecified Hardware: All OS: All Status: NEW Severity: critical Priority: Unprioritized Component: serializer Assignee: gwi...@wikimedia.org Reporter: krinklem...@gmail.com CC: ssas...@wikimedia.org Classification: Unclassified Mobile Platform: --- When editing a document that contains: * Foo * Bar * Baz Adding an attribute to one of the list items in VE doesn't roundtrip (they serialise back to * instead of forcing <ul><li>..</ul>, as it will have to). Right now VisualEditor never does this, but earlier today I was experimenting with this (the language inspector might need to do this to properly flip the directionality of an individual list item, wrapping the inner content is not an option as then the number would be on the wrong side). When trying to reproduce this I noticed that it also happens when creating a new document (e.g. there is no existing page, it has no reason to force "*" instead of "<li>" other than that being the preferred default for wikitext). http://parsoid.wmflabs.org/_html/: In: <div dir="ltr"> <ul> <li>a <li lang="he" dir="rtl">b <li>c </ul> </div> Out: <div dir="ltr"> * a * b * c </div> The only case where Parsoid kept the attributes is when not editing a document with wikitext, and not creating a new document, but when editing an existing document with "<li>" in wikitext already, it did roundtrip those. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l