A Texas woman is suing Whataburger after she says a 5-year-old girl was severely burned after being served "scalding hot" gravy at one of the fast-food restaurant's locations.

Jessica Byrd filed the lawsuit last week in Bexar County, where Whataburger is headquartered, about the injury she alleges happened in June 2017.

The lawsuit says Byrd's 5-year-old relative was at a Whataburger in Mexia, about 75 miles south of Dallas, and was served hot gravy that caused "deep second-degree burns" on her legs seconds after it was spilled.

Whataburger failed to provide its employees training to serve the gravy at a reasonable temperature and acted unreasonably by serving a 5-year-old hot gravy, in spite of "known risks" of spillage, the lawsuit alleges.

The lawsuit also says the girl wasn't warned that the gravy was hot.

Byrd claims in the lawsuit that no Whataburger employees responded to the girl's "painful, ear-piercing" screams for help.

The lawsuit says the gravy was "defectively manufactured" due to excessive heat and served in a container with design flaws.

The McLennan County woman is suing for past and future medical expenses, pain and suffering, mental anguish, disfigurement, physical impairment and loss of enjoyment of life. A dollar amount wasn't specified in the lawsuit.

Whataburger said in a statement that it does not comment on pending litigation.

In 2010, an Oklahoma woman sued Whataburger over hot gravy that burned her 7-year-old daughter's leg after it spilled. An appeals court ruled in 2014 that the restaurant wasn't liable for damages in the lawsuit, according to The Oklahoman.

That lawsuit argued that the restaurant had a responsibility to warn its customers about the hot gravy. Whataburger's attorneys submitted to the appeals court parts of the woman's deposition, in which she said she had eaten at the restaurant before and knew the gravy was served hot.