fun now produces a method dom node just like the rest, in the future it should produce a dom node of type fun as opposed to method but good enough for now