Last modified: 2014-10-22 21:03:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74385, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72385 - VisualEditor: Pasting invalidly parented <figcaption> throws "Uncaught TypeError: Cannot read property 'type' of undefined" in ve.dm.LinearData.static.getType
VisualEditor: Pasting invalidly parented <figcaption> throws "Uncaught TypeEr...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-22 20:52 UTC by James Forrester
Modified: 2014-10-22 21:03 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Forrester 2014-10-22 20:52:57 UTC
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>?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links