Closed Bug 1210498 Opened 9 years ago Closed 9 years ago

Validator fails to recognize modification of a variable, misses assignment to innerHTML

Categories

(addons.mozilla.org Graveyard :: Add-on Validation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1197206

People

(Reporter: jwkbugzilla, Unassigned)

Details

I noticed an innerHTML assignment in a submitted extension that wasn't flagged by the validator. I could reduce it to the following code:

  var x = '';
  x += foo;
  a.innerHTML = x;

Note that x starts off as a literal value and the validator recognizes this. However, the validator doesn't recognize that += modifies the value, so it keeps treating x as a literal.

This is not the same issue as bug 1209190 but might be a duplicate of 1197206, impossible to tell without real info over there.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.