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

       Web browser: ---
             Bug #: 42279
           Summary: VisualEditor: Pre-annotations code annotates
                    characters with the empty set
           Product: VisualEditor
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Data Model
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


1. Open any document
2. Blank it
3. Type some text
4. Dump the model into the console (ve.instances[0].documentModel.data)

Expected output: [ 'F', 'o', 'o', 'b', 'a', 'r' ]
Actual output: [ 'F', ['o', ve.AnnotationSet([])], ['b', ve.AnnotationSet([])]
...

The pre-annotations code is applying the empty set as a pre-annotation to every
character except the first. This shouldn't happen, it should just not annotate
if it's got nothing to annotate with.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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

Reply via email to