mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			772 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			772 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <svg xmlns="http://www.w3.org/2000/svg">
 | |
|     <script id="with-xlink-href" xlink:href="test"></script>
 | |
|     <script id="no-xlink-href" href="test"></script>
 | |
| </svg>
 | |
| <script id="svg-script-element">
 | |
|     test(() => {
 | |
|         const xlinkNS = document.getElementById("with-xlink-href");
 | |
|         println(`xlink:ref getAttribute = '${xlinkNS.getAttribute("href")}'`);
 | |
|         println(`xlink:ref getAttributeNS = '${xlinkNS.getAttributeNS("http://www.w3.org/1999/xlink", "href")}'`);
 | |
| 
 | |
|         const noNS = document.getElementById("no-xlink-href");
 | |
|         println(`href getAttribute = '${noNS.getAttribute("href")}'`);
 | |
|         println(`href getAttributeNS = '${noNS.getAttributeNS("http://www.w3.org/1999/xlink", "href")}'`);
 | |
|     });
 | |
| </script>
 | 
