mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-03 20:34:20 +01:00 
			
		
		
		
	#903 Allowing >,< and = characters in svg. Updating xss tests to handle both htmlLabels and non htmlLabels
This commit is contained in:
		@@ -28,7 +28,10 @@
 | 
			
		||||
        div.id = 'the-malware'
 | 
			
		||||
        div.className = 'malware'
 | 
			
		||||
        div.innerHTML = 'XSS Succeeded'
 | 
			
		||||
        document.getElementsByTagName('body')[0].appendChild(div)
 | 
			
		||||
        document.getElementsByTagName('body')[0].appendChild(div);
 | 
			
		||||
        // const el = document.querySelector('.mermaid');
 | 
			
		||||
        // el.parentNode.removeChild(el);
 | 
			
		||||
        throw new Error('XSS Succeded');
 | 
			
		||||
      }
 | 
			
		||||
    </script>
 | 
			
		||||
  </head>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user