https://bugzilla.wikimedia.org/show_bug.cgi?id=72385
Bug ID: 72385
Summary: VisualEditor: Pasting invalidly parented <figcaption>
throws "Uncaught TypeError: Cannot read property
'type' of undefined" in
ve.dm.LinearData.static.getType
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: Unprioritized
Component: ContentEditable
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
1. Copy to the clipboard the below invalid rich content from NYTimes.com:
<div><div …><a …><img …></a></div><figcaption …>Foo</figcaption></div>
2. Go to any page in VE
3. Paste; observe crash of paste engine.
Paste rules are probably not checking parentage (HTML spec says no
<figcaption>s except as children of <figures>s) and it's breaking things.
Instead, we should… eh. Downcast to <div>?
--
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