Can't remove only class when class merging disabled #1381

Open
kevinoid opened this Issue Dec 14, 2012 · 0 comments

Projects

None yet

1 participant

As discussed on the mailing list:

Using Lift 2.5-M3, with the example from issue #1312, the following code removes the "removeme" class, as expected:

(".removeme !!" #> ("td [class!]" #> "removeme")).apply(<tr><td class="removeme fish">Hi</td></tr>)

Produces:

NodeSeq(<tr><td class="fish">Hi</td></tr>)

However, if the "removeme" class is the only class, it is not removed:

(".removeme !!" #> ("td [class!]" #> "removeme")).apply(<tr><td class="removeme">Hi</td></tr>)

Produces:

NodeSeq(<tr><td class="removeme">Hi</td></tr>)

The consensus seems to be that this is a bug.

Thanks,
Kevin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment