mediawiki-extensions-Visual.../modules/ve/test
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
..
ce Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
dm Fix tests for fda2e6c1b5 2012-11-26 21:39:14 +00:00
image.png Losslessly compress png images 2012-08-18 23:12:44 +01:00
index.html (bug 42218) Add MWEntityNode 2012-11-20 16:19:55 -08:00
ve.BranchNode.test.js Optimize UI tool state updates. 2012-09-19 11:16:10 -07:00
ve.Command.test.js Replaced command factory with new command class 2012-11-07 15:47:03 -08:00
ve.Document.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.example.js Add parentOuterRange to selectNodes() output 2012-10-19 15:28:26 -07:00
ve.Factory.test.js Added multiple name registration to ve.Factory 2012-10-12 17:43:04 -07:00
ve.LeafNode.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Node.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.qunit.js Merge "(bug 42124) Store comments in the meta-linmod" 2012-11-21 22:12:41 +00:00
ve.Range.test.js Test: Enforce # of expected assertions. 2012-10-25 22:06:07 +02:00
ve.test.js Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00