document.querySelector() fails when ids include periods
bworrell opened this issue · comments
If an id in the STIX content contains a period .
, then the stix-to-html javascript logs errors regarding document.querySelector()
.
In testing, I resolved this by escaping the periods before passing it to the querySelector()
method (much like what is done with :
characters).
some_id = some_id.split(".").join("\\.").;