mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 05:56:11 +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 |
||
---|---|---|
.. | ||
ve.dm.AlienNode.js | ||
ve.dm.BreakNode.js | ||
ve.dm.CenterNode.js | ||
ve.dm.DefinitionListItemNode.js | ||
ve.dm.DefinitionListNode.js | ||
ve.dm.DocumentNode.js | ||
ve.dm.GeneratedContentNode.js | ||
ve.dm.HeadingNode.js | ||
ve.dm.ImageNode.js | ||
ve.dm.ListItemNode.js | ||
ve.dm.ListNode.js | ||
ve.dm.MWEntityNode.js | ||
ve.dm.MWHeadingNode.js | ||
ve.dm.MWImageNode.js | ||
ve.dm.MWPreformattedNode.js | ||
ve.dm.MWTemplateNode.js | ||
ve.dm.ParagraphNode.js | ||
ve.dm.PreformattedNode.js | ||
ve.dm.TableCellNode.js | ||
ve.dm.TableNode.js | ||
ve.dm.TableRowNode.js | ||
ve.dm.TableSectionNode.js | ||
ve.dm.TextNode.js |