mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
42c1aa10cd
Context-sensitive nodes are HTML elements like <caption> that can only appear in certain contexts (<table> in this case). This means that serializing them by throwing them in a <div> and calling .innerHTML fails, because the browser knows a <caption> can't be in a <div> and unwraps it. jQuery's .html() function is clever though and knows to wrap <caption> in a <table> (and has similar rules for other elements). So use jQuery's .html() rather than manual .innerHTML stuff. Change-Id: Id7d3eff968b3a2ba345680772f7cc32e3dcdb529 |
||
---|---|---|
.. | ||
jquery | ||
qunit | ||
rangy | ||
unicodejs | ||
ve |