https://bugzilla.wikimedia.org/show_bug.cgi?id=40463
Web browser: ---
Bug #: 40463
Summary: Uncaught TypeError: Cannot call method
'canHaveChildren' of null
Product: VisualEditor
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: User Interface
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Little hard to reproduce but has come up several times. Selecting some text,
playing around with the inspector and pasting some text.
Stack:
Uncaught TypeError: Cannot call method 'canHaveChildren' of null
> ve.dm.Document.getNodeFromOffset
> ve.ui.Toolbar.updateTools
> ve.EventEmitter.emit
> ve.dm.Surface.change
> ve.ce.Surface.onPaste
> jQuery.extend.proxy.proxy
> jQuery.event.dispatch
> jQuery.event.add.elemData.handle.eventHandle
ve.dm.Document.prototype.getNodeFromOffset = function(offset) {
var node = this.documentNode.getNodeFromOffset(offset);
if (!node.canHaveChildren
Uncaught TypeError: Cannot call method 'canHaveChildren' of null
()) {
node = node.getParent();
}
r
--
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