opal / opal-browser

Browser support for Opal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node#replace should have similar semantics as adding/appending

dlee opened this issue · comments

Adding and appending check for:

    if native?(node)
      ...
    elsif String === node
      ...
    else
      ...
    end

Node#replace should similarly check for native and string arguments.

commented

Fixed on master.