How to include Javascript in xml-document?

前端 未结 7 1616
醉酒成梦
醉酒成梦 2020-12-01 07:59

The task seems to be pretty easy: how to include a Javascript file in xml-document so that at least Opera and Firefox could actually parse it and execute the code?

7条回答
  •  青春惊慌失措
    2020-12-01 08:34

    Add a script stating XHTML namespace, it will run just fine.

    
    

    See also http://www.ibm.com/developerworks/xml/library/x-ffox3/

提交回复
热议问题