Selena Gomez under fire for showing ankle in a mosque

Ann Oldenburg | USA TODAY

Selena Gomez has been having a grand time in Dubai. She's been sharing Instagram shots of herself and pals, including Kendall Jenne and model Gigi Hadid.

But she's been at swirling in controversy for sharing an Instagram photo of herself in a mosque - the Sheikh Zayed Grand Mosque, flashing her ankle and smiling.

That's a no-no, notes Billboard. Both acts in a mosque -- showing off a bare ankle and laughing or smiling -- are considered signs of disrespect in the Muslim culture.

Some Internet commenters quickly pointed out the problem, prompting Gomez to delete the photo. You can still see at the Daily Mail and other sites.

And she didn't delete a group shot that also seems to show her exposed ankle.

Some say this is disrespectful, too.

But none of it seems to have really put a damper on Gomez's fun. Her latest posts show her frolicking in the water in the sun today with friends.