Stop encoding the value in the DOMElement.setAttribute method (issue 8558)
				
					
				
			This patch is an attempt at closing an old, and seemingly trivial, issue and the SVG-files created by the `pdf2svg.js` examples still appear to work just fine when opened in browsers (tested with Firefox Nightly and Google Chrome Beta).
This commit is contained in:
		
							parent
							
								
									94ca66f528
								
							
						
					
					
						commit
						2ffc921163
					
				| @ -93,9 +93,7 @@ DOMElement.prototype = { | ||||
|   }, | ||||
| 
 | ||||
|   setAttribute: function DOMElement_setAttribute(name, value) { | ||||
|     value = value || ""; | ||||
|     value = xmlEncode(value); | ||||
|     this.attributes[name] = value; | ||||
|     this.attributes[name] = value || ""; | ||||
|   }, | ||||
| 
 | ||||
|   setAttributeNS: function DOMElement_setAttributeNS(NS, name, value) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user