mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-31 13:55:46 +01:00
Fix some cleanup issues. Better error pages for bad dactyl: URLs. Remove some dead code. Other cleanup.
This commit is contained in:
@@ -1589,8 +1589,8 @@ var DOM = Class("DOM", {
|
||||
|
||||
attrHooks: array.toObject([
|
||||
["", {
|
||||
href: { get: function (elem) elem.href },
|
||||
src: { get: function (elem) elem.src }
|
||||
href: { get: function (elem) elem.href || elem.getAttribute("href") },
|
||||
src: { get: function (elem) elem.src || elem.getAttribute("src") }
|
||||
}]
|
||||
]),
|
||||
|
||||
@@ -1843,7 +1843,7 @@ var DOM = Class("DOM", {
|
||||
*/
|
||||
get style() {
|
||||
let node = this[0];
|
||||
while (!(node instanceof Ci.nsIDOMElement) && node.parentNode)
|
||||
while (node && !(node instanceof Ci.nsIDOMElement) && node.parentNode)
|
||||
node = node.parentNode;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user