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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2006-05-17 01:53
All,

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
one?

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
significantly.

Thanks,
Wes
This topic is locked and can not be replied to.