Bug ID 918717: Exception at rewritten Element.innerHTML='<a href></a>'

Last Modified: Sep 13, 2023

Affected Product(s):
BIG-IP APM(all modules)

Known Affected Versions:
15.0.0, 15.0.1, 15.0.1.1, 15.0.1.2, 15.0.1.3, 15.0.1.4, 15.1.0, 15.1.0.1, 15.1.0.2, 15.1.0.3, 15.1.0.4, 15.1.0.5, 15.1.1, 15.1.2, 15.1.2.1, 15.1.3, 15.1.3.1, 15.1.4

Fixed In:
16.1.0, 15.1.4.1

Opened: Jun 17, 2020

Severity: 4-Minor

Symptoms

If the "href" attribute of an anchor tag in a web application does not have any value, an exception will be thrown.

Impact

Web page does not load properly.

Conditions

-- Rewrite enabled -- The href attribute of an anchor tag on a web page does not have a value, for example: <script> d = document.createElement('div') try { d.innerHTML = "<a href b=1>click</a>" }catch(e){ alert(e.message); } </script>

Workaround

Find the "href" attributes of anchor tag and give some empty value to it: Before: <a href></a> After: <a href=""></a>

Fix Information

Fixed an issue with rewrite of anchors that contain an empty href attribute.

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips