mediawiki-extensions-Visual.../modules/ve
Inez Korczyński a9082e6dde Only apply HTML attributes to DOM nodes that are "safe"
* Added whitelist argument to setDomAttributes which allows filtering of attributes being set
* Added prefix argument to ve.dm.Node.getAttributes to allow extracting a subset of attributes by name prefix
* Added a whitelist to ve.ce.Node which was extracted from MediaWiki's Sanitizer class
* Replaced attribute copying code with a call to setDomAttributes using the whitelist argument, passing in attributes from a call to ve.dm.Node.getAttributes using the prefix argument

Also…

* Removed comment in constructor of ve.ce.Node, documentation for properties is usually in the getters/setters, and already was in this case
* Renamed ve.setDOMAttributes to ve.setDomAttributes
* Renamed ve.getDOMAttributes to ve.getDomAttributes
* Renamed ve.getDOMText to ve.getDomText
* Renamed ve.getDOMHash to ve.getDomHash
* Updated all callers of renamed methods

Change-Id: Id556172d5d18ea431044b9d402400e1f0e67a293
2012-11-27 14:34:29 -08:00
..
actions Fixed inspector behavior 2012-11-21 12:01:14 -08:00
ce Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
dm Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
init (bug 42402) Split out two cases so as not to throw an error 2012-11-23 18:25:23 -08:00
test Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
ui Fixed inspector behavior 2012-11-21 12:01:14 -08:00
ve.Action.js Mapped tab key to indentation action 2012-11-07 16:26:13 -08:00
ve.ActionFactory.js Add ve.Action, ve.ActionFactory, subclasses 2012-10-26 14:44:17 -07:00
ve.AnnotationSet.js Fix UI for annotation API changes 2012-10-12 17:53:42 -07:00
ve.BranchNode.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Command.js Added some more key bindings for IE and Mozilla support 2012-11-07 16:49:34 -08:00
ve.CommandRegistry.js Mapped tab key to indentation action 2012-11-07 16:26:13 -08:00
ve.debug.js
ve.Document.js Standards: Fix global variables and pass JSHint. 2012-10-23 00:53:48 +02:00
ve.EventEmitter.js
ve.Factory.js Refactored commands into a registry 2012-11-07 15:52:30 -08:00
ve.js Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
ve.LeafNode.js
ve.Node.js
ve.OrderedHashSet.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Position.js
ve.Range.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Registry.js Refactored commands into a registry 2012-11-07 15:52:30 -08:00
ve.Surface.js (bug 42277) First character in empty document behaves strangely in Firefox 2012-11-26 21:39:01 +00:00