phlexing
phlexing copied to clipboard
NameError: uninitialized constant Phlex::HTML::VOID_ELEMENTS (NameError)
When trying to require “phlexing” in a Rails app using the latest version (2.2.1) of phlex, I get the following error
NameError: uninitialized constant Phlex::HTML::VOID_ELEMENTS (NameError)
KNOWN_ELEMENTS = Phlex::HTML::VOID_ELEMENTS.values + Phlex::HTML::STANDARD_ELEMENTS.values
^^^^^^^^^^^^^^^
Did you mean? Phlex::HTML::VoidElements
Changing Phlex::HTML::VOID_ELEMENTS.values + Phlex::HTML::STANDARD_ELEMENTS.values to Phlex::HTML::VoidElements.methods + Phlex::HTML::StandardElements.methods fixes the error, although not 100% correct.