mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
6832be68ed
* Fix getScope() ** Drop the -1 which caused the result to be off by one level ** Prevent JS errors from occurring if bad input causes the loop to try to traverse up above the root node * insert() ** Detect the case where the input data tries to close the containing element; in that case, we'll get scope != node ** Move the getNodeFromOffset() and getScope() calls up and out of the conditionals ** Remove unnecessary parent==model conditional, no longer needed now that getScope() can safely handle things that try to traverse too far up ** Add some comments to explain what's going on. I'll restructure this function a bit more shortly |
||
---|---|---|
.. | ||
es | ||
jquery | ||
parser | ||
qunit | ||
sandbox |