sheet.xsl: use CDATA for js code
This commit is contained in:
		@@ -224,6 +224,7 @@
 | 
				
			|||||||
			</div>
 | 
								</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<script>
 | 
								<script>
 | 
				
			||||||
 | 
								//<![CDATA[
 | 
				
			||||||
				document.getElementById("url").value = window.location.href
 | 
									document.getElementById("url").value = window.location.href
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				if (!/:html/.test(window.location.href))
 | 
									if (!/:html/.test(window.location.href))
 | 
				
			||||||
@@ -236,8 +237,7 @@
 | 
				
			|||||||
					for (var select of document.forms[0].elements)
 | 
										for (var select of document.forms[0].elements)
 | 
				
			||||||
						if (select.tagName == 'SELECT')
 | 
											if (select.tagName == 'SELECT')
 | 
				
			||||||
							for (var option of select)
 | 
												for (var option of select)
 | 
				
			||||||
								if (option.value)
 | 
													if (option.value && options.match(option.value)) {
 | 
				
			||||||
									if (options.match(option.value)) {
 | 
					 | 
				
			||||||
									select.value = option.value
 | 
														select.value = option.value
 | 
				
			||||||
									options = options.replace(option.value, '')
 | 
														options = options.replace(option.value, '')
 | 
				
			||||||
									break
 | 
														break
 | 
				
			||||||
@@ -269,6 +269,7 @@
 | 
				
			|||||||
					if (target != window.location.pathname)
 | 
										if (target != window.location.pathname)
 | 
				
			||||||
						window.location.href = target
 | 
											window.location.href = target
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
								//]]>
 | 
				
			||||||
			</script>
 | 
								</script>
 | 
				
			||||||
		</body>
 | 
							</body>
 | 
				
			||||||
		</html>
 | 
							</html>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user