mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
7287c80293
Redone using document.implementation.createHTMLDocument instead of the iframe trick. It's supported by all browsers we target, including IE9. This also makes VE work on Opera using a nasty hack. * Previously, for reasons I'm not even trying to understand, Opera would sometimes return an empty generic object from ve.createDocumentFromHTML() - but only if you weren't debugging it (Dragonfly was disabled). I have no idea what is it about the iframe hack that makes it not like it, but fact is, it doesn't work. * Calling .open(), .write() or .close() on the document returned by document.implementation.createHTMLDocument acts as if it was window.document - that is, the entire contents of the web page are replaced with new ones. That's probably a one-word bug somewhere deep in Opera's innards; I reported it (it got the identifier DSK-384486). Until it gets fixed, we work around it by using document.documentElement.innerHTML, which works reliably. Change-Id: I90ea547c735edaba9f7ecb8f685351ac6499c53e |
||
---|---|---|
.. | ||
actions | ||
ce | ||
dm | ||
init | ||
styles | ||
test | ||
ui | ||
ve.Action.js | ||
ve.ActionFactory.js | ||
ve.BranchNode.js | ||
ve.CommandRegistry.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.NamedClassFactory.js | ||
ve.Node.js | ||
ve.Range.js | ||
ve.Registry.js | ||
ve.Surface.js | ||
ve.Trigger.js | ||
ve.TriggerRegistry.js |