[openstreetmap/openstreetmap-website] [Regression] Map stopped working in older Chrome versions (#2529)

mmd notifications at github.com
Mon Feb 10 22:52:29 UTC 2020


That's odd, yes. Here's a minimal version to reproduce the issue:

```
var unsafeHtml = '<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
var domParser = new window.DOMParser();
var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
```

unsafeHtml happens to be the string at the place of the issue. It could be anything else, though. parseFromString will always fail.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2529#issuecomment-584397485
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200210/3c91245a/attachment.htm>


More information about the rails-dev mailing list