This project is archived and is in readonly mode.

#1157 ✓wontfix

Mootools 1.3 native extensions breaks NodeJS

Reported by demian85 | January 27th, 2011 @ 01:54 PM

Using the zombie module (, the html5 parser breaks when including a special mootools build for nodejs. The special build includes only the core js extensions (array, string, object, function and number)
The stack trace is the following, but I really don't know if this is the right place to report this bug, please let me know.

TypeError: Cannot call method 'toLowerCase' of undefined
    at Object.endTagFormatting (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/parser/in_body_phase.js:646:85)
    at Object.processEndTag (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/parser/phase.js:50:36)
    at EventEmitter.do_token (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/parser.js:97:20)
    at EventEmitter.<anonymous> (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/parser.js:112:30)
    at EventEmitter.emit (events:31:17)
    at EventEmitter.emitToken (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/tokenizer.js:84:7)
    at EventEmitter.emit_current_token (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/tokenizer.js:813:7)
    at EventEmitter.tag_name_state (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/tokenizer.js:358:8)
    at EventEmitter.<anonymous> (/usr/local/lib/node/.npm/html5/0.2.12/package/lib/html5/tokenizer.js:59:25)
    at EventEmitter.emit (events:31:17)

Comments and changes to this ticket

  • Christoph Pojer

    Christoph Pojer February 2nd, 2011 @ 08:02 PM

    • State changed from “new” to “wontfix”
    • Assigned user set to “Christoph Pojer”

    It seems like they are using a loop on a String. You must not iterate over arrays or strings via but only use for+length. Unfortunately we cannot change this in our code. Their code needs adjustments for string handling to support MooTools. Maybe they are kind enough to change their code in order to make MooTools work.

  • demian85

    demian85 February 2nd, 2011 @ 08:37 PM

    This issue has been solved. I reported this on github.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket