Markdown.Sanitizer.js should not use global window variable
Ouverte
auto-migrated
Priority-Medium
Type-Defect
- Langage dominant
- JavaScript
- Étoiles
- 0
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
```
We are trying to use Markdown.Sanitizer.js in Acre (a server-side javascript
environement).
However, we find ourselves hacking a window object to use Markdown.Sanitizer.js.
But if Markdown.Sanitizer.js passes "this" as the "window" variable, we can use
Markdown.Sanitizer.js on the server-side as is:
(function(window) {
...
})(this);
```
Original issue reported on code.google.com by `daep...@google.com` on 24 Sep 2012 at 2:59
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.