Miguel Fonseca
dea243f2eb
Sanitize location.hash before passing it to getElementById
...
There is no actual vulnerability in the existing implementation, as we
can only fetch existing elements (no DOM injection is possible). Plus,
the only call occurring on those elements is `HTMLElement#focus`.
Consider this an extra, more future-proof precaution.
2015-02-17 17:52:36 +00:00
Julien Melissas
67fb1af3f3
Add braces around if statement.
...
Running jshint on this file returned an error, adding braces fixed it. Please add braces around if statements!!! :)
2014-12-24 00:19:34 -05:00
Jeffery To
c6ad689d89
Removed addEvent support
...
As noted in #456 , IE8 is no longer supported.
Also, undefined is falsey in JavaScript, so the typeof check was unnecessary.
2014-04-15 17:40:29 +08:00
sixhours
9f3e2cdd80
Remove blank tabs/trailing whitespace
2013-03-07 09:10:13 -05:00
obenland
c4f2aa32ce
_s: Formatting changes:
...
- Reduce element comments to either the element id or the first element
class.
- Tabs > Spaces.
- Improve adherence to formatting guidelines.
2013-03-04 16:41:38 -08:00
Aaron Jorbin
6ee6126089
On hashchange, make sure we set focus for elements that need it. Essentially the same as 136, but without jquery
2013-01-21 19:01:53 -05:00