|
From: Joe W. <jo...@gm...> - 2018-05-25 14:31:54
|
Hi Roy, How are you serving the HTML pages from eXist? Directly? You might need to insert a handler via controller.xql or RESTXQ to ensure that requests for these HTML resources are serialized as HTML rather than as XML. For an example of this pattern, see eXide’s controller.xql and how requests for HTML files are forwarded through modules/view.xql, which declares HTML5 serialization options. Joe On Fri, May 25, 2018 at 5:30 AM MacLean, Roy (London) < roy...@fi...> wrote: > Hi group > > > I have an update query that is inserting a reference to a script into all > pages. The node being inserted is of the form: > > <script src='foobar.js'></script> > > However, when the query runs, it's inserting > > <script src='foobar.js'/> > > which the browser (FireFox) then treats as an opening tag only, losing the > following elements. > > > Is there anything I can do on the eXist side to fix this? > > > There a Stackoverflow query here: > https://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work > > but it's frankly confusing. > > > thanks > > > > <https://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work> > javascript - Why don't self-closing script tags work ... > <https://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work> > stackoverflow.com > Tour Start here for a quick overview of the site Help Center Detailed > answers to any questions you might have > > > *Roy MacLean* > > Senior Technical Author > > Enterprise Payments Solutions > > *Fiserv* > Mobile: +44 7956 474 911 <#m_2622652040081248987_> > www.fiserv.com > FORTUNE Magazine* World's Most Admired Companies®* 2014 | 2015 | 2016 | > 2017 | 2018 > *Facebook:* Like Fiserv <http://www.facebook.com/fiserv> *· Twitter:* > Follow @Fiserv <http://www.twitter.com/fiserv> *· LinkedIn:* Connect > Fiserv <http://www.linkedin.com/company/fiserv> *· Careers*: Join Fiserv > <http://adtrk.tw/3mVZw> > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Sent from my iPhone |