mediawiki-extensions-Visual.../modules/ve/ce
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
..
nodes The last ever mw.ext.ve jshint fixup 2012-11-26 22:36:07 +01:00
styles Alien Phantoms 2012-11-14 13:11:29 -08:00
ve.ce.BranchNode.js (bug 42134) Add shields after node is attached to the live DOM 2012-11-15 14:17:12 -08:00
ve.ce.Document.js Fix even more inspector issues, and some ce ones as well 2012-11-21 15:26:12 -08:00
ve.ce.js Make entity nodes work in CE 2012-11-21 12:04:31 -08:00
ve.ce.LeafNode.js Whitespace and comments 2012-09-17 16:53:03 -07:00
ve.ce.Node.js Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
ve.ce.NodeFactory.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.ce.Surface.js (bug 42404) Errors passing "incorrect" offsets to ve.ce.Surface.getNodeAndOffset 2012-11-26 15:01:35 -08:00
ve.ce.SurfaceObserver.js Fix even more inspector issues, and some ce ones as well 2012-11-21 15:26:12 -08:00