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
Floki forces attributes' names lowercase. Failing test case:
defmodule FlokiTest do
use ExUnit.Case
test "preserves case of attributes names" do
xml = ~s(<root ID="1"/>)
[{"root", [{attrName, "1"}], []}] = Floki.find(xml, "root")
assert(attrName == "ID")
end
end
The text was updated successfully, but these errors were encountered:
This is a problem in the parsing step. Unfortunately the parser is under the mochiweb code base. I'm working to get a built-in parser soon. I will let this issue open until I can solve this.
I agree with @ckruse. This is the expected behavior since Floki is not supposed to be fully compatible with XML. Thanks for the report and sorry for the delay, @ckruse.
Floki forces attributes' names lowercase. Failing test case:
The text was updated successfully, but these errors were encountered: