How can we improve the Windows dev platform?

WebView: Expose DOM as C#/.NET API

It's great to introduce an Edge Browser into a UWP application via the WebView. It would be especially powerful and useful to be able to access the DOM that is in the currently loaded page of the WebView control and have full control over querying it and even modifying it if necessary.

There have been many DOM APIs created in MSFT's history, so it's now time to build another one. :)

36 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Mike-EEEMike-EEE shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • MysticTazMysticTaz commented  ·   ·  Flag as inappropriate

        If you aspire to see UWP as a platform-independent interface framework, this would have to be done very carefully. Initially, it would tie UWP to the Edge browser, which only exists on the Windows 10 family of OS's. It could be carefully architected, however, to provide adapters to other web engines.

        Perhaps, there could also be use of the System.Dynamic namespaces to access all of the DOM and JavaScript objects in the DOM, although there should still be strong-typed interfaces for the well-known DOM objects (<div>, <br>, <span>, etc.).

        This would be very welcome. It would be interesting to see what cross-platform support this could lead to. Also it would be interesting to see how long this YAMSDAPI (yet another Microsoft DOM API) would live on. ;-)

      Feedback and Knowledge Base