Skip to content


Subversion checkout URL

You can clone with
Download ZIP


element.erase( 'html' ) sets content to text 'undefined' #2182

michaelcm opened this Issue · 0 comments

2 participants


This fiddle captures it all - this is new in MooTools 1.4.2 (or 1.4.1, was upgrading from 1.4.0):

This document [ ] defines the property to be:
This is a "dynamic arguments" method. Properties passed in can be any of the 'erase' properties in the Element.Properties Object."

The link to "Element.Properties" includes

So html should by emptied not set to the text 'undefined'.

This was reproduced with Chrome 16.

@arian arian referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@arian arian referenced this issue from a commit in arian/mootools-core
@arian arian Fixes #2182 - Element.erase('html') should set the innerHTML to an em…
…pty string. was aliased to, but when calling it without any arguments this resulted in .set(undefined).
@ibolmo ibolmo closed this in 4086f20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.