AngleSharp / AngleSharp.Js

:angel: Extends AngleSharp with a .NET-based JavaScript engine.
https://anglesharp.github.io
MIT License
103 stars 22 forks source link

jQuery text() / html() not working #17

Closed FlorianRappl closed 8 years ago

FlorianRappl commented 8 years ago

jQuery seems to work overall, but some (really important?) functions have problems. For instance if we want to set text / html via text() / html() by supplying one (text) argument, we get errors.

Investigation ongoing.

FlorianRappl commented 8 years ago

Currently, AngleSharp returns null in all collections (in case the supplied index is < 0 or >= length). However, it should return undefined. In the future AngleSharp should throw ArgumentOutOfRangeException instances, which are caught in a JS engine and returned as undefined.