Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript in attribute error #17

Open
drnow4u opened this issue Mar 30, 2013 · 0 comments
Open

Javascript in attribute error #17

drnow4u opened this issue Mar 30, 2013 · 0 comments

Comments

@drnow4u
Copy link

drnow4u commented Mar 30, 2013

Dears,

This line in the html file is problematic:

<a onclick="try{ return submitacymailingform('optin','formAcymailing29431'); }catch(err){alert('The form could not be submitted '+err);return false;}" />

The whole html file is:

<html><head>
  <title>Template</title>
</head>
<body class="logo-type-gantry main-bg-preset1 headerstyle-dark font-family-pt-sans font-size-is-default menu-type-dropdownmenu layout-mode-responsive col12">
<a onclick="try{ return submitacymailingform('optin','formAcymailing29431'); }catch(err){alert('The form could not be submitted '+err);return false;}" />

</body></html>

Command line and error message is:

bin/diazorun -o var/output.html -r filtered/rules.xml var/tpl.html
Traceback (most recent call last):
File "bin/diazorun", line 9, in
load_entry_point('diazo==1.0.3', 'console_scripts', 'diazorun')()
File "/home/techmetria/Downloads/openwrt/backfire/venv/env/local/lib/python2.7/site-packages/diazo-1.0.3-py2.7.egg/diazo/run.py", line 115, in main
transform = etree.XSLT(output_xslt, access_control=access_control)
File "xslt.pxi", line 406, in lxml.etree.XSLT.init (src/lxml/lxml.etree.c:137089)
lxml.etree.XSLTParseError: Invalid expression

Above I paste some HTML tags and it is not possible to see it. Why? During re-editing I can see the correct html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant