You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
call remove(String, NamespaceBinding, String) overload on attributes.
$ scala
Welcome to Scala version 2.10.0-M3 (JavaHotSpot(TM) 64-BitServerVM, Java1.6.0_31).
Type in expressions to have them evaluated.
Type:help for more information.
scala> <testfoo="1"bar="2" />.attributes remove (null, scala.xml.TopScope, "foo")
res0: scala.xml.MetaData=
scala> <testfoo="1"bar="2" />.attributes remove "foo"// this works!
res1: scala.xml.MetaData= bar="2"
problem
{code}remove (null, scala.xml.TopScope, "foo") {code} removes both foo and bar. It in fact removes all unprefixed attributes.
expectation
{code}remove (null, scala.xml.TopScope, "foo") {code} removes only foo and returns {code}bar="2"{code}.
The text was updated successfully, but these errors were encountered:
steps
problem
{code}remove (null, scala.xml.TopScope, "foo") {code} removes both foo and bar. It in fact removes all unprefixed attributes.
expectation
{code}remove (null, scala.xml.TopScope, "foo") {code} removes only foo and returns {code}bar="2"{code}.
The text was updated successfully, but these errors were encountered: