Forum: Ruby on Rails htmltools 1.09 doesn't play nice with ActionPack strip_tags!

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Wes G. (Guest)
on 2006-05-17 03:53

I've discovered an incompatibility between HTMLTools 1.09 (a very handy
HTML parser) and ActionPack 1.12.1.

Basically, they both do some HTML parsing and they both create a module
named HTML::Tag, which causes confusion when said Tag object attempts to
be instantiated in the ActionPack context.

That said, now I get to choose which one's namespace to fiddle with.
But a couple of issues arise for me:

1) Should I report this issue as a bug on one of the packages?  Which

2) Has anyone ever discussed some sort of module naming convention that
would hopefully avoid this sort of issue?  Although Java's convention of
embedding domain names in package names may seem ugly, it certainly
reduces the number of potential collisions between Java classes

This topic is locked and can not be replied to.