GAZA CITY — When a class of Palestinian ninth graders in Gaza recently discussed the deadly 1929 riots over access to the Western Wall in Jerusalem, it was guided by a new textbook, introduced this fall by the Islamist Hamas movement.

Asked the lesson of the uprising, one of the 40 boys in class promptly answered, “Al Buraq Wall is an Islamic property,” using the Muslim name for the site, one of the holiest in Judaism. Pleased, the teacher then inquired whether the students would boycott Israeli products, as Arabs had boycotted Jewish businesses in 1929. A resounding chorus of “Yes!” came back from the class.

For the first time since taking control of the Gaza Strip in 2007, the Hamas movement is deviating from the approved Palestinian Authority curriculum, using the new texts as part of a broader push to infuse the next generation with its militant ideology.

Among other points, the books, used by 55,000 children in the eighth, ninth and 10th grades as part of a required “national education” course of study in government schools, do not recognize modern Israel, or even mention the Oslo Peace Accords the country signed with the Palestine Liberation Organization in the 1990s.