The edge condition in electromagnetics