https://bugzilla.wikimedia.org/show_bug.cgi?id=45183

       Web browser: ---
            Bug ID: 45183
           Summary: VisualEditor: newFromWrap() should perform validation
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Technical Debt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

ve.dm.Transaction.newFromWrap() currently doesn't check that the transaction it
generates will be valid. That is, it will ensure that things are unwrapped
correctly, but it doesn't check that the result doesn't end up violating
parent/child restrictions.

It's not entirely clear to me whether we should try to rectify that or throw an
exception, but either of those is better than generating a transaction that,
when applied, will make the document nonconformant.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to