mediawiki-extensions-Visual.../modules/ve/test
Catrope d36e6851d5 Add ve.createDocumentFromHTML()
Converts an HTML string to a brand new document using an iframe hack
(proper ways to do this exist, but don't work cross-browser).

Parsoid will serve us full HTML documents rather than document fragments
soon, so we'll need this functionality (along with some other changes
that I'm working on now) to deal with that change.

This doesn't currently work quite right in IE8 (although we have lots of
other issues in IE8) as well. It's not that hard to fix up though: we
just have to leave the iframe attached to the main document (should
probably provide a destroy function in that case) and the tests have to
deal with the fact that IE normalizes <head></head> to
<head><title></title></head> .

(For backwards compatibility, we'll have to deal with document fragments
as well; this will be implemented as an MW-specific hack in the
integration in the next commit.)

Change-Id: I15f877583c39124ba1c5e8e22585297ff3bac8d6
2013-02-19 10:30:25 -08:00
..
ce Change the HTML attribute prefix from html/ to html/0/ 2013-02-06 12:00:43 -08:00
dm Merge "(bug 45029) Transactions for metadata modification." 2013-02-15 01:28:44 +00:00
init JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
image.png Losslessly compress png images 2012-08-18 23:12:44 +01:00
index.php Add user interface widgets 2013-02-13 18:04:04 -08:00
ve.BranchNode.test.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.Document.test.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.example.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.Factory.test.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.LeafNode.test.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.Node.test.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.qunit.js Added tests and fixed inconsistencies for empty text node handling 2013-01-29 15:13:17 -08:00
ve.Range.test.js JSDuck: Generated code documentation! 2013-01-05 01:16:32 +01:00
ve.test.js Add ve.createDocumentFromHTML() 2013-02-19 10:30:25 -08:00
ve.Trigger.test.js Trigger refactor 2013-01-28 17:06:13 -08:00