Factual error: The animators have clearly tried to make all the writing in the film look Arabic. However in one scene we see the faces of Jafar and the Sultan as they read a scroll. Their eyes move from left to right; Arabic is read right to left.
Factual error: Jasmine and Prince Ali sit on top of the Chinese Imperial Palace to watch a fireworks show including bursts of Pinks, Greens, Purples and Blues. The only available colors prior to 1850 are white and pale yellow.
Factual error: During the Song "Never Had A Friend Like Me", Genie the waiter is writing an order in Arabic, but he writes from left to right. Arabic is written from right to left.
Chosen answer: The cave has some level of sentience. It is aware of who is entering the cave, and decides whether to allow them to enter. It is able to tell that Abu is with Aladdin. It seems to keep a watchful eye on the person in the cave, and when it says "touch nothing" what it means is "don't try to take anything. It seems it was fine with them interacting with the carpet, and only had an issue when Abu was attempting to actually take something.