Isn't XAML just mark-ups for filling up a UI tree? a possible native UI tree?

I don't know if a browser canvas + javascript is ever going to be as fast as native code... I think XAML is safe for a long while