Ticket #4544 defect new
Lore applies quoting to contents of script tags
| Reported by: | jml | Owned by: | khorn |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | lore | Keywords: | |
| Cc: | thijs | Branch: | |
| Author: | Launchpad Bug: |
Description (last modified by thijs) (diff)
Lore applies quoting to the contents of script tags, which makes scripts buggy and not work.
e.g. Save this file as /tmp/lore/lore-quote-js.xhtml
<html>
<head><title>Hello</title></head>
<body>
<h1>Hello</h1>
<script type="text/javascript">
alert("Hello world!");
</script>
</body>
</html>
- Copy doc/core/howto/template.tpl from Twisted into /tmp/lore/.
- cd /tmp/lore
- lore -d .
The contents of the generated javascript in lore-quote-js.html look like:
alert("Hello world!");
instead of:
alert("Hello world!");
You ought to be able to open /tmp/lore/lore-quote-js.html in your browser and see an alert dialog box pop up with "Hello world!".
Change History
Note: See
TracTickets for help on using
tickets.
