results in JS error because of the way window is set as the context in JavaScriptEngine.Evaluate. I worked around this by not returning a new DomNodeInstance from ToJSValue in DomFunctionInstance.Call if the _method.Invoke result is reference equals to node.Value. Instead I returned node.Value directly.
Originally issue FlorianRappl/AngleSharp#44 (4):
Trying
results in JS error because of the way window is set as the context in
JavaScriptEngine.Evaluate
. I worked around this by not returning a newDomNodeInstance
fromToJSValue
inDomFunctionInstance.Call
if the_method.Invoke
result is reference equals tonode.Value
. Instead I returnednode.Value
directly.