Fix for #307: Use getAttribute to retrieve Url