mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
43ea9a42d8
instanceof Node doesn't work with nodes generated by the iframe hack for some reason. Instead, use duck typing by checking for a .cloneNode method. >>> ve.createDocumentFromHTML('<body><tt>Foo</tt></body>').body.childNodes[0] <tt>Foo</tt> >>> ve.createDocumentFromHTML('<body><tt>Foo</tt></body>').body.childNodes[0] instanceof Node false Change-Id: I1ea1253bd204d1070cd01b666b8a90f1cb7e5e14 |
||
---|---|---|
.. | ||
actions | ||
ce | ||
dm | ||
init | ||
example.png | ||
index.php | ||
ve.BranchNode.test.js | ||
ve.Document.test.js | ||
ve.example.js | ||
ve.Factory.test.js | ||
ve.LeafNode.test.js | ||
ve.Node.test.js | ||
ve.qunit.js | ||
ve.Range.test.js | ||
ve.test.js | ||
ve.Trigger.test.js |