Loading...
Loading...
The UI Page with the HTML code that includes the xmlns="http://www.w3.org/TR/REC-html40" attribute stop working after the San Diego upgrade. The JavaScript code in the UI page does not function anymore. Steps to Reproduce 1) Create a new UI Page and put the code below into the HTML field. Click here to see the official documentation for more info. <?xml version="1.0" encoding="UTF-8"?> <j:jelly xmlns:j="jelly:core" xmlns:g="glide" xmlns:g2="null" xmlns:j2="null" trim="false"> <html xmlns="http://www.w3.org/TR/REC-html40"> <body> <button type="button" onclick="doIt()">Click here</button> <script> function doIt() { alert("Clicked!"); } </script> </body> </html> </j:jelly> 2) Click "Try It" button, which is located on the top right corner of the header, to test after the UI page is created. 3) Click the "Click here" button on the UI page Expected: To see an alert with the "Clicked!" message Actual: The alert window does not appear. There is also the JavaScript error below in the console logs: Uncaught ReferenceError: doIt is not defined
Remove the xmlns="http://www.w3.org/TR/REC-html40" attribute from the HTML tag.
PRB1593478
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.