Page MenuHomePhabricator

bug in wikibits.js - function akeytt()
Closed, ResolvedPublic

Description

Author: rbeelaard

Description:
When a page contains a header such as

=== a ===

and is browsed with IE (with debugging enabled), rendering the page gives an
error a the line:

a = n.childNodes[0];

Version: unspecified
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz4001

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:57 PM
bzimport set Reference to bz4001.
bzimport added a subscriber: Unknown Object (MLST).

It could either be that there is rubbish in the ta variable or that that the
headings define global id without any prefixes, which is a bug.

wikibits.js code was buggy, missing local variable declarations. Apparently on IE at least the 'id'
attribute shoved things into global namespace which then got picked up.

Fixed in CVS HEAD.