Closed Bug 917894 Opened 12 years ago Closed 12 years ago

JavaScript syntax hightlighting is confused by the spread operator.

Categories

(developer.mozilla.org Graveyard :: Design, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: teoli, Unassigned)

References

()

Details

The MDN is always on the bleeding edge of the Web development! So we already have examples using the new Harmony/EcmaScript 6 experimental-but-approved spread operator. (see page in URL). It is a '...' that confuse the syntax hightlighter that doesn't highlight anything any more.
I found that the first <pre class="brush: js"> contians <code class="lang-javascript"> statically, which should be generated dynamically. If I remove the tag, it seems that it works correctly.
Oh cool! Thank you.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.